| java.lang.Object org.openrdf.query.impl.MutableTupleQueryResult
MutableTupleQueryResult | public class MutableTupleQueryResult implements TupleQueryResult,Cloneable(Code) | | An implementation of the
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.
author: Arjohn Kampman |
MutableTupleQueryResult | public MutableTupleQueryResult(Collection<String> bindingNames, Collection<? extends BindingSet> bindingSets)(Code) | | Creates a query result table with the supplied binding names.
The supplied list of binding names is assumed to be constant;
care should be taken that the contents of this list doesn't change after
supplying it to this solution.
Parameters: bindingNames - The binding names, in order of projection. |
afterLast | public void afterLast()(Code) | | Moves the cursor to the end of the query result, just after the last
binding set.
|
beforeFirst | public void beforeFirst()(Code) | | Moves the cursor to the start of the query result, just before the first
binding set. After calling this method, the result can be iterated over
from scratch.
|
clear | public void clear()(Code) | | |
close | public void close()(Code) | | |
getIndex | public int getIndex()(Code) | | |
hasNext | public boolean hasNext()(Code) | | |
hasPrevious | public boolean hasPrevious()(Code) | | |
insert | public void insert(BindingSet bindingSet)(Code) | | Inserts the specified binding set into the list. The binding set is
inserted immediately before the next element that would be returned by
MutableTupleQueryResult.next() , if any, and after the next element that would be
returned by
MutableTupleQueryResult.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.
Parameters: bindingSet - The binding set to insert. |
remove | public void remove()(Code) | | |
setIndex | public void setIndex(int index)(Code) | | |
|
|