| 限定符和类型 | 方法和说明 |
|---|---|
TableSchema |
TableSchema.Builder.build()
Returns a
TableSchema instance. |
TableSchema |
TableSchema.copy()
Returns a deep copy of the table schema.
|
static TableSchema |
TableSchema.fromTypeInfo(org.apache.flink.api.common.typeinfo.TypeInformation<?> typeInfo)
已过时。
This method will be removed soon. Use
DataTypes to declare types. |
| 限定符和类型 | 方法和说明 |
|---|---|
TableSchema |
CatalogBaseTable.getSchema()
Get the schema of the table.
|
| 限定符和类型 | 方法和说明 |
|---|---|
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.
|
TableSchema |
FileSystemFormatFactory.WriterContext.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 |
DataTypeUtils.expandCompositeTypeToSchema(DataType dataType)
Expands a composite
DataType to a corresponding TableSchema. |
| 限定符和类型 | 方法和说明 |
|---|---|
static TableSchema |
TableSchemaUtils.checkNoGeneratedColumns(TableSchema schema)
Throws exception if the given
TableSchema contains any generated 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.checkNoGeneratedColumns(TableSchema schema)
Throws exception if the given
TableSchema contains any generated columns. |
static boolean |
TableSchemaUtils.containsGeneratedColumns(TableSchema schema)
Returns true if there are any generated columns in the given
TableColumn. |
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).
|
static void |
PrintUtils.printAsTableauForm(TableSchema tableSchema,
Iterator<org.apache.flink.types.Row> it,
PrintWriter printWriter)
Displays the result in a tableau form.
|
static void |
PrintUtils.printAsTableauForm(TableSchema tableSchema,
Iterator<org.apache.flink.types.Row> it,
PrintWriter printWriter,
int maxColumnWidth,
String nullColumn,
boolean deriveColumnWidthByType)
Displays the result in a tableau form.
|
static TableSchema |
TableSchemaUtils.projectSchema(TableSchema tableSchema,
int[][] projectedFields)
Creates a new
TableSchema with the projected fields from another TableSchema. |
Copyright © 2014–2020 The Apache Software Foundation. All rights reserved.