Class NotFullTextSearchImpl
- java.lang.Object
-
- org.apache.jackrabbit.oak.query.ast.ConstraintImpl
-
- org.apache.jackrabbit.oak.query.ast.FullTextSearchImpl
-
- org.apache.jackrabbit.oak.query.ast.NotFullTextSearchImpl
-
public class NotFullTextSearchImpl extends FullTextSearchImpl
-
-
Constructor Summary
Constructors Constructor Description NotFullTextSearchImpl(String selectorName, String propertyName, StaticOperandImpl fullTextSearchExpression)
NotFullTextSearchImpl(FullTextSearchImpl ft)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected PropertyValue
convertValueToType(PropertyValue v, PropertyValue targetType)
protected String
getLocalPath(String path)
Calculate the session local path (the path excluding the workspace name) if possible.protected String
normalizePath(String path)
Validate and normalize the path.protected String
normalizePropertyName(String propertyName)
Normalize the property name (including namespace remapping).protected String
protect(Object expression)
protected static String
quote(String pathOrName)
protected static String
quoteJson(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
setQuery(QueryImpl query)
String
toString()
-
Methods inherited from class org.apache.jackrabbit.oak.query.ast.FullTextSearchImpl
bindSelector, copyOf, evaluate, evaluateStop, getFullTextConstraint, getFullTextSearchExpression, getPropertyExistenceConditions, getSelectors, restrict, restrictPushDown
-
Methods inherited from class org.apache.jackrabbit.oak.query.ast.ConstraintImpl
containsUnfilteredFullTextCondition, convertToUnion, equals, hashCode, simplify
-
-
-
-
Field Detail
-
query
protected QueryImpl query
-
-
Constructor Detail
-
NotFullTextSearchImpl
public NotFullTextSearchImpl(String selectorName, String propertyName, StaticOperandImpl fullTextSearchExpression)
-
NotFullTextSearchImpl
public NotFullTextSearchImpl(FullTextSearchImpl ft)
-
-
Method Detail
-
toString
public String toString()
- Overrides:
toString
in classFullTextSearchImpl
-
requiresFullTextIndex
public boolean requiresFullTextIndex()
Description copied from class:ConstraintImpl
Whether the constraint contains a fulltext condition that requires using a fulltext index, because the condition can only be evaluated there.- Overrides:
requiresFullTextIndex
in classFullTextSearchImpl
- Returns:
- true if yes
-
setQuery
public void setQuery(QueryImpl query)
-
normalizePropertyName
protected String normalizePropertyName(String propertyName)
Normalize the property name (including namespace remapping). Asterisks are kept.- Parameters:
propertyName
- the property name to normalize- Returns:
- the normalized (oak-) property name
-
normalizePath
protected String normalizePath(String path)
Validate and normalize the path.- Parameters:
path
- the path to validate- Returns:
- the validated and normalized path
-
convertValueToType
protected PropertyValue convertValueToType(PropertyValue v, PropertyValue targetType)
-
-