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, removeChildacceptPropagatedTraceInfo, getContainer, getNodeId, getTag, getTraceInfos, setTag, toStringequals, getClass, hashCode, notify, notifyAll, wait, wait, waitacceptPropagatedTraceInfo, getContainer, getNodeId, getTag, getTraceInfos, setTagpublic 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)
Supplierpublic void assignTraceInfo(TraceInfo traceInfo)
NodeassignTraceInfo in interface NodeassignTraceInfo in class BaseNode