Package | Description |
---|---|
org.apache.flink.table.types.inference | |
org.apache.flink.table.types.inference.transforms | |
org.apache.flink.table.types.utils |
Modifier and Type | Method and Description |
---|---|
static TypeTransformation |
TypeTransformations.legacyDecimalToDefaultDecimal()
Returns a type transformation that transforms legacy decimal data type to DECIMAL(38, 18).
|
static TypeTransformation |
TypeTransformations.legacyRawToTypeInfoRaw()
Returns a type transformation that transforms LEGACY('RAW', ...) type to the RAW(..., ?) type.
|
static TypeTransformation |
TypeTransformations.timeToSqlTypes()
|
static TypeTransformation |
TypeTransformations.toNullable()
Returns a type transformation that transforms data type to nullable data type but keeps
other information unchanged.
|
Modifier and Type | Class and Description |
---|---|
class |
DataTypeConversionClassTransformation
This type transformation transforms the specified data types to a new one with the expected
conversion class.
|
class |
LegacyDecimalTypeTransformation
This type transformation transforms the legacy decimal type (usually converted from
Types.BIG_DEC ) to DECIMAL(38, 18). |
class |
LegacyRawTypeTransformation
This type transformation transforms the LEGACY('RAW', ...) type to the RAW(..., ?) type.
|
Modifier and Type | Field and Description |
---|---|
static TypeTransformation |
LegacyRawTypeTransformation.INSTANCE |
static TypeTransformation |
LegacyDecimalTypeTransformation.INSTANCE |
Modifier and Type | Method and Description |
---|---|
static DataType |
DataTypeUtils.transform(DataType typeToTransform,
TypeTransformation... transformations)
Transforms the given data type (can be nested) to a different data type using the given
transformations.
|
Copyright © 2014–2020 The Apache Software Foundation. All rights reserved.