|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcascading.pipe.Pipe
cascading.pipe.Operator
cascading.pipe.Each
public class Each
The Each operator applies either a Function or a Filter to each entry in the Tuple
stream. Any number of Each operators can follow an Each, Group, or Every
operator.
| Nested Class Summary | |
|---|---|
class |
Each.EachAssertionHandler
|
class |
Each.EachFilterHandler
|
class |
Each.EachFunctionHandler
|
class |
Each.EachHandler
Class EachHandler is a helper class that wraps Each instances. |
| Field Summary |
|---|
| Fields inherited from class cascading.pipe.Operator |
|---|
argumentSelector, assertionLevel, operation, outputSelector |
| Fields inherited from class cascading.pipe.Pipe |
|---|
previous |
| Constructor Summary | |
|---|---|
Each(Pipe previous,
AssertionLevel assertionLevel,
Assertion assertion)
|
|
Each(Pipe previous,
Fields argumentFieldSelector,
AssertionLevel assertionLevel,
Assertion assertion)
|
|
Each(Pipe pipe,
Fields argumentFieldSelector,
Filter filter)
|
|
Each(Pipe pipe,
Fields argumentFieldSelector,
Function function)
Only pass arguementFields to the given function, only return fields declared by the function. |
|
Each(Pipe pipe,
Fields argumentFieldSelector,
Function function,
Fields outFieldSelector)
Only pass arguementFields to the given function, only return fields selected by the outFieldsSelector. |
|
Each(Pipe previous,
Filter filter)
|
|
Each(Pipe previous,
Function function)
Pass all fields to the given function, only return fields declared by the function. |
|
Each(Pipe pipe,
Function function,
Fields outFieldSelector)
Only pass arguementFields to the given function, only return fields selected by the outFieldsSelector. |
|
Each(String name,
AssertionLevel assertionLevel,
Assertion assertion)
Constructor Each creates a new Each instance. |
|
Each(String name,
Fields argumentFieldSelector,
AssertionLevel assertionLevel,
Assertion assertion)
|
|
Each(String name,
Fields argumentFieldSelector,
Filter filter)
|
|
Each(String name,
Fields argumentFieldSelector,
Function function)
Only pass arguementFields to the given function, only return fields declared by the function. |
|
Each(String name,
Fields argumentFieldSelector,
Function function,
Fields outFieldSelector)
Only pass arguementFields to the given function, only return fields selected by the outFieldsSelector. |
|
Each(String name,
Filter filter)
Constructor Each creates a new Each instance. |
|
Each(String name,
Function function)
Pass all fields to the given function, only return fields declared by the function. |
|
Each(String name,
Function function,
Fields outFieldSelector)
Only return fields selected by the outFieldsSelector. |
|
| Method Summary | |
|---|---|
Each.EachHandler |
getHandler(FlowCollector flowCollector,
Scope scope)
|
Scope |
outgoingScopeFor(Set<Scope> incomingScopes)
Method outgoingScopeFor returns the Scope this FlowElement hands off to the next FlowElement. |
Fields |
resolveFields(Scope scope)
Method resolveFields returns the actual field names represented by the given Scope. |
Fields |
resolveIncomingOperationFields(Scope incomingScope)
Method resolveIncomingOperationFields resolves the incoming scopes to the actual incoming operation field names. |
protected void |
verifyOperation()
|
| Methods inherited from class cascading.pipe.Operator |
|---|
equals, getArgumentSelector, getAssertionLevel, getFieldDeclaration, getOperation, getOutputSelector, hashCode, isAssertion, makeResult, printInternal, toString |
| Methods inherited from class cascading.pipe.Pipe |
|---|
getHeads, getName, getPrevious, getTrace, pipes, print |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Each(String name,
Function function)
name - of type Stringfunction - of type Function
public Each(String name,
Fields argumentFieldSelector,
Function function)
name - of type StringargumentFieldSelector - of type Fieldsfunction - of type Function
public Each(String name,
Fields argumentFieldSelector,
Function function,
Fields outFieldSelector)
name - of type StringargumentFieldSelector - of type Fieldsfunction - of type FunctionoutFieldSelector - of type Fields
public Each(String name,
Function function,
Fields outFieldSelector)
name - of type Stringfunction - of type FunctionoutFieldSelector - of type Fields
public Each(Pipe previous,
Function function)
previous - of type Pipefunction - of type Function
public Each(Pipe pipe,
Fields argumentFieldSelector,
Function function)
pipe - of type PipeargumentFieldSelector - of type Fieldsfunction - of type Function
public Each(Pipe pipe,
Fields argumentFieldSelector,
Function function,
Fields outFieldSelector)
pipe - of type PipeargumentFieldSelector - of type Fieldsfunction - of type FunctionoutFieldSelector - of type Fields
public Each(Pipe pipe,
Function function,
Fields outFieldSelector)
pipe - of type Pipefunction - of type FunctionoutFieldSelector - of type Fields
public Each(String name,
Filter filter)
name - of type Stringfilter - of type Filter
public Each(String name,
Fields argumentFieldSelector,
Filter filter)
name - of type StringargumentFieldSelector - of type Fieldsfilter - of type Filter
public Each(Pipe previous,
Filter filter)
previous - of type Pipefilter - of type Filter
public Each(Pipe pipe,
Fields argumentFieldSelector,
Filter filter)
pipe - of type PipeargumentFieldSelector - of type Fieldsfilter - of type Filter
public Each(String name,
AssertionLevel assertionLevel,
Assertion assertion)
name - of type StringassertionLevel - of type AssertionLevelassertion - of type Filter
public Each(String name,
Fields argumentFieldSelector,
AssertionLevel assertionLevel,
Assertion assertion)
name - of type StringargumentFieldSelector - of type FieldsassertionLevel - of type AssertionLevelassertion - of type Filter
public Each(Pipe previous,
AssertionLevel assertionLevel,
Assertion assertion)
previous - of type PipeassertionLevel - of type AssertionLevelassertion - of type Filter
public Each(Pipe previous,
Fields argumentFieldSelector,
AssertionLevel assertionLevel,
Assertion assertion)
previous - of type PipeargumentFieldSelector - of type FieldsassertionLevel - of type AssertionLevelassertion - of type Filter| Method Detail |
|---|
protected void verifyOperation()
verifyOperation in class Operatorpublic Fields resolveIncomingOperationFields(Scope incomingScope)
FlowElement
resolveIncomingOperationFields in interface FlowElementresolveIncomingOperationFields in class PipeincomingScope - of type Scope
FlowElement.resolveIncomingOperationFields(Scope)public Fields resolveFields(Scope scope)
FlowElement
resolveFields in interface FlowElementresolveFields in class Pipescope - of type Scope
FlowElement.resolveFields(Scope)public Scope outgoingScopeFor(Set<Scope> incomingScopes)
FlowElement
outgoingScopeFor in interface FlowElementoutgoingScopeFor in class OperatorincomingScopes - of type SetOperator#outgoingScopeFor(Set)
public Each.EachHandler getHandler(FlowCollector flowCollector,
Scope scope)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||