org.eclipse.incquery.runtime.rete.index

## Class StandardIndexer

- java.lang.Object
- - org.eclipse.incquery.runtime.rete.network.BaseNode
  - - org.eclipse.incquery.runtime.rete.index.StandardIndexer

- All Implemented Interfaces:
    Indexer, Node
  Direct Known Subclasses:
    IndexerWithMemory, SpecializedProjectionIndexer, TransitiveClosureNodeIndexer

      public abstract class StandardIndexer
      extends BaseNode
      implements Indexer

  An abstract standard implementation of the Indexer interface, providing common bookkeeping functionality.
  Author:
    Gabor Bergmann

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `StandardIndexer(ReteContainer reteContainer, TupleMask mask)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `assignTraceInfo(TraceInfo traceInfo)` assigns new traceability info to this node
    `void` | `attachListener(IndexerListener listener)`
    `void` | `detachListener(IndexerListener listener)`
    `ReteContainer` | `getContainer()`
    `java.util.Collection<IndexerListener>` | `getListeners()`
    `TupleMask` | `getMask()`
    `Supplier` | `getParent()`

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

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

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

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

    - ### Methods inherited from interface org.eclipse.incquery.runtime.rete.index.Indexer

      `get, getActiveNode`

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

      `acceptPropagatedTraceInfo, getNodeId, getTag, getTraceInfos, setTag`

- - ### Constructor Detail

    - #### StandardIndexer

          public StandardIndexer(ReteContainer reteContainer,
                                 TupleMask mask)

  - ### Method Detail

    - #### getMask

          public TupleMask getMask()

      Specified by:
        `getMask` in interface `Indexer`
      Returns:
        the mask

    - #### getParent

          public Supplier getParent()

      Specified by:
        `getParent` in interface `Indexer`
      Returns:
        the node whose contents are indexed.

    - #### attachListener

          public void attachListener(IndexerListener listener)

      Specified by:
        `attachListener` in interface `Indexer`

    - #### detachListener

          public void detachListener(IndexerListener listener)

      Specified by:
        `detachListener` in interface `Indexer`

    - #### getListeners

          public java.util.Collection<IndexerListener> getListeners()

      Specified by:
        `getListeners` in interface `Indexer`

    - #### getContainer

          public ReteContainer getContainer()

      Specified by:
        `getContainer` in interface `Node`
      Overrides:
        `getContainer` in class `BaseNode`
      Returns:
        the network this node belongs to.

    - #### assignTraceInfo

          public void assignTraceInfo(TraceInfo traceInfo)

      Description copied from interface: `Node`
      assigns new traceability info to this node
      Specified by:
        `assignTraceInfo` in interface `Node`
      Overrides:
        `assignTraceInfo` in class `BaseNode`