public interface Query
Lifecycle: use the constructor to create a new object. Call init() to initialize the bind variable map. If the query is re-executed, a new instance is created.
| Modifier and Type | Method and Description |
|---|---|
void |
bindValue(java.lang.String key,
PropertyValue value) |
Query |
buildAlternativeQuery()
Try to convert the query to an alternative form, specially a "union".
|
boolean |
containsUnfilteredFullTextCondition()
Whether the condition contains a fulltext condition that can not be
applied to the filter, for example because it is part of an "or" condition
of the form "where a=1 or contains(., 'x')".
|
Query |
copyOf()
returns a clone of the current object.
|
Result |
executeQuery() |
java.util.List<java.lang.String> |
getBindVariableNames() |
int |
getColumnIndex(java.lang.String columnName) |
ColumnImpl[] |
getColumns() |
double |
getEstimatedCost()
Get the estimated cost.
|
java.lang.String |
getIndexCostInfo()
Get the index cost as a JSON string.
|
java.lang.String |
getPlan()
Get the query plan.
|
java.util.Iterator<ResultRowImpl> |
getRows() |
int |
getSelectorIndex(java.lang.String selectorName) |
java.lang.String[] |
getSelectorNames() |
long |
getSize()
Get the size if known.
|
long |
getSize(Result.SizePrecision precision,
long max)
Get the size if known.
|
java.lang.String |
getStatement() |
Tree |
getTree(java.lang.String path) |
void |
init()
Initialize the query.
|
boolean |
isInit() |
boolean |
isInternal() |
boolean |
isMeasureOrExplainEnabled() |
boolean |
isSortedByIndex()
Returns whether the results will be sorted by index.
|
void |
prepare()
Prepare the query.
|
void |
setExecutionContext(ExecutionContext context) |
void |
setExplain(boolean explain) |
void |
setInternal(boolean internal) |
void |
setLimit(long limit) |
void |
setMeasure(boolean measure) |
void |
setOffset(long offset) |
void |
setOrderings(OrderingImpl[] orderings) |
void |
setTraversalEnabled(boolean traversalEnabled) |
void setExecutionContext(ExecutionContext context)
void setLimit(long limit)
void setOffset(long offset)
void bindValue(java.lang.String key,
PropertyValue value)
void setTraversalEnabled(boolean traversalEnabled)
Result executeQuery()
java.util.List<java.lang.String> getBindVariableNames()
ColumnImpl[] getColumns()
int getColumnIndex(java.lang.String columnName)
java.lang.String[] getSelectorNames()
int getSelectorIndex(java.lang.String selectorName)
java.util.Iterator<ResultRowImpl> getRows()
long getSize()
long getSize(Result.SizePrecision precision, long max)
precision - the required precisionmax - the maximum nodes read (for an exact size)void setExplain(boolean explain)
void setMeasure(boolean measure)
void setOrderings(OrderingImpl[] orderings)
void init()
void prepare()
java.lang.String getPlan()
java.lang.String getIndexCostInfo()
double getEstimatedCost()
Tree getTree(java.lang.String path)
boolean isMeasureOrExplainEnabled()
void setInternal(boolean internal)
boolean isSortedByIndex()
Query buildAlternativeQuery()
init().this if no conversions are possible or a new instance of
a Query. Cannot return null.Query copyOf() throws java.lang.IllegalStateException
returns a clone of the current object. Will throw an exception in case it's invoked in a non
appropriate moment. For example the default QueryImpl cannot be cloned once the
init() has been executed.
May return null if not implemented.
java.lang.IllegalStateExceptionboolean isInit()
true if the query has been already initialised. false otherwise.java.lang.String getStatement()
boolean isInternal()
true if the current query is internal. false otherwise.boolean containsUnfilteredFullTextCondition()
"Copyright © 2010 - 2018 Adobe Systems Incorporated. All Rights Reserved"