ResolvedSchema and Column.@Deprecated @PublicEvolving public abstract class TableColumn extends Object
A table column is fully resolved with a name and DataType. It describes either a
TableColumn.PhysicalColumn, TableColumn.ComputedColumn, or TableColumn.MetadataColumn.
| 限定符和类型 | 类和说明 |
|---|---|
static class |
TableColumn.ComputedColumn
已过时。
Representation of a computed column.
|
static class |
TableColumn.MetadataColumn
已过时。
Representation of a metadata column.
|
static class |
TableColumn.PhysicalColumn
已过时。
Representation of a physical column.
|
| 限定符和类型 | 方法和说明 |
|---|---|
String |
asSummaryString()
已过时。
Returns a string that summarizes this column for printing to a console.
|
static TableColumn.ComputedColumn |
computed(String name,
DataType type,
String expression)
已过时。
Creates a computed column that is computed from the given SQL expression.
|
boolean |
equals(Object o)
已过时。
|
abstract Optional<String> |
explainExtras()
已过时。
Returns an explanation of specific column extras next to name and type.
|
String |
getName()
已过时。
Returns the name of this column.
|
DataType |
getType()
已过时。
Returns the data type of this column.
|
int |
hashCode()
已过时。
|
abstract boolean |
isPersisted()
已过时。
Returns whether the given column is persisted in a sink operation.
|
abstract boolean |
isPhysical()
已过时。
Returns whether the given column is a physical column of a table; neither computed nor
metadata.
|
static TableColumn.MetadataColumn |
metadata(String name,
DataType type)
已过时。
Creates a metadata column from metadata of the given column name.
|
static TableColumn.MetadataColumn |
metadata(String name,
DataType type,
boolean isVirtual)
已过时。
Creates a metadata column from metadata of the given column name.
|
static TableColumn.MetadataColumn |
metadata(String name,
DataType type,
String metadataAlias)
已过时。
Creates a metadata column from metadata of the given alias.
|
static TableColumn.MetadataColumn |
metadata(String name,
DataType type,
String metadataAlias,
boolean isVirtual)
已过时。
Creates a metadata column from metadata of the given column name or from metadata of the
given alias (if not null).
|
static TableColumn |
of(String name,
DataType type)
已过时。
Use
physical(String, DataType) instead. |
static TableColumn |
of(String name,
DataType type,
String expression)
已过时。
Use
computed(String, DataType, String) instead. |
static TableColumn.PhysicalColumn |
physical(String name,
DataType type)
已过时。
Creates a regular table column that represents physical data.
|
String |
toString()
已过时。
|
public static TableColumn.PhysicalColumn physical(String name, DataType type)
public static TableColumn.ComputedColumn computed(String name, DataType type, String expression)
public static TableColumn.MetadataColumn metadata(String name, DataType type)
The column is not virtual by default.
public static TableColumn.MetadataColumn metadata(String name, DataType type, boolean isVirtual)
Allows to specify whether the column is virtual or not.
public static TableColumn.MetadataColumn metadata(String name, DataType type, String metadataAlias)
The column is not virtual by default.
public static TableColumn.MetadataColumn metadata(String name, DataType type, @Nullable String metadataAlias, boolean isVirtual)
Allows to specify whether the column is virtual or not.
@Deprecated public static TableColumn of(String name, DataType type)
physical(String, DataType) instead.@Deprecated public static TableColumn of(String name, DataType type, String expression)
computed(String, DataType, String) instead.public abstract boolean isPhysical()
public abstract boolean isPersisted()
public DataType getType()
public String getName()
public String asSummaryString()
public abstract Optional<String> explainExtras()
Copyright © 2014–2022 The Apache Software Foundation. All rights reserved.