Class ObjectIterator

  • All Implemented Interfaces:
    java.util.Iterator<Node>, IteratorCloseable<Node>, Closeable, ClosableIterator<Node>, ExtendedIterator<Node>

    public abstract class ObjectIterator
    extends NiceIterator<Node>
    Helper class for listObjects. Because literal indexing means that the domain of the object map is not a node, but an indexing value (shared by a bunch of different literal nodes), getting the list of objects requires mapping that indexing value to all the triples that use it, and then filtering those triples for their objects, removing duplicates.
    • Constructor Detail

      • ObjectIterator

        public ObjectIterator​(java.util.Iterator<?> domain)
    • Method Detail

      • hasNext

        public boolean hasNext()
        Description copied from class: NiceIterator
        default hasNext: no elements, return false.
        Specified by:
        hasNext in interface java.util.Iterator<Node>
        hasNext in class NiceIterator<Node>
      • next

        public Node next()
        Description copied from class: NiceIterator
        default next: throw an exception.
        Specified by:
        next in interface java.util.Iterator<Node>
        next in class NiceIterator<Node>
      • remove

        public void remove()
        Description copied from class: NiceIterator
        default remove: we have no elements, so we can't remove any.
        Specified by:
        remove in interface java.util.Iterator<Node>
        remove in class NiceIterator<Node>