public class SimilarImpl extends ConstraintImpl
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
MORE_LIKE_THIS_PREFIX |
static java.lang.String |
NATIVE_LUCENE_LANGUAGE |
protected QueryImpl |
query |
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.
|
protected java.lang.String |
getLocalPath(java.lang.String path)
Calculate the session local path (the path excluding the workspace name)
if possible.
|
StaticOperandImpl |
getPathExpression() |
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, evaluateStop, getFullTextConstraint, hashCode, simplify
public static final java.lang.String NATIVE_LUCENE_LANGUAGE
public static final java.lang.String MORE_LIKE_THIS_PREFIX
protected QueryImpl query
public java.lang.String toString()
toString
in class java.lang.Object
public boolean evaluate()
ConstraintImpl
evaluate
in class ConstraintImpl
public java.util.Set<PropertyExistenceImpl> getPropertyExistenceConditions()
ConstraintImpl
getPropertyExistenceConditions
in class ConstraintImpl
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 java.util.Set<SelectorImpl> getSelectors()
ConstraintImpl
getSelectors
in class ConstraintImpl
public void bindSelector(SourceImpl source)
public StaticOperandImpl getPathExpression()
public 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.