public abstract class AggregatorNode extends StandardNode
Constructor and Description |
---|
AggregatorNode(ReteContainer reteContainer)
MUST call initializeWith() afterwards!
|
Modifier and Type | Method and Description |
---|---|
abstract java.lang.Object |
aggregateGroup(Tuple signature,
java.util.Collection<Tuple> group)
Aggregates (reduces) a group of tuples.
|
java.lang.Object |
aggregateGroupAfterUpdate(Tuple signature,
java.util.Collection<Tuple> currentGroup,
java.lang.Object oldAggregate,
Direction direction,
Tuple updateElement,
boolean change)
Aggregates (reduces) a group of tuples, having access to the previous aggregated value (before the update) and
the update definition.
|
void |
assignTraceInfo(TraceInfo traceInfo)
assigns new traceability info to this node
|
org.eclipse.incquery.runtime.rete.index.AggregatorNode.AggregatorOuterIdentityIndexer |
getAggregatorOuterIdentityIndexer(int resultPositionInSignature) |
org.eclipse.incquery.runtime.rete.index.AggregatorNode.AggregatorOuterIndexer |
getAggregatorOuterIndexer() |
void |
initializeWith(ProjectionIndexer projection) |
void |
pullInto(java.util.Collection<Tuple> collector)
pulls the contents of this object in this particular moment into a target collection
|
appendChild, constructIndex, getPulledContents, getReceivers, removeChild
acceptPropagatedTraceInfo, getContainer, getNodeId, getTag, getTraceInfos, setTag, toString
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
acceptPropagatedTraceInfo, getContainer, getNodeId, getTag, getTraceInfos, setTag
public AggregatorNode(ReteContainer reteContainer)
public void initializeWith(ProjectionIndexer projection)
projection
- the projection indexer whose tuple groups should be aggregatedpublic abstract java.lang.Object aggregateGroup(Tuple signature, java.util.Collection<Tuple> group)
public java.lang.Object aggregateGroupAfterUpdate(Tuple signature, java.util.Collection<Tuple> currentGroup, java.lang.Object oldAggregate, Direction direction, Tuple updateElement, boolean change)
public org.eclipse.incquery.runtime.rete.index.AggregatorNode.AggregatorOuterIndexer getAggregatorOuterIndexer()
public org.eclipse.incquery.runtime.rete.index.AggregatorNode.AggregatorOuterIdentityIndexer getAggregatorOuterIdentityIndexer(int resultPositionInSignature)
public void pullInto(java.util.Collection<Tuple> collector)
Supplier
public void assignTraceInfo(TraceInfo traceInfo)
Node
assignTraceInfo
in interface Node
assignTraceInfo
in class BaseNode