public class FullTextSearchImpl extends ConstraintImpl
Constructor and Description |
---|
FullTextSearchImpl(java.lang.String selectorName,
java.lang.String propertyName,
StaticOperandImpl fullTextSearchExpression) |
Modifier and Type | Method and Description |
---|---|
void |
bindSelector(SourceImpl source) |
protected PropertyValue |
convertValueToType(PropertyValue v,
PropertyValue targetType) |
org.apache.jackrabbit.oak.query.ast.AstElement |
copyOf() |
boolean |
evaluate()
Evaluate the result using the currently set values.
|
boolean |
evaluateStop()
Whether this condition will, from now on, always evaluate to false.
|
FullTextExpression |
getFullTextConstraint(SelectorImpl s)
Get the (combined) full-text constraint.
|
StaticOperandImpl |
getFullTextSearchExpression() |
protected java.lang.String |
getLocalPath(java.lang.String path)
Calculate the session local path (the path excluding the workspace name)
if possible.
|
java.util.Set<PropertyExistenceImpl> |
getPropertyExistenceConditions()
Get the set of property existence conditions that can be derived for this
condition.
|
java.util.Set<SelectorImpl> |
getSelectors()
Get the set of selectors for the given condition.
|
protected java.lang.String |
normalizePath(java.lang.String path)
Validate and normalize the path.
|
protected java.lang.String |
normalizePropertyName(java.lang.String propertyName)
Normalize the property name (including namespace remapping).
|
protected java.lang.String |
protect(java.lang.Object expression) |
protected java.lang.String |
quote(java.lang.String pathOrName) |
protected java.lang.String |
quoteJson(java.lang.String string) |
boolean |
requiresFullTextIndex()
Whether the constraint contains a fulltext condition that requires
using a fulltext index, because the condition can only be evaluated there.
|
void |
restrict(FilterImpl f)
Apply the condition to the filter, further restricting the filter if
possible.
|
void |
restrictPushDown(SelectorImpl s)
Push as much of the condition down to this selector, further restricting
the selector condition if possible.
|
void |
setQuery(QueryImpl query) |
java.lang.String |
toString() |
containsUnfilteredFullTextCondition, convertToUnion, equals, hashCode, simplify
protected QueryImpl query
public FullTextSearchImpl(java.lang.String selectorName, java.lang.String propertyName, StaticOperandImpl fullTextSearchExpression)
public StaticOperandImpl getFullTextSearchExpression()
public java.lang.String toString()
toString
in class java.lang.Object
public java.util.Set<PropertyExistenceImpl> getPropertyExistenceConditions()
ConstraintImpl
getPropertyExistenceConditions
in class ConstraintImpl
public FullTextExpression getFullTextConstraint(SelectorImpl s)
ConstraintImpl
getFullTextConstraint
in class ConstraintImpl
s
- the selectorpublic java.util.Set<SelectorImpl> getSelectors()
ConstraintImpl
getSelectors
in class ConstraintImpl
public boolean evaluate()
ConstraintImpl
evaluate
in class ConstraintImpl
public boolean evaluateStop()
ConstraintImpl
"WHERE ROWNUM < 10"
in Oracle.evaluateStop
in class ConstraintImpl
public void bindSelector(SourceImpl source)
public void restrict(FilterImpl f)
ConstraintImpl
restrict
in class ConstraintImpl
f
- the filterpublic void restrictPushDown(SelectorImpl s)
ConstraintImpl
restrictPushDown
in class ConstraintImpl
s
- the selectorpublic org.apache.jackrabbit.oak.query.ast.AstElement copyOf()
AstElement
returns same reference
to this
.public boolean requiresFullTextIndex()
ConstraintImpl
requiresFullTextIndex
in class ConstraintImpl
protected java.lang.String protect(java.lang.Object expression)
protected java.lang.String quote(java.lang.String pathOrName)
protected java.lang.String quoteJson(java.lang.String string)
public void setQuery(QueryImpl query)
protected java.lang.String normalizePropertyName(java.lang.String propertyName)
propertyName
- the property name to normalizeprotected java.lang.String normalizePath(java.lang.String path)
path
- the path to validateprotected PropertyValue convertValueToType(PropertyValue v, PropertyValue targetType)
protected java.lang.String getLocalPath(java.lang.String path)
path
- the absolute pathCopyright © 2012–2022 The Apache Software Foundation. All rights reserved.