public class Each extends Operator
Function
or a Filter
to each entry in the Tuple
stream. Any number of Each operators can follow an Each, Splice
, or Every
operator.argumentSelector, operation, outputSelector, plannerLevel
configDef, name, nodeConfigDef, parent, previous, stepConfigDef
Constructor and Description |
---|
Each(Pipe previous,
AssertionLevel assertionLevel,
Assertion assertion) |
Each(Pipe previous,
DebugLevel debugLevel,
Debug debug) |
Each(Pipe previous,
Fields argumentSelector,
AssertionLevel assertionLevel,
Assertion assertion) |
Each(Pipe previous,
Fields argumentSelector,
DebugLevel debugLevel,
Debug debug) |
Each(Pipe previous,
Fields argumentSelector,
Filter filter)
Constructor Each creates a new Each instance.
|
Each(Pipe previous,
Fields argumentSelector,
Function function)
Only pass argumentFields to the given function, only return fields declared by the function.
|
Each(Pipe previous,
Fields argumentSelector,
Function function,
Fields outputSelector)
Only pass argumentFields to the given function, only return fields selected by the outputSelector.
|
Each(Pipe previous,
Filter filter)
Constructor Each creates a new Each instance.
|
Each(Pipe previous,
Function function)
Pass all fields to the given function, only return fields declared by the function.
|
Each(Pipe previous,
Function function,
Fields outputSelector)
Only pass argumentFields to the given function, only return fields selected by the outputSelector.
|
Each(String name,
AssertionLevel assertionLevel,
Assertion assertion)
Constructor Each creates a new Each instance.
|
Each(String name,
Fields argumentSelector,
AssertionLevel assertionLevel,
Assertion assertion) |
Each(String name,
Fields argumentSelector,
DebugLevel debugLevel,
Debug debug) |
Each(String name,
Fields argumentSelector,
Filter filter)
Constructor Each creates a new Each instance.
|
Each(String name,
Fields argumentSelector,
Function function)
Only pass argumentFields to the given function, only return fields declared by the function.
|
Each(String name,
Fields argumentSelector,
Function function,
Fields outputSelector)
Only pass argumentFields to the given function, only return fields selected by the outputSelector.
|
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 outputSelector)
Only return fields selected by the outputSelector.
|
Modifier and Type | Method and Description |
---|---|
Filter |
getFilter() |
Function |
getFunction() |
ValueAssertion |
getValueAssertion() |
boolean |
isFilter() |
boolean |
isFunction() |
boolean |
isValueAssertion() |
Scope |
outgoingScopeFor(Set<Scope> incomingScopes)
Method outgoingScopeFor returns the Scope this FlowElement hands off to the next FlowElement.
|
Fields |
resolveIncomingOperationArgumentFields(Scope incomingScope)
Method resolveIncomingOperationArgumentFields returns the Fields outgoing from the previous FlowElement that
are consumable by this FlowElement when preparing Operation arguments.
|
Fields |
resolveIncomingOperationPassThroughFields(Scope incomingScope)
Method resolveIncomingOperationPassThroughFields returns the Fields outgoing from the previous FlowElement that
are consumable by this FlowElement when preparing the Pipe outgoing tuple.
|
protected void |
verifyOperation() |
equals, getArgumentSelector, getFieldDeclaration, getOperation, getOutputSelector, getPlannerLevel, hashCode, hasPlannerLevel, isEquivalentTo, printInternal, resolveRemainderFields, toString
getConfigDef, getHeads, getName, getNodeConfigDef, getParent, getPrevious, getStepConfigDef, getTrace, hasConfigDef, hasNodeConfigDef, hasStepConfigDef, id, named, names, pipes, print, setParent
@ConstructorProperties(value={"name","function"}) public Each(String name, Function function)
name
- name for this branch of Pipesfunction
- Function to be applied to each input Tuple@ConstructorProperties(value={"name","argumentSelector","function"}) public Each(String name, Fields argumentSelector, Function function)
name
- name for this branch of PipesargumentSelector
- field selector that selects Function arguments from the input Tuplefunction
- Function to be applied to each input Tuple@ConstructorProperties(value={"name","argumentSelector","function","outputSelector"}) public Each(String name, Fields argumentSelector, Function function, Fields outputSelector)
name
- name for this branch of PipesargumentSelector
- field selector that selects Function arguments from the input Tuplefunction
- Function to be applied to each input TupleoutputSelector
- field selector that selects the output Tuple from the input and Function results Tuples@ConstructorProperties(value={"name","function","outputSelector"}) public Each(String name, Function function, Fields outputSelector)
name
- name for this branch of Pipesfunction
- Function to be applied to each input TupleoutputSelector
- field selector that selects the output Tuple from the input and Function results Tuples@ConstructorProperties(value={"previous","function"}) public Each(Pipe previous, Function function)
previous
- previous Pipe to receive input Tuples fromfunction
- Function to be applied to each input Tuple@ConstructorProperties(value={"previous","argumentSelector","function"}) public Each(Pipe previous, Fields argumentSelector, Function function)
previous
- previous Pipe to receive input Tuples fromargumentSelector
- field selector that selects Function arguments from the input Tuplefunction
- Function to be applied to each input Tuple@ConstructorProperties(value={"previous","argumentSelector","function","outputSelector"}) public Each(Pipe previous, Fields argumentSelector, Function function, Fields outputSelector)
previous
- previous Pipe to receive input Tuples fromargumentSelector
- field selector that selects Function arguments from the input Tuplefunction
- Function to be applied to each input TupleoutputSelector
- field selector that selects the output Tuple from the input and Function results Tuples@ConstructorProperties(value={"previous","function","outputSelector"}) public Each(Pipe previous, Function function, Fields outputSelector)
previous
- previous Pipe to receive input Tuples fromfunction
- Function to be applied to each input TupleoutputSelector
- field selector that selects the output Tuple from the input and Function results Tuples@ConstructorProperties(value={"name","filter"}) public Each(String name, Filter filter)
name
- name for this branch of Pipesfilter
- Filter to be applied to each input Tuple@ConstructorProperties(value={"name","argumentSelector","filter"}) public Each(String name, Fields argumentSelector, Filter filter)
name
- name for this branch of PipesargumentSelector
- field selector that selects Function arguments from the input Tuplefilter
- Filter to be applied to each input Tuple@ConstructorProperties(value={"previous","filter"}) public Each(Pipe previous, Filter filter)
previous
- previous Pipe to receive input Tuples fromfilter
- Filter to be applied to each input Tuple@ConstructorProperties(value={"previous","argumentSelector","filter"}) public Each(Pipe previous, Fields argumentSelector, Filter filter)
previous
- previous Pipe to receive input Tuples fromargumentSelector
- field selector that selects Function arguments from the input Tuplefilter
- Filter to be applied to each input Tuple@ConstructorProperties(value={"name","assertionLevel","assertion"}) public Each(String name, AssertionLevel assertionLevel, Assertion assertion)
name
- name for this branch of PipesassertionLevel
- AssertionLevel to associate with the Assertionassertion
- Assertion to be applied to each input Tuple@ConstructorProperties(value={"name","argumentSelector","assertionLevel","assertion"}) public Each(String name, Fields argumentSelector, AssertionLevel assertionLevel, Assertion assertion)
name
- name for this branch of PipesargumentSelector
- field selector that selects Function arguments from the input TupleassertionLevel
- AssertionLevel to associate with the Assertionassertion
- Assertion to be applied to each input Tuple@ConstructorProperties(value={"previous","assertionLevel","assertion"}) public Each(Pipe previous, AssertionLevel assertionLevel, Assertion assertion)
previous
- previous Pipe to receive input Tuples fromassertionLevel
- AssertionLevel to associate with the Assertionassertion
- Assertion to be applied to each input Tuple@ConstructorProperties(value={"previous","argumentSelector","assertionLevel","assertion"}) public Each(Pipe previous, Fields argumentSelector, AssertionLevel assertionLevel, Assertion assertion)
previous
- previous Pipe to receive input Tuples fromargumentSelector
- field selector that selects Function arguments from the input TupleassertionLevel
- AssertionLevel to associate with the Assertionassertion
- Assertion to be applied to each input Tuple@ConstructorProperties(value={"name","argumentSelector","debugLevel","debug"}) public Each(String name, Fields argumentSelector, DebugLevel debugLevel, Debug debug)
name
- name for this branch of PipesargumentSelector
- field selector that selects Function arguments from the input TupledebugLevel
- DebugLevel to associate with the Debugdebug
- Debug to be applied to each input Tuple@ConstructorProperties(value={"previous","debugLevel","debug"}) public Each(Pipe previous, DebugLevel debugLevel, Debug debug)
previous
- previous Pipe to receive input Tuples fromdebugLevel
- DebugLevel to associate with the Debugdebug
- Debug to be applied to each input Tuple@ConstructorProperties(value={"previous","argumentSelector","debugLevel","debug"}) public Each(Pipe previous, Fields argumentSelector, DebugLevel debugLevel, Debug debug)
previous
- previous Pipe to receive input Tuples fromargumentSelector
- field selector that selects Function arguments from the input TupledebugLevel
- DebugLevel to associate with the Debugdebug
- Debug to be applied to each input Tupleprotected void verifyOperation()
verifyOperation
in class Operator
public Function getFunction()
public ValueAssertion getValueAssertion()
public boolean isFunction()
public boolean isFilter()
public boolean isValueAssertion()
public Fields resolveIncomingOperationArgumentFields(Scope incomingScope)
FlowElement
resolveIncomingOperationArgumentFields
in interface FlowElement
resolveIncomingOperationArgumentFields
in class Pipe
incomingScope
- of type Scopepublic Fields resolveIncomingOperationPassThroughFields(Scope incomingScope)
FlowElement
resolveIncomingOperationPassThroughFields
in interface FlowElement
resolveIncomingOperationPassThroughFields
in class Pipe
incomingScope
- of type Scopepublic Scope outgoingScopeFor(Set<Scope> incomingScopes)
FlowElement
outgoingScopeFor
in interface FlowElement
outgoingScopeFor
in class Operator
incomingScopes
- of type SetCopyright © 2007-2015 Concurrent, Inc. All Rights Reserved.