public class WGStructEntryRetrievalIterator extends de.innovationgate.utils.PrefetchingIterator<WGStructEntry> implements de.innovationgate.utils.SkippingIterator<WGStructEntry>
close()
should be called on this iterator after using it so it can release backend resources.Constructor and Description |
---|
WGStructEntryRetrievalIterator(WGDatabase db,
WGDocument parent,
java.util.Iterator<WGDocumentCore> structCores) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
static WGStructEntryRetrievalIterator |
emptyIterator()
Returns an empty version of this iterator type
|
WGDatabase |
getDatabase()
Returns the database of the struct entries returned
|
int |
skip(int nrOfElements)
Will skip the given number of elements in the queue.
|
hasNext, next, previewNextValue, remove
public WGStructEntryRetrievalIterator(WGDatabase db, WGDocument parent, java.util.Iterator<WGDocumentCore> structCores)
public static WGStructEntryRetrievalIterator emptyIterator()
public int skip(int nrOfElements)
de.innovationgate.utils.SkippingIterator
Iterator.next()
method will return the element immediately after the last skipped one.
Must be called before any iterating methods (Iterator.next()
Iterator.hasNext()
) have been used. Otherwise an IllegalStateException
is thrown.skip
in interface de.innovationgate.utils.SkippingIterator<WGStructEntry>
nrOfElements
- Number of elements to skippublic WGDatabase getDatabase()
public void close()