public class ChunkedMaterializationIterator extends Object implements ICloseableIterator<IBindingSet[]>
ChunkedMaterializationOp
Constructor and Description |
---|
ChunkedMaterializationIterator(IVariable<?>[] vars,
LexiconRelation lex,
boolean materializeInlineIVs,
ICloseableIterator<IBindingSet[]> src) |
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes the iterator, releasing any associated resources.
|
boolean |
hasNext() |
IBindingSet[] |
next() |
void |
remove() |
public ChunkedMaterializationIterator(IVariable<?>[] vars, LexiconRelation lex, boolean materializeInlineIVs, ICloseableIterator<IBindingSet[]> src)
vars
- The variables to be materialized (required; must not be an
empty array).lex
- The LexiconRelation
.materializeInlineIVs
- When true
, inline IVs will also be materialized.src
- The source iterator.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<IBindingSet[]>
public boolean hasNext()
hasNext
in interface Iterator<IBindingSet[]>
public IBindingSet[] next()
next
in interface Iterator<IBindingSet[]>
public void remove()
remove
in interface Iterator<IBindingSet[]>
Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.