org.eclipse.viatra.query.runtime.rete.index

## Class MemoryNullIndexer

- 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.index.SpecializedProjectionIndexer
      - - org.eclipse.viatra.query.runtime.rete.index.NullIndexer
        - - org.eclipse.viatra.query.runtime.rete.index.MemoryNullIndexer

- All Implemented Interfaces:
    java.lang.Iterable<Tuple>, Indexer, IterableIndexer, ProjectionIndexer, Node

      public class MemoryNullIndexer
      extends NullIndexer

  Defines a trivial indexer that projects the contents of a memory-equipped node to the empty tuple, and can therefore save space. Can only exist in connection with a memory, and must be operated by another node. Do not attach parents directly!

- - ### Field Summary

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

      `activeNode`

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

      `listeners, mask, parent`

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

      `nodeId, reteContainer, tag, traceInfos`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `MemoryNullIndexer(ReteContainer reteContainer, int tupleWidth, java.util.Collection<Tuple> memory, Supplier parent, Receiver activeNode)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `protected java.util.Collection<Tuple>` | `getTuples()`

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

      `get, getSignatures, isEmpty, isSingleElement, iterator, propagate`

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

      `getActiveNode`

    - ### 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.index.Indexer

      `attachListener, detachListener, getListeners, getMask, getParent`

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

      `acceptPropagatedTraceInfo, assignTraceInfo, getContainer, getNodeId, getTag, getTraceInfos, setTag`

    - ### Methods inherited from interface java.lang.Iterable

      `forEach, spliterator`

- - ### Constructor Detail

    - #### MemoryNullIndexer

          public MemoryNullIndexer(ReteContainer reteContainer,
                                   int tupleWidth,
                                   java.util.Collection<Tuple> memory,
                                   Supplier parent,
                                   Receiver activeNode)

      Parameters:
        `reteContainer` -
        `tupleWidth` - the width of the tuples of memoryNode
        `memory` - the memory whose contents are to be null-indexed
        `parent` - the parent node that owns the memory

  - ### Method Detail

    - #### getTuples

          protected java.util.Collection<Tuple> getTuples()

      Specified by:
        `getTuples` in class `NullIndexer`
      Returns: