public abstract class BinaryExpression extends java.lang.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 | Field and Description |
|---|---|
protected Expression |
left |
protected Expression |
right |
| Modifier | Constructor and Description |
|---|---|
protected |
BinaryExpression(Expression left,
Expression right) |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<Expression> |
children() |
boolean |
equals(java.lang.Object o) |
java.lang.Object |
eval(Row row) |
Expression |
getLeft() |
Expression |
getRight() |
int |
hashCode() |
protected abstract java.lang.Object |
nullSafeEval(java.lang.Object leftResult,
java.lang.Object rightResult) |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitdataType, references, toStringprotected final Expression left
protected final Expression right
protected BinaryExpression(Expression left, Expression right)
public Expression getLeft()
public Expression getRight()
public final java.lang.Object eval(Row row)
eval in interface Expressionrow - the input row to evaluate.Row.protected abstract java.lang.Object nullSafeEval(java.lang.Object leftResult,
java.lang.Object rightResult)
public java.util.List<Expression> children()
children in interface ExpressionList of the immediate children of this nodepublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object