org.eclipse.viatra.query.runtime.rete.aggregation

## Class AbstractColumnAggregatorNode.AggregatorOuterIndexer

- java.lang.Object
- - org.eclipse.viatra.query.runtime.rete.network.BaseNode
  - - org.eclipse.viatra.query.runtime.rete.index.StandardIndexer
    - - org.eclipse.viatra.query.runtime.rete.aggregation.AbstractColumnAggregatorNode.AggregatorOuterIndexer

- All Implemented Interfaces:
    Indexer, NetworkStructureChangeSensitiveNode, Node
  Enclosing class:
    AbstractColumnAggregatorNode<Domain,Accumulator,AggregateResult>

      protected class AbstractColumnAggregatorNode.AggregatorOuterIndexer
      extends StandardIndexer

  A special non-iterable index that retrieves the aggregated, packed result (signature+aggregate) for the original signature.

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `protected AbstractColumnAggregatorNode.NetworkStructureChangeSensitiveLogic` | `logic`

    - ### Fields inherited from class org.eclipse.viatra.query.runtime.rete.index.StandardIndexer

      `mask, parent`

    - ### Fields inherited from class org.eclipse.viatra.query.runtime.rete.network.BaseNode

      `nodeId, reteContainer, tag, traceInfos`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `AggregatorOuterIndexer()`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `protected AbstractColumnAggregatorNode.NetworkStructureChangeSensitiveLogic` | `createLogic()`
    `java.util.Collection<Tuple>` | `get(Tuple signature)`
    `Node` | `getActiveNode()` This indexer will be updated whenever a Rete update is sent to the active node (or an equivalent time slot allotted to it).
    `java.util.Map<Tuple,Timeline<Timestamp>>` | `getTimeline(Tuple signature)`
    `void` | `networkStructureChanged()` At the time of the invocation, the dependency graph has already been updated.
    `void` | `propagate(Direction direction, Tuple tuple, Tuple group, Timestamp timestamp)`

    - ### Methods inherited from class org.eclipse.viatra.query.runtime.rete.index.StandardIndexer

      `assignTraceInfo, attachListener, detachListener, getContainer, getListeners, getMask, getParent, propagate, toStringCore`

    - ### Methods inherited from class org.eclipse.viatra.query.runtime.rete.network.BaseNode

      `acceptPropagatedTraceInfo, getNodeId, getTag, getTraceInfoPatternsEnumerated, getTraceInfos, setTag, toString`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

    - ### Methods inherited from interface org.eclipse.viatra.query.runtime.rete.network.Node

      `acceptPropagatedTraceInfo, getCommunicationTracker, getNodeId, getTag, getTraceInfos, setTag`

- - ### Field Detail

    - #### logic

          protected AbstractColumnAggregatorNode.NetworkStructureChangeSensitiveLogic logic

      Since:
        2.4

  - ### Constructor Detail

    - #### AggregatorOuterIndexer

          public AggregatorOuterIndexer()

  - ### Method Detail

    - #### networkStructureChanged

          public void networkStructureChanged()

      Description copied from interface: `NetworkStructureChangeSensitiveNode`
      At the time of the invocation, the dependency graph has already been updated.
      Specified by:
        `networkStructureChanged` in interface `NetworkStructureChangeSensitiveNode`
      Overrides:
        `networkStructureChanged` in class `StandardIndexer`

    - #### get

          public java.util.Collection<Tuple> get(Tuple signature)

      Returns:
        all stored tuples that conform to the specified signature, null if there are none such. CONTRACT: do not modify!

    - #### getTimeline

          public java.util.Map<Tuple,Timeline<Timestamp>> getTimeline(Tuple signature)

    - #### propagate

          public void propagate(Direction direction,
                                Tuple tuple,
                                Tuple group,
                                Timestamp timestamp)

      Since:
        2.4

    - #### getActiveNode

          public Node getActiveNode()

      Description copied from interface: `Indexer`
      This indexer will be updated whenever a Rete update is sent to the active node (or an equivalent time slot allotted to it). The active node is typically the indexer itself, but it can be a different node such as its parent.
      Returns:
        the active node that operates this indexer

    - #### createLogic

          protected AbstractColumnAggregatorNode.NetworkStructureChangeSensitiveLogic createLogic()

      Since:
        2.4