|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openrdf.query.impl.TupleQueryResultImpl
public class TupleQueryResultImpl
A generic implementation of the TupleQueryResult interface.
| Constructor Summary | |
|---|---|
TupleQueryResultImpl(List<String> bindingNames,
CloseableIteration<? extends BindingSet,QueryEvaluationException> bindingSetIter)
Creates a query result object with the supplied binding names. |
|
TupleQueryResultImpl(List<String> bindingNames,
Iterable<? extends BindingSet> bindingSets)
Creates a query result object with the supplied binding names. |
|
TupleQueryResultImpl(List<String> bindingNames,
Iterator<? extends BindingSet> bindingSetIter)
|
|
| Method Summary | |
|---|---|
void |
close()
Closes this iteration, freeing any resources that it is holding. |
List<String> |
getBindingNames()
Gets the names of the bindings, in order of projection. |
boolean |
hasNext()
Returns true if the iteration has more elements. |
BindingSet |
next()
Returns the next element in the iteration. |
void |
remove()
Removes from the underlying collection the last element returned by the iteration (optional operation). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TupleQueryResultImpl(List<String> bindingNames,
Iterable<? extends BindingSet> bindingSets)
bindingNames - The binding names, in order of projection.
public TupleQueryResultImpl(List<String> bindingNames,
Iterator<? extends BindingSet> bindingSetIter)
public TupleQueryResultImpl(List<String> bindingNames,
CloseableIteration<? extends BindingSet,QueryEvaluationException> bindingSetIter)
bindingNames - The binding names, in order of projection.| Method Detail |
|---|
public List<String> getBindingNames()
TupleQueryResult
getBindingNames in interface TupleQueryResult
public void close()
throws QueryEvaluationException
CloseableIteration
close in interface CloseableIteration<BindingSet,QueryEvaluationException>QueryEvaluationException
public boolean hasNext()
throws QueryEvaluationException
IterationIteration.next() would return an element
rather than throwing a NoSuchElementException.)
hasNext in interface Iteration<BindingSet,QueryEvaluationException>QueryEvaluationException
public BindingSet next()
throws QueryEvaluationException
Iteration
next in interface Iteration<BindingSet,QueryEvaluationException>QueryEvaluationException
public void remove()
throws QueryEvaluationException
Iteration
remove in interface Iteration<BindingSet,QueryEvaluationException>QueryEvaluationException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||