|
||||||||||
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
org.modeshape.graph.request.AccessQueryRequest
public class AccessQueryRequest
A Request
to issue an access query a graph, where an access query is a low-level atomic query that is part of a large,
planned query.
Constructor Summary | |
---|---|
AccessQueryRequest(String workspace,
SelectorName tableName,
QueryResults.Columns resultColumns,
List<Constraint> andedConstraints,
Limit limit,
Schemata schemata,
Map<String,Object> variables)
Create a new request to execute the supplied query against the name workspace. |
Method Summary | |
---|---|
List<Constraint> |
andedConstraints()
Get the immutable list of constraints that are AND-ed together in this query. |
boolean |
equals(Object obj)
|
RequestType |
getType()
Returns the type of the request |
int |
hashCode()
|
Limit |
limit()
Get the limit of the result tuples, which can specify a maximum number of rows as well as an
initial offset for the first row. |
QueryResults.Columns |
resultColumns()
Get the specification of the columns for the results . |
Schemata |
schemata()
Get the schemata that defines the table structure and columns definitions available to this query. |
SelectorName |
selectorName()
Get the name of the selector (or table) that is being queried. |
void |
setResults(List<Object[]> tuples,
QueryResults.Statistics statistics)
Set the results for this request. |
String |
toString()
|
Map<String,Object> |
variables()
The variables that are available to be substituted upon execution. |
String |
workspace()
Get the name of the workspace in which the node exists. |
Methods inherited from class org.modeshape.graph.request.SearchRequest |
---|
cancel, columns, doSetResults, getStatistics, getTuples, isReadOnly |
Methods inherited from class org.modeshape.graph.request.Request |
---|
checkNotFrozen, freeze, getError, hasError, isCancelled, isFrozen, printable, printable, setError, setLatchForFreezing |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public AccessQueryRequest(String workspace, SelectorName tableName, QueryResults.Columns resultColumns, List<Constraint> andedConstraints, Limit limit, Schemata schemata, Map<String,Object> variables)
workspace
- the name of the workspace to be queriedtableName
- the name of the selector (or table) being queriedresultColumns
- the specification of the expected columns in the result tuplesandedConstraints
- the list of AND-ed constraints; may be empty or null if there are no constraintslimit
- the limit on the results; may be null if there is no limitschemata
- the schemata that defines the table and columns being queried; may not be nullvariables
- the variables that are available to be substituted upon execution; may be null if there are no variables
IllegalArgumentException
- if the query or workspace name is nullMethod Detail |
---|
public String workspace()
public SelectorName selectorName()
public QueryResults.Columns resultColumns()
results
.
public List<Constraint> andedConstraints()
tuple in the
results
must satisfy all of these constraints.
public Map<String,Object> variables()
public Schemata schemata()
public Limit limit()
maximum number of rows
as well as an
initial offset
for the first row.
unlimited
if there is no effective limitpublic void setResults(List<Object[]> tuples, QueryResults.Statistics statistics)
tuples
- the result valuesstatistics
- the statistics, or null if there are nonepublic int hashCode()
hashCode
in class Object
Object.hashCode()
public boolean equals(Object obj)
equals
in class Object
Object.equals(java.lang.Object)
public String toString()
toString
in class Object
Object.toString()
public RequestType getType()
Request
getType
in class Request
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |