| Modifier and Type | Method and Description |
|---|---|
TableSchema |
TableSchema.Builder.build()
Returns a
TableSchema instance. |
TableSchema |
TableSchema.copy()
Deprecated.
Returns a deep copy of the table schema.
|
static TableSchema |
TableSchema.fromResolvedSchema(ResolvedSchema resolvedSchema)
Deprecated.
Helps to migrate to the new
ResolvedSchema to old API methods. |
static TableSchema |
TableSchema.fromTypeInfo(org.apache.flink.api.common.typeinfo.TypeInformation<?> typeInfo)
Deprecated.
This method will be removed soon. Use
DataTypes to declare types. |
| Modifier and Type | Method and Description |
|---|---|
default TableSchema |
ResolvedCatalogBaseTable.getSchema()
Deprecated.
This method returns the deprecated
TableSchema class. The old class was a
hybrid of resolved and unresolved schema information. It has been replaced by the new
ResolvedSchema which is resolved by the framework and accessible via ResolvedCatalogBaseTable.getResolvedSchema(). |
default TableSchema |
CatalogBaseTable.getSchema()
Deprecated.
This method returns the deprecated
TableSchema class. The old class was a
hybrid of resolved and unresolved schema information. It has been replaced by the new
Schema which is always unresolved and will be resolved by the framework later. |
| Modifier and Type | Method and Description |
|---|---|
TableSchema |
DescriptorProperties.getTableSchema(String key)
Deprecated.
Returns a table schema under the given existing key.
|
| Modifier and Type | Method and Description |
|---|---|
Optional<TableSchema> |
DescriptorProperties.getOptionalTableSchema(String key)
Deprecated.
Returns a table schema under the given key if it exists.
|
| Modifier and Type | Method and Description |
|---|---|
void |
DescriptorProperties.putTableSchema(String key,
TableSchema schema)
Deprecated.
Adds a table schema under the given key.
|
Schema |
Schema.schema(TableSchema schema)
Deprecated.
Sets the schema with field names and the types.
|
| Modifier and Type | Method and Description |
|---|---|
default TableSchema |
TableSink.getTableSchema()
Deprecated.
Returns the schema of the consumed table.
|
| Modifier and Type | Method and Description |
|---|---|
TableSchema |
TableSource.getTableSchema()
Deprecated.
Table schema is a logical description of a table and should not be part of the
physical TableSource. Define schema when registering a Table either in DDL or in
TableEnvironment#connect(...). |
| Modifier and Type | Method and Description |
|---|---|
static void |
TableSourceValidation.validateTableSource(TableSource<?> tableSource,
TableSchema schema)
Validates a TableSource.
|
| Modifier and Type | Method and Description |
|---|---|
static TableSchema |
TableSchemaUtils.checkOnlyPhysicalColumns(TableSchema schema)
Throws an exception if the given
TableSchema contains any non-physical columns. |
static TableSchema |
TableSchemaUtils.dropConstraint(TableSchema oriSchema,
String constraintName)
Creates a new schema but drop the constraint with given name.
|
static TableSchema |
TableSchemaUtils.getPersistedSchema(TableSchema tableSchema)
Return
TableSchema which consists of all persisted columns. |
static TableSchema |
TableSchemaUtils.getPhysicalSchema(TableSchema tableSchema)
Return
TableSchema which consists of all physical columns. |
| Modifier and Type | Method and Description |
|---|---|
static TableSchema.Builder |
TableSchemaUtils.builderWithGivenSchema(TableSchema oriSchema)
Creates a builder with given table schema.
|
static TableSchema |
TableSchemaUtils.checkOnlyPhysicalColumns(TableSchema schema)
Throws an exception if the given
TableSchema contains any non-physical columns. |
static boolean |
TableSchemaUtils.containsPhysicalColumnsOnly(TableSchema schema)
Returns true if there are only physical columns in the given
TableSchema. |
static TableSchema |
TableSchemaUtils.dropConstraint(TableSchema oriSchema,
String constraintName)
Creates a new schema but drop the constraint with given name.
|
static TableSchema |
TableSchemaUtils.getPersistedSchema(TableSchema tableSchema)
Return
TableSchema which consists of all persisted columns. |
static TableSchema |
TableSchemaUtils.getPhysicalSchema(TableSchema tableSchema)
Return
TableSchema which consists of all physical columns. |
static int[] |
TableSchemaUtils.getPrimaryKeyIndices(TableSchema schema)
Returns the field indices of primary key in the physical columns of this schema (not include
computed columns or metadata columns).
|
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.