Enum BooleanOperatorAstNode
- java.lang.Object
-
- java.lang.Enum<BooleanOperatorAstNode>
-
- org.apache.pinot.pql.parsers.pql2.ast.BooleanOperatorAstNode
-
- All Implemented Interfaces:
Serializable,Comparable<BooleanOperatorAstNode>,AstNode
public enum BooleanOperatorAstNode extends Enum<BooleanOperatorAstNode> implements AstNode
AST node for boolean operators (AND, OR). There are an enum so that we can reuse them, as they have no state.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddChild(AstNode childNode)voiddoneProcessingChildren()List<? extends AstNode>getChildren()AstNodegetParent()booleanhasChildren()booleanhasParent()voidsendBrokerRequestUpdateToChildren(BrokerRequest brokerRequest)voidsendPinotQueryUpdateToChildren(PinotQuery pinotQuery)voidsetParent(AstNode parent)StringtoString(int indent)voidupdateBrokerRequest(BrokerRequest brokerRequest)voidupdatePinotQuery(PinotQuery pinotQuery)static BooleanOperatorAstNodevalueOf(String name)Returns the enum constant of this type with the specified name.static BooleanOperatorAstNode[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
AND
public static final BooleanOperatorAstNode AND
-
OR
public static final BooleanOperatorAstNode OR
-
-
Method Detail
-
values
public static BooleanOperatorAstNode[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (BooleanOperatorAstNode c : BooleanOperatorAstNode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static BooleanOperatorAstNode valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getChildren
public List<? extends AstNode> getChildren()
- Specified by:
getChildrenin interfaceAstNode
-
hasChildren
public boolean hasChildren()
- Specified by:
hasChildrenin interfaceAstNode
-
doneProcessingChildren
public void doneProcessingChildren()
- Specified by:
doneProcessingChildrenin interfaceAstNode
-
updateBrokerRequest
public void updateBrokerRequest(BrokerRequest brokerRequest)
- Specified by:
updateBrokerRequestin interfaceAstNode
-
updatePinotQuery
public void updatePinotQuery(PinotQuery pinotQuery)
- Specified by:
updatePinotQueryin interfaceAstNode
-
sendBrokerRequestUpdateToChildren
public void sendBrokerRequestUpdateToChildren(BrokerRequest brokerRequest)
- Specified by:
sendBrokerRequestUpdateToChildrenin interfaceAstNode
-
sendPinotQueryUpdateToChildren
public void sendPinotQueryUpdateToChildren(PinotQuery pinotQuery)
- Specified by:
sendPinotQueryUpdateToChildrenin interfaceAstNode
-
-