Class MemoryIdentityIndexer

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

    public class MemoryIdentityIndexer
    extends IdentityIndexer
    Defines a trivial indexer that identically projects the contents of a memory-equipped node, 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!
    No Implement:
    Rely on the provided implementations
    No Reference:
    Use only via standard Node and Indexer interfaces
    No Instantiate:
    This class is not intended to be instantiated by clients.
    • Field Detail

      • memory

        protected final java.util.Collection<Tuple> memory
    • Constructor Detail

      • MemoryIdentityIndexer

        public MemoryIdentityIndexer​(ReteContainer reteContainer,
                                     int tupleWidth,
                                     java.util.Collection<Tuple> memory,
                                     Supplier parent,
                                     Receiver activeNode,
                                     java.util.List<SpecializedProjectionIndexer.ListenerSubscription> sharedSubscriptionList)
        Parameters:
        reteContainer -
        tupleWidth - the width of the tuples of memoryNode
        memory - the memory whose contents are to be identity-indexed
        parent - the parent node that owns the memory