public class MutableTupleQueryResult extends Object implements org.openrdf.query.TupleQueryResult, Cloneable
TupleQueryResult interface that stores the
 complete query result in memory. The query results in a
 MutableTupleQueryResult can be iterated over multiple times and can also be
 iterated over in reverse order.| Constructor and Description | 
|---|
| MutableTupleQueryResult(Collection<String> bindingNames,
                       org.openrdf.query.BindingSet... bindingSets) | 
| MutableTupleQueryResult(Collection<String> bindingNames,
                       Collection<? extends org.openrdf.query.BindingSet> bindingSets)Creates a query result table with the supplied binding names. | 
| MutableTupleQueryResult(Collection<String> bindingNames,
                       info.aduna.iteration.Iteration<? extends org.openrdf.query.BindingSet,E> bindingSetIter) | 
| MutableTupleQueryResult(org.openrdf.query.TupleQueryResult tqr) | 
| Modifier and Type | Method and Description | 
|---|---|
| void | afterLast()Moves the cursor to the end of the query result, just after the last
 binding set. | 
| void | append(org.openrdf.query.BindingSet bindingSet) | 
| void | beforeFirst()Moves the cursor to the start of the query result, just before the first
 binding set. | 
| void | clear() | 
| MutableTupleQueryResult | clone() | 
| void | close() | 
| org.openrdf.query.BindingSet | get(int index) | 
| List<String> | getBindingNames() | 
| int | getIndex() | 
| boolean | hasNext() | 
| boolean | hasPrevious() | 
| void | insert(org.openrdf.query.BindingSet bindingSet)Inserts the specified binding set into the list. | 
| void | insert(int index,
      org.openrdf.query.BindingSet bindingSet) | 
| org.openrdf.query.BindingSet | next() | 
| org.openrdf.query.BindingSet | previous() | 
| void | remove() | 
| org.openrdf.query.BindingSet | remove(int index) | 
| void | set(org.openrdf.query.BindingSet bindingSet) | 
| org.openrdf.query.BindingSet | set(int index,
   org.openrdf.query.BindingSet bindingSet) | 
| void | setIndex(int index) | 
| int | size() | 
public MutableTupleQueryResult(Collection<String> bindingNames, org.openrdf.query.BindingSet... bindingSets)
public MutableTupleQueryResult(Collection<String> bindingNames, Collection<? extends org.openrdf.query.BindingSet> bindingSets)
bindingNames - The binding names, in order of projection.public MutableTupleQueryResult(Collection<String> bindingNames, info.aduna.iteration.Iteration<? extends org.openrdf.query.BindingSet,E> bindingSetIter) throws E extends Exception
E extends Exceptionpublic MutableTupleQueryResult(org.openrdf.query.TupleQueryResult tqr)
                        throws org.openrdf.query.QueryEvaluationException
org.openrdf.query.QueryEvaluationExceptionpublic List<String> getBindingNames()
getBindingNames in interface org.openrdf.query.TupleQueryResultpublic int size()
public org.openrdf.query.BindingSet get(int index)
public int getIndex()
public void setIndex(int index)
public boolean hasNext()
hasNext in interface info.aduna.iteration.Iteration<org.openrdf.query.BindingSet,org.openrdf.query.QueryEvaluationException>public org.openrdf.query.BindingSet next()
next in interface info.aduna.iteration.Iteration<org.openrdf.query.BindingSet,org.openrdf.query.QueryEvaluationException>public boolean hasPrevious()
public org.openrdf.query.BindingSet previous()
public void beforeFirst()
public void afterLast()
public void insert(org.openrdf.query.BindingSet bindingSet)
next(), if any, and after the next element that would be
 returned by previous(), if any. (If the table contains no binding
 sets, the new element becomes the sole element on the table.) The new
 element is inserted before the implicit cursor: a subsequent call to
 next() would be unaffected, and a subsequent call to
 previous() would return the new binding set.bindingSet - The binding set to insert.public void insert(int index,
          org.openrdf.query.BindingSet bindingSet)
public void append(org.openrdf.query.BindingSet bindingSet)
public void set(org.openrdf.query.BindingSet bindingSet)
public org.openrdf.query.BindingSet set(int index,
                               org.openrdf.query.BindingSet bindingSet)
public void remove()
remove in interface info.aduna.iteration.Iteration<org.openrdf.query.BindingSet,org.openrdf.query.QueryEvaluationException>public org.openrdf.query.BindingSet remove(int index)
public void clear()
public void close()
close in interface info.aduna.iteration.CloseableIteration<org.openrdf.query.BindingSet,org.openrdf.query.QueryEvaluationException>public MutableTupleQueryResult clone() throws CloneNotSupportedException
clone in class ObjectCloneNotSupportedExceptionCopyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.