public class FullyBufferedJustificationIterator extends Object implements IJustificationIterator
Justification
s for a given
statement.DEFAULT_CHUNK_SIZE
Constructor and Description |
---|
FullyBufferedJustificationIterator(AbstractTripleStore db,
ISPO head) |
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes the iterator, releasing any associated resources.
|
boolean |
hasNext() |
Justification |
next()
The next element available from the iterator.
|
Justification[] |
nextChunk()
Return the next "chunk" from the iterator.
|
void |
remove()
Removes the last
Justification visited from the database
(non-batch API). |
public FullyBufferedJustificationIterator(AbstractTripleStore db, ISPO head)
db
- head
- The statement whose justifications will be materialized.public boolean hasNext()
hasNext
in interface Iterator<Justification>
public Justification next()
IChunkedIterator
next
in interface IChunkedIterator<Justification>
next
in interface Iterator<Justification>
public void remove()
Justification
visited from the database
(non-batch API).remove
in interface IChunkedIterator<Justification>
remove
in interface Iterator<Justification>
public void close()
ICloseableIterator
ICloseableIterator.close()
if Iterator.hasNext()
method returns false
to ensure that the iterator is closed
(and its resources release) as soon as it is exhausted.
Note: Implementations that support Iterator.remove()
MUST NOT
eagerly close the iterator when it is exhausted since that would make it
impossible to remove the last visited statement. Instead they MUST wait
for an explicit ICloseableIterator.close()
by the application.
close
in interface ICloseable
close
in interface ICloseableIterator<Justification>
public Justification[] nextChunk()
IChunkedIterator
nextChunk
in interface IChunkedIterator<Justification>
Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.