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
.
Modifier and Type | Class and Description |
---|---|
static class |
TableColumn.ComputedColumn
Deprecated.
Representation of a computed column.
|
static class |
TableColumn.MetadataColumn
Deprecated.
Representation of a metadata column.
|
static class |
TableColumn.PhysicalColumn
Deprecated.
Representation of a physical column.
|
Modifier and Type | Method and Description |
---|---|
String |
asSummaryString()
Deprecated.
Returns a string that summarizes this column for printing to a console.
|
static TableColumn.ComputedColumn |
computed(String name,
DataType type,
String expression)
Deprecated.
Creates a computed column that is computed from the given SQL expression.
|
boolean |
equals(Object o)
Deprecated.
|
abstract Optional<String> |
explainExtras()
Deprecated.
Returns an explanation of specific column extras next to name and type.
|
String |
getName()
Deprecated.
Returns the name of this column.
|
DataType |
getType()
Deprecated.
Returns the data type of this column.
|
int |
hashCode()
Deprecated.
|
abstract boolean |
isPersisted()
Deprecated.
Returns whether the given column is persisted in a sink operation.
|
abstract boolean |
isPhysical()
Deprecated.
Returns whether the given column is a physical column of a table; neither computed nor
metadata.
|
static TableColumn.MetadataColumn |
metadata(String name,
DataType type)
Deprecated.
Creates a metadata column from metadata of the given column name.
|
static TableColumn.MetadataColumn |
metadata(String name,
DataType type,
boolean isVirtual)
Deprecated.
Creates a metadata column from metadata of the given column name.
|
static TableColumn.MetadataColumn |
metadata(String name,
DataType type,
String metadataAlias)
Deprecated.
Creates a metadata column from metadata of the given alias.
|
static TableColumn.MetadataColumn |
metadata(String name,
DataType type,
String metadataAlias,
boolean isVirtual)
Deprecated.
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)
Deprecated.
Use
physical(String, DataType) instead. |
static TableColumn |
of(String name,
DataType type,
String expression)
Deprecated.
Use
computed(String, DataType, String) instead. |
static TableColumn.PhysicalColumn |
physical(String name,
DataType type)
Deprecated.
Creates a regular table column that represents physical data.
|
String |
toString()
Deprecated.
|
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–2024 The Apache Software Foundation. All rights reserved.