| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
JCR_PATH
The "jcr:path" pseudo-property.
|
static java.lang.String |
JCR_SCORE
The "jcr:score" pseudo-property.
|
static java.lang.String |
OAK_SCORE_EXPLANATION
The "oak:explainScore" pseudo-property.
|
static java.lang.String |
REP_EXCERPT
The "rep:excerpt" pseudo-property.
|
static java.lang.String |
REP_FACET
The "rep:facet" pseudo-property.
|
static java.lang.String |
REP_SPELLCHECK
The "rep:spellcheck" pseudo-property.
|
static java.lang.String |
REP_SUGGEST
The "rep:suggest" pseudo-property.
|
| Modifier and Type | Method and Description |
|---|---|
void |
bindValue(java.lang.String varName,
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.
|
ResultImpl |
executeQuery() |
SelectorExecutionPlan |
getBestSelectorExecutionPlan(FilterImpl filter) |
java.util.List<java.lang.String> |
getBindVariableNames() |
PropertyValue |
getBindVariableValue(java.lang.String bindVariableName) |
int |
getColumnIndex(java.lang.String columnName) |
ColumnImpl[] |
getColumns() |
ConstraintImpl |
getConstraint() |
double |
getEstimatedCost()
Get the estimated cost.
|
ExecutionContext |
getExecutionContext() |
java.lang.String |
getIndexCostInfo()
Get the index cost as a JSON string.
|
NamePathMapper |
getNamePathMapper() |
java.lang.String |
getOakPath(java.lang.String path)
Validate the path is syntactically correct, and convert it to an Oak
internal path (including namespace remapping if needed).
|
OrderingImpl[] |
getOrderings() |
java.lang.String |
getPlan()
Get the query plan.
|
java.util.Iterator<ResultRowImpl> |
getRows() |
int |
getSelectorIndex(java.lang.String selectorName) |
java.lang.String[] |
getSelectorNames() |
QueryEngineSettings |
getSettings() |
long |
getSize()
Get the size if known.
|
long |
getSize(Result.SizePrecision precision,
long max)
Get the size if known.
|
SourceImpl |
getSource() |
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.
|
static long |
saturatedAdd(long x,
long y)
Add two values, but don't let it overflow or underflow.
|
void |
setDistinct(boolean distinct) |
void |
setExecutionContext(ExecutionContext context) |
void |
setExplain(boolean explain) |
void |
setInternal(boolean isInternal) |
void |
setLimit(long limit) |
void |
setMeasure(boolean measure) |
void |
setOffset(long offset) |
void |
setOrderings(OrderingImpl[] orderings) |
void |
setTraversalEnabled(boolean traversalEnabled) |
java.lang.String |
toString() |
public static final java.lang.String JCR_PATH
public static final java.lang.String JCR_SCORE
public static final java.lang.String REP_EXCERPT
public static final java.lang.String REP_FACET
public static final java.lang.String OAK_SCORE_EXPLANATION
public static final java.lang.String REP_SPELLCHECK
public static final java.lang.String REP_SUGGEST
public void init()
Querypublic ColumnImpl[] getColumns()
getColumns in interface Querypublic ConstraintImpl getConstraint()
public OrderingImpl[] getOrderings()
public SourceImpl getSource()
public void bindValue(java.lang.String varName,
PropertyValue value)
public void setExplain(boolean explain)
setExplain in interface Querypublic void setMeasure(boolean measure)
setMeasure in interface Querypublic void setDistinct(boolean distinct)
public ResultImpl executeQuery()
executeQuery in interface Querypublic java.util.Iterator<ResultRowImpl> getRows()
public boolean isSortedByIndex()
QueryisSortedByIndex in interface Querypublic java.lang.String getPlan()
Querypublic java.lang.String getIndexCostInfo()
QuerygetIndexCostInfo in interface Querypublic double getEstimatedCost()
QuerygetEstimatedCost in interface Querypublic void prepare()
Querypublic int getSelectorIndex(java.lang.String selectorName)
getSelectorIndex in interface Querypublic int getColumnIndex(java.lang.String columnName)
getColumnIndex in interface Querypublic PropertyValue getBindVariableValue(java.lang.String bindVariableName)
public java.lang.String[] getSelectorNames()
getSelectorNames in interface Querypublic java.util.List<java.lang.String> getBindVariableNames()
getBindVariableNames in interface Querypublic void setTraversalEnabled(boolean traversalEnabled)
setTraversalEnabled in interface Querypublic SelectorExecutionPlan getBestSelectorExecutionPlan(FilterImpl filter)
public void setExecutionContext(ExecutionContext context)
setExecutionContext in interface Querypublic void setOrderings(OrderingImpl[] orderings)
setOrderings in interface Querypublic NamePathMapper getNamePathMapper()
public boolean isMeasureOrExplainEnabled()
isMeasureOrExplainEnabled in interface Querypublic java.lang.String getOakPath(java.lang.String path)
path - the pathpublic java.lang.String toString()
toString in class java.lang.Objectpublic long getSize()
Querypublic long getSize(Result.SizePrecision precision, long max)
Querypublic java.lang.String getStatement()
getStatement in interface Querypublic QueryEngineSettings getSettings()
public void setInternal(boolean isInternal)
setInternal in interface Querypublic ExecutionContext getExecutionContext()
public static long saturatedAdd(long x,
long y)
x - the first valuey - the second valuepublic Query buildAlternativeQuery()
QueryQuery.init().buildAlternativeQuery in interface Querythis if no conversions are possible or a new instance of
a Query. Cannot return null.public Query copyOf()
Query
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
Query.init() has been executed.
May return null if not implemented.
public boolean isInit()
public boolean isInternal()
isInternal in interface Querytrue if the current query is internal. false otherwise.public boolean containsUnfilteredFullTextCondition()
QuerycontainsUnfilteredFullTextCondition in interface Query"Copyright © 2010 - 2018 Adobe Systems Incorporated. All Rights Reserved"