@Internal public final class SchemaTranslator extends Object
DataType, Schema, and projections for sinks and
sources.| Modifier and Type | Class and Description |
|---|---|
static class |
SchemaTranslator.ConsumingResult
|
static class |
SchemaTranslator.ProducingResult
|
| Constructor and Description |
|---|
SchemaTranslator() |
| Modifier and Type | Method and Description |
|---|---|
static SchemaTranslator.ConsumingResult |
createConsumingResult(org.apache.flink.table.catalog.DataTypeFactory dataTypeFactory,
org.apache.flink.table.types.DataType inputDataType,
org.apache.flink.table.api.Schema declaredSchema,
boolean mergePhysicalSchema)
Converts the given
DataType and an optional declared Schema (possibly
incomplete) into the final SchemaTranslator.ConsumingResult. |
static SchemaTranslator.ConsumingResult |
createConsumingResult(org.apache.flink.table.catalog.DataTypeFactory dataTypeFactory,
org.apache.flink.api.common.typeinfo.TypeInformation<?> inputTypeInfo,
org.apache.flink.table.api.Schema declaredSchema)
Converts the given
TypeInformation and an optional declared Schema (possibly
incomplete) into the final SchemaTranslator.ConsumingResult. |
static SchemaTranslator.ProducingResult |
createProducingResult(org.apache.flink.table.catalog.DataTypeFactory dataTypeFactory,
org.apache.flink.table.catalog.ResolvedSchema inputSchema,
org.apache.flink.table.types.AbstractDataType<?> targetDataType)
Converts the given
DataType into the final SchemaTranslator.ProducingResult. |
static SchemaTranslator.ProducingResult |
createProducingResult(org.apache.flink.table.catalog.ResolvedSchema inputSchema,
org.apache.flink.table.api.Schema declaredSchema)
Converts the given
DataType into the final SchemaTranslator.ProducingResult. |
public static SchemaTranslator.ProducingResult createProducingResult(org.apache.flink.table.catalog.ResolvedSchema inputSchema, @Nullable org.apache.flink.table.api.Schema declaredSchema)
DataType into the final SchemaTranslator.ProducingResult.
This method serves three types of use cases:
public static SchemaTranslator.ProducingResult createProducingResult(org.apache.flink.table.catalog.DataTypeFactory dataTypeFactory, org.apache.flink.table.catalog.ResolvedSchema inputSchema, org.apache.flink.table.types.AbstractDataType<?> targetDataType)
DataType into the final SchemaTranslator.ProducingResult.
This method serves one type of use case:
public static SchemaTranslator.ConsumingResult createConsumingResult(org.apache.flink.table.catalog.DataTypeFactory dataTypeFactory, org.apache.flink.api.common.typeinfo.TypeInformation<?> inputTypeInfo, @Nullable org.apache.flink.table.api.Schema declaredSchema)
TypeInformation and an optional declared Schema (possibly
incomplete) into the final SchemaTranslator.ConsumingResult.
This method serves three types of use cases:
public static SchemaTranslator.ConsumingResult createConsumingResult(org.apache.flink.table.catalog.DataTypeFactory dataTypeFactory, org.apache.flink.table.types.DataType inputDataType, @Nullable org.apache.flink.table.api.Schema declaredSchema, boolean mergePhysicalSchema)
DataType and an optional declared Schema (possibly
incomplete) into the final SchemaTranslator.ConsumingResult.
This method serves three types of use cases:
true).
Copyright © 2014–2023 The Apache Software Foundation. All rights reserved.