Class NodeToTriplesMapBase

    • Field Detail

      • bunchMap

        public BunchMap bunchMap
        The map from nodes to Bunch(Triple).
    • Method Detail

      • add

        public abstract boolean add​(Triple t)
        Add t to this NTM; the node o must be the index node of the triple. Answer true iff the triple was not previously in the set, ie, it really truly has been added.
      • remove

        public abstract boolean remove​(Triple t)
        Remove t from this NTM. Answer true iff the triple was previously in the set, ie, it really truly has been removed.
      • contains

        public abstract boolean contains​(Triple t)
        Answer true iff this NTM contains the concrete triple t.
      • containsBySameValueAs

        public abstract boolean containsBySameValueAs​(Triple t)
      • domain

        public final java.util.Iterator<java.lang.Object> domain()
        The values (usually nodes) which appear in the index position of the stored triples; useful for eg listSubjects().
      • clear

        public void clear()
        Clear this NTM; it will contain no triples.
      • size

        public int size()
      • removedOneViaIterator

        public void removedOneViaIterator()
      • isEmpty

        public boolean isEmpty()
      • iteratorForIndexed

        public abstract java.util.Iterator<Triple> iteratorForIndexed​(java.lang.Object y)
        Answer an iterator over all the triples that are indexed by the item y. Note that y need not be a Node (because of indexing values).
      • iterateAll

        public ExtendedIterator<Triple> iterateAll()
        Answer an iterator over all the triples in this NTM.