public class SolutionSetStreamDecoder extends Object implements ICloseableIterator<IBindingSet[]>
SolutionSetStreamEncoder
Constructor and Description |
---|
SolutionSetStreamDecoder(String name,
DataInputStream in,
long solutionSetCount) |
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes the iterator, releasing any associated resources.
|
boolean |
hasNext() |
IBindingSet[] |
next() |
void |
remove() |
public SolutionSetStreamDecoder(String name, DataInputStream in, long solutionSetCount)
name
- The name of the solution set.in
- The solutions are read from this stream.solutionSetCount
- The #of solutions to be read from the stream.IOException
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.