Class FullTextExpression
java.lang.Object
org.apache.jackrabbit.oak.spi.query.fulltext.FullTextExpression
- Direct Known Subclasses:
FullTextAnd
,FullTextContains
,FullTextOr
,FullTextTerm
The base class for fulltext condition expression.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
The operator precedence for AND conditions.static final int
The operator precedence for OR conditions.static final int
The operator precedence for terms. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract boolean
Let the expression call the applicable visit method of the visitor.boolean
abstract boolean
Evaluate whether the value matches the condition.abstract int
Get the operator precedence.int
hashCode()
boolean
isNot()
Whether the currentFullTextExpression
is aNOT
condition or not.abstract String
toString()
Get the string representation of the condition.
-
Field Details
-
PRECEDENCE_OR
public static final int PRECEDENCE_ORThe operator precedence for OR conditions.- See Also:
-
PRECEDENCE_AND
public static final int PRECEDENCE_ANDThe operator precedence for AND conditions.- See Also:
-
PRECEDENCE_TERM
public static final int PRECEDENCE_TERMThe operator precedence for terms.- See Also:
-
-
Constructor Details
-
FullTextExpression
public FullTextExpression()
-
-
Method Details
-
getPrecedence
public abstract int getPrecedence()Get the operator precedence.- Returns:
- the precedence
-
evaluate
Evaluate whether the value matches the condition.- Parameters:
value
- the value- Returns:
- true if it matches
-
toString
Get the string representation of the condition. -
equals
-
hashCode
public int hashCode() -
accept
Let the expression call the applicable visit method of the visitor.- Parameters:
v
- the visitor- Returns:
- true if the visit method returned true
-
isNot
public boolean isNot()Whether the currentFullTextExpression
is aNOT
condition or not. Default is false- Returns:
- true if the current condition represent a NOT, false otherwise.
-