public abstract class BinaryExpression extends Object implements Expression
Expression
with two inputs and one output. The output is by default evaluated to null
if either input is evaluated to null.Modifier and Type | Method and Description |
---|---|
java.util.List<Expression> |
children() |
boolean |
equals(Object o) |
Object |
eval(RowRecord record) |
Expression |
getLeft() |
Expression |
getRight() |
int |
hashCode() |
dataType, references, toString
public Expression getLeft()
public Expression getRight()
public final Object eval(RowRecord record)
eval
in interface Expression
record
- the input record to evaluate.RowRecord
.public java.util.List<Expression> children()
children
in interface Expression
List
of the immediate children of this nodepublic boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object