|
|||||||||
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.Every
public class Every
The Every operator applies an Aggregator
or Buffer
to every grouping.
GroupBy
, or CoGroup
instances if they apply an
Aggregator, not a Buffer. If a Buffer, only one Every may follow a GroupBy or CoGroup.
Every operators create aggregate values for every grouping they encounter. This aggregate value is added to the current
grouping Tuple.
In the case of a CoGroup, the grouping Tuple will be all the grouping keys from all joined streams,
and if an "outer" type join is used, one value on the groupingTuple may be null.
Subsequent Every instances can continue to append values to the grouping Tuple. When an Each follows
and Every, the Each applies its operation to the grouping Tuple (thus all child values in the grouping are discarded
and only aggregate values are propagated).
Field Summary |
---|
Fields inherited from class cascading.pipe.Operator |
---|
argumentSelector, operation, outputSelector, plannerLevel |
Fields inherited from class cascading.pipe.Pipe |
---|
configDef, name, parent, previous, stepConfigDef |
Constructor Summary | |
---|---|
Every(Pipe previous,
Aggregator aggregator)
Constructor Every creates a new Every instance. |
|
Every(Pipe previous,
Aggregator aggregator,
Fields outputSelector)
Constructor Every creates a new Every instance. |
|
Every(Pipe previous,
AssertionLevel assertionLevel,
GroupAssertion assertion)
Constructor Every creates a new Every instance. |
|
Every(Pipe previous,
Buffer buffer)
Constructor Every creates a new Every instance. |
|
Every(Pipe previous,
Buffer buffer,
Fields outputSelector)
Constructor Every creates a new Every instance. |
|
Every(Pipe previous,
Fields argumentSelector,
Aggregator aggregator)
Constructor Every creates a new Every instance. |
|
Every(Pipe previous,
Fields argumentSelector,
Aggregator aggregator,
Fields outputSelector)
Constructor Every creates a new Every instance. |
|
Every(Pipe previous,
Fields argumentSelector,
AssertionLevel assertionLevel,
GroupAssertion assertion)
Constructor Every creates a new Every instance. |
|
Every(Pipe previous,
Fields argumentSelector,
Buffer buffer)
Constructor Every creates a new Every instance. |
|
Every(Pipe previous,
Fields argumentSelector,
Buffer buffer,
Fields outputSelector)
Constructor Every creates a new Every instance. |
Method Summary | |
---|---|
Aggregator |
getAggregator()
|
Buffer |
getBuffer()
|
GroupAssertion |
getGroupAssertion()
|
boolean |
isAggregator()
Method isReducer returns true if this Every instance holds a Aggregator operation. |
boolean |
isBuffer()
Method isBuffer returns true if this Every instance holds a Buffer operation. |
boolean |
isGroupAssertion()
|
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. |
Methods inherited from class cascading.pipe.Operator |
---|
equals, getArgumentSelector, getAssertionLevel, getFieldDeclaration, getOperation, getOutputSelector, getPlannerLevel, hashCode, hasPlannerLevel, isEquivalentTo, printInternal, resolveRemainderFields, toString, verifyOperation |
Methods inherited from class cascading.pipe.Pipe |
---|
getConfigDef, getHeads, getName, getParent, getPrevious, getStepConfigDef, getTrace, hasConfigDef, hasStepConfigDef, id, named, names, pipes, print, setParent |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
@ConstructorProperties(value={"previous","aggregator"}) public Every(Pipe previous, Aggregator aggregator)
previous
- previous Pipe to receive input Tuples fromaggregator
- Aggregator to be applied to every input Tuple grouping@ConstructorProperties(value={"previous","argumentSelector","aggregator"}) public Every(Pipe previous, Fields argumentSelector, Aggregator aggregator)
previous
- previous Pipe to receive input Tuples fromargumentSelector
- field selector that selects Function arguments from the input Tupleaggregator
- Aggregator to be applied to every input Tuple grouping@ConstructorProperties(value={"previous","argumentSelector","aggregator","outputSelector"}) public Every(Pipe previous, Fields argumentSelector, Aggregator aggregator, Fields outputSelector)
previous
- previous Pipe to receive input Tuples fromargumentSelector
- field selector that selects Function arguments from the input Tupleaggregator
- Aggregator to be applied to every input Tuple groupingoutputSelector
- field selector that selects the output Tuple from the grouping and Aggregator results Tuples@ConstructorProperties(value={"previous","aggregator","outputSelector"}) public Every(Pipe previous, Aggregator aggregator, Fields outputSelector)
previous
- previous Pipe to receive input Tuples fromaggregator
- Aggregator to be applied to every input Tuple groupingoutputSelector
- field selector that selects the output Tuple from the grouping and Aggregator results Tuples@ConstructorProperties(value={"previous","buffer"}) public Every(Pipe previous, Buffer buffer)
previous
- previous Pipe to receive input Tuples frombuffer
- Buffer to be applied to every input Tuple grouping@ConstructorProperties(value={"previous","argumentSelector","buffer"}) public Every(Pipe previous, Fields argumentSelector, Buffer buffer)
previous
- previous Pipe to receive input Tuples fromargumentSelector
- field selector that selects Function arguments from the input Tuplebuffer
- Buffer to be applied to every input Tuple grouping@ConstructorProperties(value={"previous","argumentSelector","buffer","outputSelector"}) public Every(Pipe previous, Fields argumentSelector, Buffer buffer, Fields outputSelector)
previous
- previous Pipe to receive input Tuples fromargumentSelector
- field selector that selects Function arguments from the input Tuplebuffer
- Buffer to be applied to every input Tuple groupingoutputSelector
- field selector that selects the output Tuple from the grouping and Buffer results Tuples@ConstructorProperties(value={"previous","buffer","outputSelector"}) public Every(Pipe previous, Buffer buffer, Fields outputSelector)
previous
- previous Pipe to receive input Tuples frombuffer
- Buffer to be applied to every input Tuple groupingoutputSelector
- field selector that selects the output Tuple from the grouping and Buffer results Tuples@ConstructorProperties(value={"previous","assertionLevel","assertion"}) public Every(Pipe previous, AssertionLevel assertionLevel, GroupAssertion assertion)
previous
- previous Pipe to receive input Tuples fromassertionLevel
- of type AssertionLevelassertion
- GroupAssertion to be applied to every input Tuple grouping@ConstructorProperties(value={"previous","argumentSelector","assertionLevel","assertion"}) public Every(Pipe previous, Fields argumentSelector, AssertionLevel assertionLevel, GroupAssertion 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
- GroupAssertion to be applied to every input Tuple groupingMethod Detail |
---|
public boolean isBuffer()
Buffer
operation.
public boolean isAggregator()
Aggregator
operation.
public boolean isGroupAssertion()
public Aggregator getAggregator()
public Buffer getBuffer()
public GroupAssertion getGroupAssertion()
public Fields resolveIncomingOperationArgumentFields(Scope incomingScope)
FlowElement
resolveIncomingOperationArgumentFields
in interface FlowElement
resolveIncomingOperationArgumentFields
in class Pipe
incomingScope
- of type Scope
public Fields resolveIncomingOperationPassThroughFields(Scope incomingScope)
FlowElement
resolveIncomingOperationPassThroughFields
in interface FlowElement
resolveIncomingOperationPassThroughFields
in class Pipe
incomingScope
- of type Scope
public Scope outgoingScopeFor(Set<Scope> incomingScopes)
FlowElement
outgoingScopeFor
in interface FlowElement
outgoingScopeFor
in class Operator
incomingScopes
- of type Set
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |