org.jrdf.graph.local.iterator
Class AnyResourceIterator
java.lang.Object
org.jrdf.graph.local.iterator.ResourceIterator<Resource>
org.jrdf.graph.local.iterator.AnyResourceIterator
- All Implemented Interfaces:
- Iterator<Resource>, ClosableIterator<Resource>
public class AnyResourceIterator
- extends ResourceIterator<Resource>
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AnyResourceIterator
public AnyResourceIterator(LongIndex[] newLongIndexes,
ResourceFactory newResourceFactory,
NodePool newNodePool)
next
public Resource next()
getNextNodeId
protected long getNextNodeId(Iterator<Map.Entry<Long,Map<Long,Set<Long>>>> iterator)
- Description copied from class:
ResourceIterator
- Provides a customizable way in which to filter out resource nodes based on type.
- Specified by:
getNextNodeId in class ResourceIterator<Resource>
- Parameters:
iterator - iterators over the index.
- Returns:
- the next node identifier.