Class PredicateAstNode
- java.lang.Object
-
- org.apache.pinot.pql.parsers.pql2.ast.BaseAstNode
-
- org.apache.pinot.pql.parsers.pql2.ast.PredicateAstNode
-
- All Implemented Interfaces:
AstNode
- Direct Known Subclasses:
BetweenPredicateAstNode,ComparisonPredicateAstNode,InPredicateAstNode,IsNullPredicateAstNode,PredicateListAstNode,PredicateParenthesisGroupAstNode,RegexpLikePredicateAstNode,TextMatchPredicateAstNode
public abstract class PredicateAstNode extends BaseAstNode
Common interface and implementation for predicate AST nodes.
-
-
Field Summary
Fields Modifier and Type Field Description protected String_identifier
-
Constructor Summary
Constructors Constructor Description PredicateAstNode()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract ExpressionbuildFilterExpression()Create the query expression tree for the where clauseabstract FilterQueryTreebuildFilterQueryTree()Create the query tree for the where clauseStringgetIdentifier()Returns the name of the identifier on the left hand side of this predicate, or null if the predicate is not based on an identifier.-
Methods inherited from class org.apache.pinot.pql.parsers.pql2.ast.BaseAstNode
addChild, doneProcessingChildren, getChildren, getParent, hasChildren, hasParent, sendBrokerRequestUpdateToChildren, sendPinotQueryUpdateToChildren, setParent, toString, toString, updateBrokerRequest, updatePinotQuery
-
-
-
-
Field Detail
-
_identifier
protected String _identifier
-
-
Method Detail
-
buildFilterQueryTree
public abstract FilterQueryTree buildFilterQueryTree()
Create the query tree for the where clause- Returns:
-
buildFilterExpression
public abstract Expression buildFilterExpression()
Create the query expression tree for the where clause- Returns:
-
getIdentifier
public String getIdentifier()
Returns the name of the identifier on the left hand side of this predicate, or null if the predicate is not based on an identifier.- Returns:
- The identifier or null if there is no identifier on the left hand side of this predicate
-
-