Answers for "Custom function Cascading"

0

Custom function Cascading

public class SomeFunction extends BaseOperation implements Function
  {
  public void operate( FlowProcess flowProcess, FunctionCall functionCall )
    {
    // get the arguments TupleEntry
    TupleEntry arguments = functionCall.getArguments();

    // create a Tuple to hold our result values
    Tuple result = new Tuple();

    // insert some values into the result Tuple

    // return the result Tuple
    functionCall.getOutputCollector().add( result );
    }
  }
Posted by: Guest on September-28-2021

Code answers related to "Custom function Cascading"

Browse Popular Code Answers by Language