public class ExtractingIterator extends Object implements ClosableIterator<Node>
Iterator
over nodes, based on an iterator over QueryRow
,
such as returned by sparqlSelect(..).
Extracts a single variable from a QueryRow
.Constructor and Description |
---|
ExtractingIterator(Model model,
ClosableIterator<QueryRow> it,
String extractVariable) |
Modifier and Type | Method and Description |
---|---|
void |
close()
The uderlying implementation frees resources.
|
Model |
getModel() |
boolean |
hasNext()
Returns true if the iteration has more elements.
|
Node |
next()
Returns the next element in the iteration.
|
void |
remove()
Removes from the underlying collection the last element returned by the
iterator (optional operation).
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEachRemaining
public ExtractingIterator(Model model, ClosableIterator<QueryRow> it, String extractVariable)
public boolean hasNext()
ClosableIterator
public Node next()
ClosableIterator
ClosableIterator.hasNext()
method returns false will return each
element in the underlying collection exactly once.public void remove()
ClosableIterator
public void close()
ClosableIterator
close
in interface ClosableIterator<Node>
public Model getModel()
Copyright © 2005–2017 IT-Consulting Dr. Max V?lkel | Project started at FZI Forschungszentrum Informatik, www.fzi.de. All rights reserved.