public final class Column extends LeafExpression
RowRecord
.
It is recommended that you instantiate using an existing table schema StructType
with StructType.column(String)
. For example, mySchema.column(columnName)
.
Only supports primitive data types, see Delta Transaction Log Protocol: Primitive Types.
Modifier and Type | Method and Description |
---|---|
DataType |
dataType() |
boolean |
equals(Object o) |
Object |
eval(RowRecord record) |
int |
hashCode() |
String |
name() |
java.util.Set<String> |
references() |
String |
toString() |
children
public Column(String name, DataType dataType)
public String name()
public Object eval(RowRecord record)
record
- the input record to evaluate.public DataType dataType()
public String toString()
toString
in interface Expression
toString
in class Object
public java.util.Set<String> references()
references
in interface Expression
references
in class LeafExpression
public boolean equals(Object o)
equals
in class LeafExpression
public int hashCode()
hashCode
in class LeafExpression