Modifier and Type | Method and Description |
---|---|
Schema |
Schema.Builder.build()
Returns an instance of an unresolved
Schema . |
static Schema |
Schema.derived()
Convenience method for stating explicitly that a schema is empty and should be fully derived
by the framework.
|
Schema |
TableSchema.toSchema()
Deprecated.
Helps to migrate to the new
Schema class. |
Modifier and Type | Method and Description |
---|---|
Optional<Schema> |
TableDescriptor.getSchema() |
Modifier and Type | Method and Description |
---|---|
Schema.Builder |
Schema.Builder.fromSchema(Schema unresolvedSchema)
Adopts all members from the given unresolved schema.
|
TableDescriptor.Builder |
TableDescriptor.Builder.schema(Schema schema)
Define the schema of the
TableDescriptor . |
Constructor and Description |
---|
TableDescriptor(Schema schema,
Map<String,String> options,
List<String> partitionKeys,
String comment) |
Modifier and Type | Method and Description |
---|---|
protected <T> Table |
AbstractStreamTableEnvironmentImpl.fromStreamInternal(DataStream<T> dataStream,
Schema schema,
String viewPath,
ChangelogMode changelogMode) |
Modifier and Type | Method and Description |
---|---|
<T> void |
StreamTableEnvironment.createTemporaryView(String path,
DataStream<T> dataStream,
Schema schema)
Creates a view from the given
DataStream in a given path. |
Table |
StreamTableEnvironment.fromChangelogStream(DataStream<Row> dataStream,
Schema schema)
Converts the given
DataStream of changelog entries into a Table . |
Table |
StreamTableEnvironment.fromChangelogStream(DataStream<Row> dataStream,
Schema schema,
ChangelogMode changelogMode)
Converts the given
DataStream of changelog entries into a Table . |
<T> Table |
StreamTableEnvironment.fromDataStream(DataStream<T> dataStream,
Schema schema)
Converts the given
DataStream into a Table . |
DataStream<Row> |
StreamTableEnvironment.toChangelogStream(Table table,
Schema targetSchema)
Converts the given
Table into a DataStream of changelog entries. |
DataStream<Row> |
StreamTableEnvironment.toChangelogStream(Table table,
Schema targetSchema,
ChangelogMode changelogMode)
Converts the given
Table into a DataStream of changelog entries. |
Modifier and Type | Method and Description |
---|---|
<T> void |
StreamTableEnvironmentImpl.createTemporaryView(String path,
DataStream<T> dataStream,
Schema schema) |
Table |
StreamTableEnvironmentImpl.fromChangelogStream(DataStream<Row> dataStream,
Schema schema) |
Table |
StreamTableEnvironmentImpl.fromChangelogStream(DataStream<Row> dataStream,
Schema schema,
ChangelogMode changelogMode) |
<T> Table |
StreamTableEnvironmentImpl.fromDataStream(DataStream<T> dataStream,
Schema schema) |
DataStream<Row> |
StreamTableEnvironmentImpl.toChangelogStream(Table table,
Schema targetSchema) |
DataStream<Row> |
StreamTableEnvironmentImpl.toChangelogStream(Table table,
Schema targetSchema,
ChangelogMode changelogMode) |
Modifier and Type | Method and Description |
---|---|
Schema |
SchemaTranslator.ConsumingResult.getSchema() |
Schema |
SchemaTranslator.ProducingResult.getSchema() |
Schema |
ExternalCatalogTable.getUnresolvedSchema() |
Schema |
QueryOperationCatalogView.getUnresolvedSchema() |
default Schema |
CatalogBaseTable.getUnresolvedSchema()
Returns the schema of the table or view.
|
Schema |
ResolvedCatalogView.getUnresolvedSchema() |
Schema |
DefaultCatalogTable.getUnresolvedSchema() |
Schema |
ResolvedCatalogTable.getUnresolvedSchema() |
Modifier and Type | Method and Description |
---|---|
static SchemaTranslator.ConsumingResult |
SchemaTranslator.createConsumingResult(DataTypeFactory dataTypeFactory,
DataType inputDataType,
Schema declaredSchema,
boolean mergePhysicalSchema)
Converts the given
DataType and an optional declared Schema (possibly
incomplete) into the final SchemaTranslator.ConsumingResult . |
static SchemaTranslator.ConsumingResult |
SchemaTranslator.createConsumingResult(DataTypeFactory dataTypeFactory,
TypeInformation<?> inputTypeInfo,
Schema declaredSchema)
Converts the given
TypeInformation and an optional declared Schema (possibly
incomplete) into the final SchemaTranslator.ConsumingResult . |
static SchemaTranslator.ProducingResult |
SchemaTranslator.createProducingResult(ResolvedSchema inputSchema,
Schema declaredSchema)
Converts the given
DataType into the final SchemaTranslator.ProducingResult . |
static CatalogTable |
CatalogTable.of(Schema schema,
String comment,
List<String> partitionKeys,
Map<String,String> options)
Creates a basic implementation of this interface.
|
static CatalogView |
CatalogView.of(Schema schema,
String comment,
String originalQuery,
String expandedQuery,
Map<String,String> options)
Creates a basic implementation of this interface.
|
ResolvedSchema |
SchemaResolver.resolve(Schema schema) |
Constructor and Description |
---|
DefaultCatalogTable(Schema schema,
String comment,
List<String> partitionKeys,
Map<String,String> options) |
ExternalCatalogTable(Schema schema) |
Modifier and Type | Method and Description |
---|---|
static TableSchema |
HiveParserUtils.fromUnresolvedSchema(Schema schema)
Helps to migrate the new
Schema to old API methods. |
Copyright © 2014–2023 The Apache Software Foundation. All rights reserved.