public interface NestedAggregate<Node,Context> extends java.io.Serializable
See SimpleNestedAggregate for a convenient base implementation.
NestedGetAllAggregateFunction| Modifier and Type | Method and Description |
|---|---|
void |
aggregate(Context context,
Node node)
This method receives each collected value to be applied to the current aggregation.
|
cascading.tuple.Tuple |
complete(Context context)
This method completes the aggregate operation and insert the results into a Tuple instance.
|
Context |
createContext(cascading.tuple.type.CoercibleType<Node> nestedCoercibleType) |
cascading.tuple.Fields |
getFieldDeclaration() |
Context |
resetContext(Context context)
This method is called after
complete(Object) so that any resources can be freed and the result
context instance can be used in the next aggregation. |
cascading.tuple.Fields getFieldDeclaration()
Context createContext(cascading.tuple.type.CoercibleType<Node> nestedCoercibleType)
void aggregate(Context context, Node node)
context - the context object created by createContext(CoercibleType)node - the Node container object that should be aggregatedcascading.tuple.Tuple complete(Context context)
Note the Tuple may be created (indirectly) by the createContext(CoercibleType) method and reused.
context - the context object created by createContext(CoercibleType)Context resetContext(Context context)
complete(Object) so that any resources can be freed and the result
context instance can be used in the next aggregation.context - the context object created by createContext(CoercibleType)Copyright © 2007-2021 Cascading Maintainers. All Rights Reserved.