public final class In extends Object implements Predicate
expr
is in exprList
for new In(expr, exprList)
. True if
expr
is equal to any expression in exprList
, else false.Constructor and Description |
---|
In(Expression value,
java.util.List<? extends Expression> elems) |
Modifier and Type | Method and Description |
---|---|
java.util.List<Expression> |
children() |
Boolean |
eval(RowRecord record)
This implements the
IN expression functionality outlined by the Databricks SQL Null
semantics reference guide. |
String |
toString() |
references
public In(Expression value, java.util.List<? extends Expression> elems)
value
- a nonnull expressionelems
- a nonnull, nonempty list of expressions with the same data type as
value
public Boolean eval(RowRecord record)
IN
expression functionality outlined by the Databricks SQL Null
semantics reference guide. The logic is as follows:
eval
in interface Expression
record
- the input record to evaluate.RowRecord
.public String toString()
toString
in interface Expression
toString
in class Object
public java.util.List<Expression> children()
children
in interface Expression
List
of the immediate children of this node