Class FullTextTerm
java.lang.Object
org.apache.jackrabbit.oak.spi.query.fulltext.FullTextExpression
org.apache.jackrabbit.oak.spi.query.fulltext.FullTextTerm
A fulltext term, or a "not" term.
-
Field Summary
Fields inherited from class org.apache.jackrabbit.oak.spi.query.fulltext.FullTextExpression
PRECEDENCE_AND, PRECEDENCE_OR, PRECEDENCE_TERM -
Constructor Summary
ConstructorsConstructorDescriptionFullTextTerm(String propertyName, String text, boolean not, boolean escaped, String boost) FullTextTerm(String propertyName, FullTextTerm copy) -
Method Summary
Modifier and TypeMethodDescriptionbooleanLet the expression call the applicable visit method of the visitor.booleanEvaluate whether the value matches the condition.getBoost()intGet the operator precedence.getText()static booleanisFullTextCharacter(char c) Whether or not the given character is part of a full-text term that should be indexed.booleanisNot()Whether the currentFullTextExpressionis aNOTcondition or not.simplify()toString()Get the string representation of the condition.Methods inherited from class org.apache.jackrabbit.oak.spi.query.fulltext.FullTextExpression
equals, hashCode
-
Constructor Details
-
FullTextTerm
-
FullTextTerm
-
-
Method Details
-
isFullTextCharacter
public static boolean isFullTextCharacter(char c) Whether or not the given character is part of a full-text term that should be indexed. Not indexed are punctuation, control characters such as tab, See also Unicode Categories.- Parameters:
c- the character- Returns:
- true if the character should be indexed
-
evaluate
Description copied from class:FullTextExpressionEvaluate whether the value matches the condition.- Specified by:
evaluatein classFullTextExpression- Parameters:
value- the value- Returns:
- true if it matches
-
simplify
-
toString
Description copied from class:FullTextExpressionGet the string representation of the condition.- Specified by:
toStringin classFullTextExpression
-
getPropertyName
-
getBoost
-
isNot
public boolean isNot()Description copied from class:FullTextExpressionWhether the currentFullTextExpressionis aNOTcondition or not. Default is false- Overrides:
isNotin classFullTextExpression- Returns:
- true if the current condition represent a NOT, false otherwise.
-
getText
-
getPrecedence
public int getPrecedence()Description copied from class:FullTextExpressionGet the operator precedence.- Specified by:
getPrecedencein classFullTextExpression- Returns:
- the precedence
-
accept
Description copied from class:FullTextExpressionLet the expression call the applicable visit method of the visitor.- Specified by:
acceptin classFullTextExpression- Parameters:
v- the visitor- Returns:
- true if the visit method returned true
-