|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.modeshape.graph.request.Request
org.modeshape.graph.request.SearchRequest
public abstract class SearchRequest
A Request
to search or query a graph.
Constructor Summary | |
---|---|
SearchRequest()
|
Method Summary | |
---|---|
void |
cancel()
Cancel this request. |
protected QueryResults.Columns |
columns()
Get the specification of the columns for the results. |
protected void |
doSetResults(QueryResults.Columns resultColumns,
List<Object[]> tuples,
QueryResults.Statistics statistics)
Set the results for this request. |
QueryResults.Statistics |
getStatistics()
Get the statistics that describe the time metrics for this query. |
List<Object[]> |
getTuples()
Get the results of this query. |
boolean |
isReadOnly()
Return whether this request only reads information. |
Methods inherited from class org.modeshape.graph.request.Request |
---|
checkNotFrozen, freeze, getError, getType, hasError, isCancelled, isFrozen, printable, printable, setError, setLatchForFreezing |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SearchRequest()
Method Detail |
---|
public final boolean isReadOnly()
isReadOnly
in class Request
Request.isReadOnly()
protected void doSetResults(QueryResults.Columns resultColumns, List<Object[]> tuples, QueryResults.Statistics statistics)
resultColumns
- the definition of the result columnstuples
- the result valuesstatistics
- the statistics, or null if there are noneprotected QueryResults.Columns columns()
public List<Object[]> getTuples()
public QueryResults.Statistics getStatistics()
public void cancel()
cancellation flag
is set, and any current or
future processing of the request may be affected by the cancellation. (Note however, that processors may choose to not
respect this request.)
This method is safe to be called by different threads.
cancel
in class Request
Request.cancel()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |