Class IdentityIndexer

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

    public abstract class IdentityIndexer
    extends SpecializedProjectionIndexer
    Defines an abstract trivial indexer that identically projects the contents of some stateful node, and can therefore save space. Can only exist in connection with a stateful store, and must be operated by another node (the active 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.
    • Method Detail

      • getTuples

        protected abstract java.util.Collection<Tuple> getTuples()
      • 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!
      • contains

        protected boolean contains​(Tuple signature)
      • getSignatures

        public java.util.Collection<Tuple> getSignatures()
        Description copied from interface: IterableIndexer
        A view consisting of exactly those signatures whose tuple group is not empty
      • getBucketCount

        public int getBucketCount()
        Returns:
        the number of signatures whose tuple group is not empty
      • iterator

        public java.util.Iterator<Tuple> iterator()