|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openrdf.query.impl.MutableTupleQueryResult
public class MutableTupleQueryResult
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.
| Constructor Summary | |
|---|---|
MutableTupleQueryResult(Collection<String> bindingNames,
BindingSet... bindingSets)
|
|
MutableTupleQueryResult(Collection<String> bindingNames,
Collection<? extends BindingSet> bindingSets)
Creates a query result table with the supplied binding names. |
|
MutableTupleQueryResult(Collection<String> bindingNames,
Iteration<? extends BindingSet,E> bindingSetIter)
|
|
MutableTupleQueryResult(TupleQueryResult tqr)
|
|
| Method Summary | |
|---|---|
void |
afterLast()
Moves the cursor to the end of the query result, just after the last binding set. |
void |
append(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()
|
BindingSet |
get(int index)
|
List<String> |
getBindingNames()
Gets the names of the bindings, in order of projection. |
int |
getIndex()
|
boolean |
hasNext()
|
boolean |
hasPrevious()
|
void |
insert(BindingSet bindingSet)
Inserts the specified binding set into the list. |
void |
insert(int index,
BindingSet bindingSet)
|
BindingSet |
next()
|
BindingSet |
previous()
|
void |
remove()
|
BindingSet |
remove(int index)
|
void |
set(BindingSet bindingSet)
|
BindingSet |
set(int index,
BindingSet bindingSet)
|
void |
setIndex(int index)
|
int |
size()
|
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MutableTupleQueryResult(Collection<String> bindingNames,
BindingSet... bindingSets)
public MutableTupleQueryResult(Collection<String> bindingNames,
Collection<? extends BindingSet> bindingSets)
bindingNames - The binding names, in order of projection.
public MutableTupleQueryResult(Collection<String> bindingNames,
Iteration<? extends BindingSet,E> bindingSetIter)
throws E extends Exception
E extends Exception
public MutableTupleQueryResult(TupleQueryResult tqr)
throws QueryEvaluationException
QueryEvaluationException| Method Detail |
|---|
public List<String> getBindingNames()
TupleQueryResult
getBindingNames in interface TupleQueryResultpublic int size()
public BindingSet get(int index)
public int getIndex()
public void setIndex(int index)
public boolean hasNext()
hasNext in interface Iteration<BindingSet,QueryEvaluationException>public BindingSet next()
next in interface Iteration<BindingSet,QueryEvaluationException>public boolean hasPrevious()
public BindingSet previous()
public void beforeFirst()
public void afterLast()
public void insert(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,
BindingSet bindingSet)
public void append(BindingSet bindingSet)
public void set(BindingSet bindingSet)
public BindingSet set(int index,
BindingSet bindingSet)
public void remove()
remove in interface Iteration<BindingSet,QueryEvaluationException>public BindingSet remove(int index)
public void clear()
public void close()
close in interface CloseableIteration<BindingSet,QueryEvaluationException>
public MutableTupleQueryResult clone()
throws CloneNotSupportedException
clone in class ObjectCloneNotSupportedException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||