@PublicEvolving public class TableColumn extends Object
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
Optional<String> |
getExpr()
Returns computation expression of this column.
|
String |
getName()
Returns name of this column.
|
DataType |
getType()
Returns data type of this column.
|
int |
hashCode() |
boolean |
isGenerated()
Returns if this column is a computed column that is generated from an expression.
|
static TableColumn |
of(String name,
DataType type)
Creates a table column from given name and data type.
|
static TableColumn |
of(String name,
DataType type,
String expression)
Creates a table column from given name and computation expression.
|
public static TableColumn of(String name, DataType type)
public static TableColumn of(String name, DataType type, String expression)
name
- Name of the columnexpression
- SQL-style expressionpublic DataType getType()
public String getName()
public Optional<String> getExpr()
public boolean isGenerated()
Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.