|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.dna.graph.request.Request
org.jboss.dna.graph.request.SearchRequest
org.jboss.dna.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)
|
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.jboss.dna.graph.request.SearchRequest |
|---|
cancel, getStatistics, getTuples, isReadOnly |
| Methods inherited from class org.jboss.dna.graph.request.Request |
|---|
freeze, getError, hasError, isCancelled, isFrozen, setError, setLatchForFreezing |
| Methods inherited from class java.lang.Object |
|---|
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 null| Method 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 limit
public 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 ObjectObject.hashCode()public boolean equals(Object obj)
equals in class ObjectObject.equals(java.lang.Object)public String toString()
toString in class ObjectObject.toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||