Package org.apache.jena.mem
Class ObjectIterator
- java.lang.Object
-
- org.apache.jena.util.iterator.NiceIterator<Node>
-
- org.apache.jena.mem.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 Summary
Constructors Constructor Description ObjectIterator(java.util.Iterator<?> domain)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
hasNext()
default hasNext: no elements, return false.Node
next()
default next: throw an exception.void
remove()
default remove: we have no elements, so we can't remove any.-
Methods inherited from class org.apache.jena.util.iterator.NiceIterator
andThen, andThen, asList, asSet, close, close, emptyIterator, filterDrop, filterKeep, mapWith, removeNext, toList, toSet
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.jena.util.iterator.ExtendedIterator
forEach, nextOptional
-
-
-
-
Method Detail
-
hasNext
public boolean hasNext()
Description copied from class:NiceIterator
default hasNext: no elements, return false.- Specified by:
hasNext
in interfacejava.util.Iterator<Node>
- Overrides:
hasNext
in classNiceIterator<Node>
-
next
public Node next()
Description copied from class:NiceIterator
default next: throw an exception.- Specified by:
next
in interfacejava.util.Iterator<Node>
- Overrides:
next
in classNiceIterator<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 interfacejava.util.Iterator<Node>
- Overrides:
remove
in classNiceIterator<Node>
-
-