| 限定符和类型 | 方法和说明 |
|---|---|
TableSchema |
TableSchema.Builder.build()
Returns a
TableSchema instance. |
TableSchema |
TableSchema.copy()
已过时。
Returns a deep copy of the table schema.
|
static TableSchema |
TableSchema.fromResolvedSchema(ResolvedSchema resolvedSchema)
已过时。
Helps to migrate to the new
ResolvedSchema to old API methods. |
static TableSchema |
TableSchema.fromTypeInfo(org.apache.flink.api.common.typeinfo.TypeInformation<?> typeInfo)
已过时。
This method will be removed soon. Use
DataTypes to declare types. |
| 限定符和类型 | 方法和说明 |
|---|---|
default TableSchema |
CatalogBaseTable.getSchema()
已过时。
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. |
default TableSchema |
ResolvedCatalogBaseTable.getSchema()
已过时。
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(). |
| 限定符和类型 | 方法和说明 |
|---|---|
TableSchema |
DescriptorProperties.getTableSchema(String key)
已过时。
Returns a table schema under the given existing key.
|
| 限定符和类型 | 方法和说明 |
|---|---|
Optional<TableSchema> |
DescriptorProperties.getOptionalTableSchema(String key)
已过时。
Returns a table schema under the given key if it exists.
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
DescriptorProperties.putTableSchema(String key,
TableSchema schema)
已过时。
Adds a table schema under the given key.
|
Schema |
Schema.schema(TableSchema schema)
已过时。
Sets the schema with field names and the types.
|
| 限定符和类型 | 方法和说明 |
|---|---|
static TableSchema |
TableFormatFactoryBase.deriveSchema(Map<String,String> properties)
Finds the table schema that can be used for a format schema (without time attributes and
generated columns).
|
TableSchema |
FileSystemFormatFactory.ReaderContext.getSchema()
Full schema of the table.
|
| 限定符和类型 | 方法和说明 |
|---|---|
default TableSchema |
TableSink.getTableSchema()
已过时。
Returns the schema of the consumed table.
|
| 限定符和类型 | 方法和说明 |
|---|---|
TableSchema |
TableSource.getTableSchema()
已过时。
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(...). |
| 限定符和类型 | 方法和说明 |
|---|---|
static void |
TableSourceValidation.validateTableSource(TableSource<?> tableSource,
TableSchema schema)
Validates a TableSource.
|
| 限定符和类型 | 方法和说明 |
|---|---|
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.getPhysicalSchema(TableSchema tableSchema)
Return
TableSchema which consists of all physical columns. |
static TableSchema |
TableSchemaUtils.projectSchema(TableSchema tableSchema,
int[][] projectedFields)
Creates a new
TableSchema with the projected fields from another TableSchema. |
| 限定符和类型 | 方法和说明 |
|---|---|
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.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).
|
static TableSchema |
TableSchemaUtils.projectSchema(TableSchema tableSchema,
int[][] projectedFields)
Creates a new
TableSchema with the projected fields from another TableSchema. |
Copyright © 2014–2022 The Apache Software Foundation. All rights reserved.