public final class Column extends LeafExpression
Row.
It is recommended that you instantiate using an existing table schema
StructType with StructType.column(int).
Only supports primitive data types, see Delta Transaction Log Protocol: Primitive Types.
| Constructor and Description |
|---|
Column(int ordinal,
java.lang.String name,
DataType dataType) |
| Modifier and Type | Method and Description |
|---|---|
DataType |
dataType() |
boolean |
equals(java.lang.Object o) |
java.lang.Object |
eval(Row row) |
int |
hashCode() |
java.lang.String |
name() |
java.util.Set<java.lang.String> |
references() |
java.lang.String |
toString() |
childrenpublic Column(int ordinal,
java.lang.String name,
DataType dataType)
public java.lang.String name()
public java.lang.Object eval(Row row)
row - the input row to evaluate.Row.public DataType dataType()
DataType of the result of evaluating this expression.public java.lang.String toString()
toString in interface ExpressiontoString in class java.lang.Objectpublic java.util.Set<java.lang.String> references()
references in interface Expressionreferences in class LeafExpressionpublic boolean equals(java.lang.Object o)
equals in class LeafExpressionpublic int hashCode()
hashCode in class LeafExpression