Interface Function<Context>

All Superinterfaces:
All Known Implementing Classes:
AggregateBy.CompositeFunction, DateFormatter, DateParser, ExpressionFunction, FieldFormatter, FieldJoiner, Identity, Insert, NoOp, RegexGenerator, RegexParser, RegexReplace, RegexSplitGenerator, RegexSplitter, SetValue, TagSoupParser, UnGroup, XPathGenerator, XPathParser

public interface Function<Context>
extends Operation<Context>

Interface Function marks a given Operation as a function, as opposed to being a Filter.

A Function is responsible for taking Tuple arguments and returning one or more result Tuples.

To implement a Function, (optionally) sub-class BaseOperation and have the new sub-class implement this interface.

Field Summary
Fields inherited from interface cascading.operation.Operation
Method Summary
 void operate(FlowProcess flowProcess, FunctionCall<Context> functionCall)
          Method operate provides the implementation of this Function.
Methods inherited from interface cascading.operation.Operation
cleanup, flush, getFieldDeclaration, getNumArgs, isSafe, prepare

Method Detail


void operate(FlowProcess flowProcess,
             FunctionCall<Context> functionCall)
Method operate provides the implementation of this Function.

flowProcess - of type FlowProcess
functionCall - of type FunctionCall

Copyright © 2007-2012 Concurrent, Inc. All Rights Reserved.