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(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 |
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 |
createProducingResult(DataTypeFactory dataTypeFactory,
ResolvedSchema inputSchema,
AbstractDataType<?> targetDataType)
Converts the given
DataType into the final SchemaTranslator.ProducingResult . |
static SchemaTranslator.ProducingResult |
createProducingResult(ResolvedSchema inputSchema,
Schema declaredSchema)
Converts the given
DataType into the final SchemaTranslator.ProducingResult . |
public static SchemaTranslator.ProducingResult createProducingResult(ResolvedSchema inputSchema, @Nullable Schema declaredSchema)
DataType
into the final SchemaTranslator.ProducingResult
.
This method serves three types of use cases:
public static SchemaTranslator.ProducingResult createProducingResult(DataTypeFactory dataTypeFactory, ResolvedSchema inputSchema, AbstractDataType<?> targetDataType)
DataType
into the final SchemaTranslator.ProducingResult
.
This method serves one type of use case:
public static SchemaTranslator.ConsumingResult createConsumingResult(DataTypeFactory dataTypeFactory, TypeInformation<?> inputTypeInfo, @Nullable 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(DataTypeFactory dataTypeFactory, DataType inputDataType, @Nullable 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–2024 The Apache Software Foundation. All rights reserved.