| Modifier and Type | Method and Description |
|---|---|
static DataType |
DataTypes.ARRAY(DataType elementDataType)
Data type of an array of elements with same subtype.
|
static DataType |
DataTypes.BIGINT()
Data type of an 8-byte signed integer with values from -9,223,372,036,854,775,808 to
9,223,372,036,854,775,807.
|
static DataType |
DataTypes.BINARY(int n)
Data type of a fixed-length binary string (=a sequence of bytes)
BINARY(n) where
n is the number of bytes. |
static DataType |
DataTypes.BOOLEAN()
Data type of a boolean with a (possibly) three-valued logic of
TRUE, FALSE, UNKNOWN. |
static DataType |
DataTypes.BYTES()
Data type of a variable-length binary string (=a sequence of bytes) with defined maximum
length.
|
static DataType |
DataTypes.CHAR(int n)
Data type of a fixed-length character string
CHAR(n) where n is the number of
code points. |
static DataType |
DataTypes.DATE()
Data type of a date consisting of
year-month-day with values ranging from 0000-01-01 to 9999-12-31. |
static DataType |
DataTypes.DECIMAL(int precision,
int scale)
Data type of a decimal number with fixed precision and scale
DECIMAL(p, s) where
p is the number of digits in a number (=precision) and s is the number of
digits to the right of the decimal point in a number (=scale). |
static DataType |
DataTypes.DOUBLE()
Data type of an 8-byte double precision floating point number.
|
static DataType |
DataTypes.FLOAT()
Data type of a 4-byte single precision floating point number.
|
DataType |
DataTypes.Field.getDataType() |
DataType[] |
TableSchema.getFieldDataTypes()
Deprecated.
Returns all field data types as an array.
|
DataType |
TableColumn.getType()
Deprecated.
Returns the data type of this column.
|
DataType |
WatermarkSpec.getWatermarkExprOutputType()
Deprecated.
Returns the data type of the computation result of watermark generation expression.
|
static DataType |
DataTypes.INT()
Data type of a 4-byte signed integer with values from -2,147,483,648 to 2,147,483,647.
|
static DataType |
DataTypes.INTERVAL(DataTypes.Resolution resolution)
Data type of a temporal interval.
|
static DataType |
DataTypes.INTERVAL(DataTypes.Resolution upperResolution,
DataTypes.Resolution lowerResolution)
Data type of a temporal interval.
|
static DataType |
DataTypes.MAP(DataType keyDataType,
DataType valueDataType)
Data type of an associative array that maps keys (including
NULL) to values
(including NULL). |
static DataType |
DataTypes.MULTISET(DataType elementDataType)
Data type of a multiset (=bag).
|
static DataType |
DataTypes.NULL()
Data type for representing untyped
NULL values. |
static DataType |
DataTypes.of(LogicalType logicalType)
Creates a
DataType from a LogicalType with default conversion class. |
static <T> DataType |
DataTypes.RAW(Class<T> clazz,
org.apache.flink.api.common.typeutils.TypeSerializer<T> serializer)
Data type of an arbitrary serialized type.
|
static DataType |
DataTypes.ROW()
Data type of a row type with no fields.
|
static DataType |
DataTypes.ROW(DataType... fieldDataTypes)
Data type of a sequence of fields.
|
static DataType |
DataTypes.ROW(DataTypes.Field... fields)
Data type of a sequence of fields.
|
static DataType |
DataTypes.ROW(List<DataTypes.Field> fields) |
static DataType |
DataTypes.SMALLINT()
Data type of a 2-byte signed integer with values from -32,768 to 32,767.
|
static DataType |
DataTypes.STRING()
Data type of a variable-length character string with defined maximum length.
|
static <T> DataType |
DataTypes.STRUCTURED(Class<T> implementationClass,
DataTypes.Field... fields)
Data type of a user-defined object structured type.
|
static DataType |
DataTypes.TIME()
Data type of a time WITHOUT time zone
TIME with no fractional seconds by default. |
static DataType |
DataTypes.TIME(int precision)
Data type of a time WITHOUT time zone
TIME(p) where p is the number of digits
of fractional seconds (=precision). |
static DataType |
DataTypes.TIMESTAMP_LTZ()
Data type of a timestamp WITH LOCAL time zone.
|
static DataType |
DataTypes.TIMESTAMP_LTZ(int precision)
Data type of a timestamp WITH LOCAL time zone.
|
static DataType |
DataTypes.TIMESTAMP_WITH_LOCAL_TIME_ZONE()
Data type of a timestamp WITH LOCAL time zone
TIMESTAMP WITH LOCAL TIME ZONE with 6
digits of fractional seconds by default. |
static DataType |
DataTypes.TIMESTAMP_WITH_LOCAL_TIME_ZONE(int precision)
Data type of a timestamp WITH LOCAL time zone
TIMESTAMP(p) WITH LOCAL TIME ZONE where
p is the number of digits of fractional seconds (=precision). |
static DataType |
DataTypes.TIMESTAMP_WITH_TIME_ZONE()
Data type of a timestamp WITH time zone
TIMESTAMP WITH TIME ZONE with 6 digits of
fractional seconds by default. |
static DataType |
DataTypes.TIMESTAMP_WITH_TIME_ZONE(int precision)
Data type of a timestamp WITH time zone
TIMESTAMP(p) WITH TIME ZONE where p
is the number of digits of fractional seconds (=precision). |
static DataType |
DataTypes.TIMESTAMP()
Data type of a timestamp WITHOUT time zone
TIMESTAMP with 6 digits of fractional
seconds by default. |
static DataType |
DataTypes.TIMESTAMP(int precision)
Data type of a timestamp WITHOUT time zone
TIMESTAMP(p) where p is the number
of digits of fractional seconds (=precision). |
static DataType |
DataTypes.TINYINT()
Data type of a 1-byte signed integer with values from -128 to 127.
|
DataType |
TableSchema.toPersistedRowDataType()
Deprecated.
Converts all persisted columns of this schema into a (possibly nested) row data type.
|
DataType |
TableSchema.toPhysicalRowDataType()
Deprecated.
Converts all physical columns of this schema into a (possibly nested) row data type.
|
DataType |
TableSchema.toRowDataType()
Deprecated.
Converts all columns of this schema into a (possibly nested) row data type.
|
static DataType |
DataTypes.VARBINARY(int n)
Data type of a variable-length binary string (=a sequence of bytes)
VARBINARY(n)
where n is the maximum number of bytes. |
static DataType |
DataTypes.VARCHAR(int n)
Data type of a variable-length character string
VARCHAR(n) where n is the
maximum number of code points. |
| Modifier and Type | Method and Description |
|---|---|
Optional<DataType> |
TableSchema.getFieldDataType(int fieldIndex)
Deprecated.
Returns the specified data type for the given field index.
|
Optional<DataType> |
TableSchema.getFieldDataType(String fieldName)
Deprecated.
Returns the specified data type for the given field name.
|
| Modifier and Type | Method and Description |
|---|---|
static DataType |
DataTypes.ARRAY(DataType elementDataType)
Data type of an array of elements with same subtype.
|
static TableColumn.ComputedColumn |
TableColumn.computed(String name,
DataType type,
String expression)
Deprecated.
Creates a computed column that is computed from the given SQL expression.
|
TableSchema.Builder |
TableSchema.Builder.field(String name,
DataType dataType)
Add a field with name and data type.
|
static DataTypes.Field |
DataTypes.FIELD(String name,
DataType dataType)
Field definition with field name and data type.
|
TableSchema.Builder |
TableSchema.Builder.field(String name,
DataType dataType,
String expression)
Add a computed field which is generated by the given expression.
|
static DataTypes.Field |
DataTypes.FIELD(String name,
DataType dataType,
String description)
Field definition with field name, data type, and a description.
|
TableSchema.Builder |
TableSchema.Builder.fields(String[] names,
DataType[] dataTypes)
Add an array of fields with names and data types.
|
Schema.Builder |
Schema.Builder.fromRowDataType(DataType dataType)
Adopts all fields of the given row as physical columns of the schema.
|
static DataType |
DataTypes.MAP(DataType keyDataType,
DataType valueDataType)
Data type of an associative array that maps keys (including
NULL) to values
(including NULL). |
static TableColumn.MetadataColumn |
TableColumn.metadata(String name,
DataType type)
Deprecated.
Creates a metadata column from metadata of the given column name.
|
static TableColumn.MetadataColumn |
TableColumn.metadata(String name,
DataType type,
boolean isVirtual)
Deprecated.
Creates a metadata column from metadata of the given column name.
|
static TableColumn.MetadataColumn |
TableColumn.metadata(String name,
DataType type,
String metadataAlias)
Deprecated.
Creates a metadata column from metadata of the given alias.
|
static TableColumn.MetadataColumn |
TableColumn.metadata(String name,
DataType type,
String metadataAlias,
boolean isVirtual)
Deprecated.
Creates a metadata column from metadata of the given column name or from metadata of the
given alias (if not null).
|
static DataType |
DataTypes.MULTISET(DataType elementDataType)
Data type of a multiset (=bag).
|
static TableColumn |
TableColumn.of(String name,
DataType type)
Deprecated.
Use
TableColumn.physical(String, DataType) instead. |
static TableColumn |
TableColumn.of(String name,
DataType type,
String expression)
Deprecated.
Use
TableColumn.computed(String, DataType, String) instead. |
static TableColumn.PhysicalColumn |
TableColumn.physical(String name,
DataType type)
Deprecated.
Creates a regular table column that represents physical data.
|
static DataType |
DataTypes.ROW(DataType... fieldDataTypes)
Data type of a sequence of fields.
|
TableSchema.Builder |
TableSchema.Builder.watermark(String rowtimeAttribute,
String watermarkExpressionString,
DataType watermarkExprOutputType)
Specifies the previously defined field as an event-time attribute and specifies the
watermark strategy.
|
| Constructor and Description |
|---|
WatermarkSpec(String rowtimeAttribute,
String watermarkExpressionString,
DataType watermarkExprOutputType)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
static DataType |
ListView.newListViewDataType(DataType elementDataType)
|
static DataType |
MapView.newMapViewDataType(DataType keyDataType,
DataType valueDataType)
|
| Modifier and Type | Method and Description |
|---|---|
static DataType |
ListView.newListViewDataType(DataType elementDataType)
|
static DataType |
MapView.newMapViewDataType(DataType keyDataType,
DataType valueDataType)
|
| Modifier and Type | Field and Description |
|---|---|
protected DataType |
Column.dataType |
| Modifier and Type | Method and Description |
|---|---|
DataType |
DataTypeFactory.createDataType(AbstractDataType<?> abstractDataType)
Creates a type out of an
AbstractDataType. |
<T> DataType |
DataTypeFactory.createDataType(Class<T> clazz)
Creates a type by analyzing the given class.
|
DataType |
DataTypeFactory.createDataType(String typeString)
Creates a type by a fully or partially defined name.
|
<T> DataType |
DataTypeFactory.createDataType(org.apache.flink.api.common.typeinfo.TypeInformation<T> typeInfo)
Creates a type for the given
TypeInformation. |
DataType |
DataTypeFactory.createDataType(UnresolvedIdentifier identifier)
Creates a type by a fully or partially defined identifier.
|
<T> DataType |
DataTypeFactory.createRawDataType(Class<T> clazz)
Creates a RAW type for the given class in cases where no serializer is known and a generic
serializer should be used.
|
<T> DataType |
DataTypeFactory.createRawDataType(org.apache.flink.api.common.typeinfo.TypeInformation<T> typeInfo)
Creates a RAW type for the given
TypeInformation. |
DataType |
Column.getDataType()
Returns the data type of this column.
|
DataType |
TableChange.ModifyPhysicalColumnType.getNewType()
Get the column type for the new column.
|
DataType |
ResolvedSchema.toPhysicalRowDataType()
Converts all physical columns of this schema into a (possibly nested) row data type.
|
DataType |
ResolvedSchema.toSinkRowDataType()
Converts all persisted columns of this schema into a (possibly nested) row data type.
|
DataType |
ResolvedSchema.toSourceRowDataType()
Converts all columns of this schema into a (possibly nested) row data type.
|
| Modifier and Type | Method and Description |
|---|---|
List<DataType> |
ResolvedSchema.getColumnDataTypes()
Returns all column data types.
|
| Modifier and Type | Method and Description |
|---|---|
abstract Column |
Column.copy(DataType newType)
Returns a copy of the column with a replaced
DataType. |
Column |
Column.PhysicalColumn.copy(DataType newDataType) |
Column |
Column.ComputedColumn.copy(DataType newDataType) |
Column |
Column.MetadataColumn.copy(DataType newDataType) |
static Column.MetadataColumn |
Column.metadata(String name,
DataType dataType,
String metadataKey,
boolean isVirtual)
Creates a metadata column from metadata of the given column name or from metadata of the
given key (if not null).
|
static TableChange.ModifyPhysicalColumnType |
TableChange.modifyPhysicalColumnType(Column oldColumn,
DataType newType)
A table change that modify the physical column data type.
|
static ResolvedSchema |
ResolvedSchema.physical(String[] columnNames,
DataType[] columnDataTypes)
Shortcut for a resolved schema of only physical columns.
|
static Column.PhysicalColumn |
Column.physical(String name,
DataType dataType)
Creates a regular table column that represents physical data.
|
| Modifier and Type | Method and Description |
|---|---|
static ResolvedSchema |
ResolvedSchema.physical(List<String> columnNames,
List<DataType> columnDataTypes)
Shortcut for a resolved schema of only physical columns.
|
| Modifier and Type | Method and Description |
|---|---|
abstract DataType |
Projection.project(DataType dataType)
Projects a (possibly nested) row data type by returning a new data type that only includes
fields of the given index paths.
|
| Modifier and Type | Method and Description |
|---|---|
static Projection |
Projection.all(DataType dataType)
Create a
Projection of all the fields in the provided dataType. |
Projection |
Projection.complement(DataType dataType)
Like
Projection.complement(int), using the dataType fields count. |
static Projection |
Projection.fromFieldNames(DataType dataType,
List<String> projectedFields)
|
abstract DataType |
Projection.project(DataType dataType)
Projects a (possibly nested) row data type by returning a new data type that only includes
fields of the given index paths.
|
| Modifier and Type | Method and Description |
|---|---|
default Map<String,DataType> |
DecodingFormat.listReadableMetadata()
Returns the map of metadata keys and their corresponding data types that can be produced by
this format for reading.
|
default Map<String,DataType> |
EncodingFormat.listWritableMetadata()
Returns the map of metadata keys and their corresponding data types that can be consumed by
this format for writing.
|
| Modifier and Type | Method and Description |
|---|---|
I |
DecodingFormat.createRuntimeDecoder(DynamicTableSource.Context context,
DataType physicalDataType)
Creates runtime decoder implementation that is configured to produce data of the given data
type.
|
default I |
ProjectableDecodingFormat.createRuntimeDecoder(DynamicTableSource.Context context,
DataType projectedPhysicalDataType) |
I |
ProjectableDecodingFormat.createRuntimeDecoder(DynamicTableSource.Context context,
DataType physicalDataType,
int[][] projections)
Creates runtime decoder implementation that is configured to produce data of type
Projection.of(projections).project(physicalDataType). |
I |
EncodingFormat.createRuntimeEncoder(DynamicTableSink.Context context,
DataType physicalDataType)
Creates runtime encoder implementation that is configured to consume data of the given data
type.
|
TableStats |
FileBasedStatisticsReportableInputFormat.reportStatistics(List<org.apache.flink.core.fs.Path> files,
DataType producedDataType)
Returns the estimated statistics of this input format.
|
| Modifier and Type | Method and Description |
|---|---|
DynamicTableSink.DataStructureConverter |
DynamicTableSink.Context.createDataStructureConverter(DataType consumedDataType)
Creates a converter for mapping between Flink's internal data structures and objects
specified by the given
DataType that can be passed into a runtime implementation. |
<T> org.apache.flink.api.common.typeinfo.TypeInformation<T> |
DynamicTableSink.Context.createTypeInformation(DataType consumedDataType)
Creates type information describing the internal data structures of the given
DataType. |
| Modifier and Type | Method and Description |
|---|---|
Map<String,DataType> |
SupportsWritingMetadata.listWritableMetadata()
Returns the map of metadata keys and their corresponding data types that can be consumed by
this table sink for writing.
|
| Modifier and Type | Method and Description |
|---|---|
void |
SupportsWritingMetadata.applyWritableMetadata(List<String> metadataKeys,
DataType consumedDataType)
Provides a list of metadata keys that the consumed
RowData will contain as appended
metadata columns which must be persisted. |
| Modifier and Type | Method and Description |
|---|---|
DynamicTableSource.DataStructureConverter |
DynamicTableSource.Context.createDataStructureConverter(DataType producedDataType)
Creates a converter for mapping between objects specified by the given
DataType
and Flink's internal data structures that can be passed into a runtime implementation. |
<T> org.apache.flink.api.common.typeinfo.TypeInformation<T> |
DynamicTableSource.Context.createTypeInformation(DataType producedDataType)
Creates type information describing the internal data structures of the given
DataType. |
| Modifier and Type | Method and Description |
|---|---|
Map<String,DataType> |
SupportsReadingMetadata.listReadableMetadata()
Returns the map of metadata keys and their corresponding data types that can be produced by
this table source for reading.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
SupportsAggregatePushDown.applyAggregates(List<int[]> groupingSets,
List<AggregateExpression> aggregateExpressions,
DataType producedDataType)
Provides a list of aggregate expressions and the grouping keys.
|
default void |
SupportsProjectionPushDown.applyProjection(int[][] projectedFields,
DataType producedDataType)
Provides the field index paths that should be used for a projection.
|
void |
SupportsReadingMetadata.applyReadableMetadata(List<String> metadataKeys,
DataType producedDataType)
Provides a list of metadata keys that the produced
RowData must contain as appended
metadata columns. |
| Modifier and Type | Method and Description |
|---|---|
DataType |
DescriptorProperties.getDataType(String key)
Deprecated.
Returns the DataType under the given existing key.
|
| Modifier and Type | Method and Description |
|---|---|
Optional<DataType> |
DescriptorProperties.getOptionalDataType(String key)
Deprecated.
Returns the DataType under the given key if it exists.
|
| Modifier and Type | Method and Description |
|---|---|
Schema |
Schema.field(String fieldName,
DataType fieldType)
Deprecated.
Adds a field with the field name and the data type.
|
| Modifier and Type | Method and Description |
|---|---|
DataType |
AggregateExpression.getOutputDataType() |
DataType |
CallExpression.getOutputDataType() |
DataType |
TypeLiteralExpression.getOutputDataType() |
DataType |
ResolvedExpression.getOutputDataType()
Returns the data type of the computation result.
|
DataType |
FieldReferenceExpression.getOutputDataType() |
DataType |
NestedFieldReferenceExpression.getOutputDataType() |
DataType |
ValueLiteralExpression.getOutputDataType() |
| Modifier and Type | Method and Description |
|---|---|
static CallExpression |
CallExpression.anonymous(FunctionDefinition functionDefinition,
List<ResolvedExpression> args,
DataType dataType)
Creates a
CallExpression to an anonymous function that has been declared inline
without a FunctionIdentifier. |
static CallExpression |
CallExpression.permanent(BuiltInFunctionDefinition builtInFunctionDefinition,
List<ResolvedExpression> args,
DataType dataType)
Creates a
CallExpression to a resolved built-in function. |
static CallExpression |
CallExpression.permanent(FunctionIdentifier functionIdentifier,
FunctionDefinition functionDefinition,
List<ResolvedExpression> args,
DataType dataType)
|
CallExpression |
CallExpression.replaceArgs(List<ResolvedExpression> args,
DataType dataType) |
static CallExpression |
CallExpression.temporary(FunctionIdentifier functionIdentifier,
FunctionDefinition functionDefinition,
List<ResolvedExpression> args,
DataType dataType)
Creates a
CallExpression to a temporary function (potentially shadowing a Catalog function or providing a system function). |
| Constructor and Description |
|---|
AggregateExpression(FunctionDefinition functionDefinition,
List<FieldReferenceExpression> args,
CallExpression filterExpression,
DataType resultType,
boolean distinct,
boolean approximate,
boolean ignoreNulls) |
CallExpression(boolean isTemporary,
FunctionIdentifier functionIdentifier,
FunctionDefinition functionDefinition,
List<ResolvedExpression> args,
DataType dataType) |
CallExpression(FunctionDefinition functionDefinition,
List<ResolvedExpression> args,
DataType dataType)
Deprecated.
|
CallExpression(FunctionIdentifier functionIdentifier,
FunctionDefinition functionDefinition,
List<ResolvedExpression> args,
DataType dataType)
|
FieldReferenceExpression(String name,
DataType dataType,
int inputIndex,
int fieldIndex) |
NestedFieldReferenceExpression(String[] fieldNames,
int[] fieldIndices,
DataType dataType) |
TypeLiteralExpression(DataType dataType) |
ValueLiteralExpression(Object value,
DataType dataType) |
| Modifier and Type | Method and Description |
|---|---|
default DataType |
DynamicTableFactory.Context.getPhysicalRowDataType()
Returns the physical schema to use for encoding and decoding records.
|
| Modifier and Type | Method and Description |
|---|---|
SpecializedFunction.ExpressionEvaluator |
SpecializedFunction.ExpressionEvaluatorFactory.createEvaluator(BuiltInFunctionDefinition function,
DataType outputDataType,
DataType... args)
Creates a serializable factory that can be passed into a
UserDefinedFunction for
evaluating a BuiltInFunctionDefinition during runtime. |
SpecializedFunction.ExpressionEvaluator |
SpecializedFunction.ExpressionEvaluatorFactory.createEvaluator(BuiltInFunctionDefinition function,
DataType outputDataType,
DataType... args)
Creates a serializable factory that can be passed into a
UserDefinedFunction for
evaluating a BuiltInFunctionDefinition during runtime. |
SpecializedFunction.ExpressionEvaluator |
SpecializedFunction.ExpressionEvaluatorFactory.createEvaluator(Expression expression,
DataType outputDataType,
DataTypes.Field... args)
Creates a serializable factory that can be passed into a
UserDefinedFunction for
evaluating an Expression during runtime. |
SpecializedFunction.ExpressionEvaluator |
SpecializedFunction.ExpressionEvaluatorFactory.createEvaluator(String sqlExpression,
DataType outputDataType,
DataTypes.Field... args)
Shorthand for
createEvaluator(callSql("..."), ...). |
BuiltInFunctionDefinition.Builder |
BuiltInFunctionDefinition.Builder.typedArguments(DataType... argumentTypes) |
| Constructor and Description |
|---|
PythonAggregateFunction(String name,
byte[] serializedAggregateFunction,
DataType[] inputTypes,
DataType resultType,
DataType accumulatorType,
PythonFunctionKind pythonFunctionKind,
boolean deterministic,
boolean takesRowAsInput,
PythonEnv pythonEnv) |
PythonAggregateFunction(String name,
byte[] serializedAggregateFunction,
DataType[] inputTypes,
DataType resultType,
DataType accumulatorType,
PythonFunctionKind pythonFunctionKind,
boolean deterministic,
boolean takesRowAsInput,
PythonEnv pythonEnv) |
PythonScalarFunction(String name,
byte[] serializedScalarFunction,
DataType[] inputTypes,
DataType resultType,
PythonFunctionKind pythonFunctionKind,
boolean deterministic,
boolean takesRowAsInput,
PythonEnv pythonEnv) |
PythonScalarFunction(String name,
byte[] serializedScalarFunction,
DataType[] inputTypes,
DataType resultType,
PythonFunctionKind pythonFunctionKind,
boolean deterministic,
boolean takesRowAsInput,
PythonEnv pythonEnv) |
PythonTableAggregateFunction(String name,
byte[] serializedTableAggregateFunction,
DataType[] inputTypes,
DataType resultType,
DataType accumulatorType,
PythonFunctionKind pythonFunctionKind,
boolean deterministic,
boolean takesRowAsInput,
PythonEnv pythonEnv) |
PythonTableAggregateFunction(String name,
byte[] serializedTableAggregateFunction,
DataType[] inputTypes,
DataType resultType,
DataType accumulatorType,
PythonFunctionKind pythonFunctionKind,
boolean deterministic,
boolean takesRowAsInput,
PythonEnv pythonEnv) |
PythonTableFunction(String name,
byte[] serializedScalarFunction,
DataType[] inputTypes,
DataType resultType,
PythonFunctionKind pythonFunctionKind,
boolean deterministic,
boolean takesRowAsInput,
PythonEnv pythonEnv) |
PythonTableFunction(String name,
byte[] serializedScalarFunction,
DataType[] inputTypes,
DataType resultType,
PythonFunctionKind pythonFunctionKind,
boolean deterministic,
boolean takesRowAsInput,
PythonEnv pythonEnv) |
| Modifier and Type | Method and Description |
|---|---|
default DataType |
TableSink.getConsumedDataType()
Deprecated.
Returns the data type consumed by this
TableSink. |
| Modifier and Type | Method and Description |
|---|---|
default DataType |
TableSource.getProducedDataType()
Deprecated.
Returns the
DataType for the produced data of the TableSource. |
| Modifier and Type | Method and Description |
|---|---|
static ResolvedFieldReference[] |
TimestampExtractorUtils.getAccessedFields(TimestampExtractor timestampExtractor,
DataType physicalInputType,
Function<String,String> nameRemapping)
Retrieves all field accesses needed for the given
TimestampExtractor. |
| Modifier and Type | Class and Description |
|---|---|
class |
AtomicDataType
A data type that does not contain further data types (e.g.
|
class |
CollectionDataType
A data type that contains an element type (e.g.
|
class |
FieldsDataType
A data type that contains field data types (i.e. row and structured type).
|
class |
KeyValueDataType
A data type that contains a key and value data type (e.g.
|
| Modifier and Type | Method and Description |
|---|---|
DataType |
AtomicDataType.bridgedTo(Class<?> newConversionClass) |
DataType |
CollectionDataType.bridgedTo(Class<?> newConversionClass) |
DataType |
KeyValueDataType.bridgedTo(Class<?> newConversionClass) |
DataType |
FieldsDataType.bridgedTo(Class<?> newConversionClass) |
DataType |
DataTypeQueryable.getDataType() |
DataType |
CollectionDataType.getElementDataType() |
DataType |
KeyValueDataType.getKeyDataType() |
DataType |
KeyValueDataType.getValueDataType() |
DataType |
AtomicDataType.notNull() |
DataType |
CollectionDataType.notNull() |
DataType |
KeyValueDataType.notNull() |
DataType |
FieldsDataType.notNull() |
DataType |
AtomicDataType.nullable() |
DataType |
CollectionDataType.nullable() |
DataType |
KeyValueDataType.nullable() |
DataType |
FieldsDataType.nullable() |
DataType |
UnresolvedDataType.toDataType(DataTypeFactory factory)
Converts this instance to a resolved
DataType possibly enriched with additional
nullability and conversion class information. |
DataType |
DataType.toInternal()
Creates a copy of this
DataType instance with the internal data type conversion
classes. |
| Modifier and Type | Method and Description |
|---|---|
List<DataType> |
AtomicDataType.getChildren() |
List<DataType> |
CollectionDataType.getChildren() |
List<DataType> |
KeyValueDataType.getChildren() |
abstract List<DataType> |
DataType.getChildren()
Returns the children of this data type, if any.
|
List<DataType> |
FieldsDataType.getChildren() |
static List<DataType> |
DataType.getFieldDataTypes(DataType dataType)
Returns the first-level field data types for the provided
DataType. |
| Modifier and Type | Method and Description |
|---|---|
static int |
DataType.getFieldCount(DataType dataType)
Returns the count of the first-level fields for the provided
DataType. |
static List<DataType> |
DataType.getFieldDataTypes(DataType dataType)
Returns the first-level field data types for the provided
DataType. |
static List<String> |
DataType.getFieldNames(DataType dataType)
Returns the first-level field names for the provided
DataType. |
static List<DataTypes.Field> |
DataType.getFields(DataType dataType)
Returns an ordered list of fields starting from the provided
DataType. |
| Constructor and Description |
|---|
CollectionDataType(LogicalType logicalType,
Class<?> conversionClass,
DataType elementDataType) |
CollectionDataType(LogicalType logicalType,
DataType elementDataType) |
KeyValueDataType(LogicalType logicalType,
Class<?> conversionClass,
DataType keyDataType,
DataType valueDataType) |
KeyValueDataType(LogicalType logicalType,
DataType keyDataType,
DataType valueDataType) |
| Constructor and Description |
|---|
FieldsDataType(LogicalType logicalType,
Class<?> conversionClass,
List<DataType> fieldDataTypes) |
FieldsDataType(LogicalType logicalType,
List<DataType> fieldDataTypes) |
UnresolvedDataType(Supplier<String> description,
Function<DataTypeFactory,DataType> resolutionFactory) |
| Modifier and Type | Method and Description |
|---|---|
static DataType |
DataTypeExtractor.extractFromGeneric(DataTypeFactory typeFactory,
Class<?> baseClass,
int genericPos,
Type contextType)
Extracts a data type from a type variable at
genericPos of baseClass using
the information of the most specific type contextType. |
static DataType |
DataTypeExtractor.extractFromGenericMethodParameter(DataTypeFactory typeFactory,
Class<?> baseClass,
Method method,
int paramPos,
int genericPos)
Extracts a data type from a method parameter by considering surrounding classes and parameter
annotation.
|
static DataType |
DataTypeExtractor.extractFromMethodOutput(DataTypeFactory typeFactory,
Class<?> baseClass,
Method method)
Extracts a data type from a method return type by considering surrounding classes and method
annotation.
|
static DataType |
DataTypeExtractor.extractFromMethodOutput(DataTypeFactory typeFactory,
Class<?> baseClass,
Method method,
Type methodReturnType)
Extracts a data type from a method return type with specifying the method's type explicitly
by considering surrounding classes and method annotation.
|
static DataType |
DataTypeExtractor.extractFromMethodParameter(DataTypeFactory typeFactory,
Class<?> baseClass,
Method method,
int paramPos)
Extracts a data type from a method parameter by considering surrounding classes and parameter
annotation.
|
static DataType |
DataTypeExtractor.extractFromType(DataTypeFactory typeFactory,
org.apache.flink.table.types.extraction.DataTypeTemplate template,
Type type)
Extracts a data type from a type without considering surrounding classes but templates.
|
static DataType |
DataTypeExtractor.extractFromType(DataTypeFactory typeFactory,
Type type)
Extracts a data type from a type without considering surrounding classes or templates.
|
| Modifier and Type | Method and Description |
|---|---|
DataType |
TypeInferenceUtil.Result.getOutputDataType() |
static DataType |
TypeInferenceUtil.inferOutputType(CallContext callContext,
TypeStrategy outputTypeStrategy)
Infers an output type using the given
TypeStrategy. |
DataType |
TypeTransformation.transform(DataType typeToTransform)
Transforms the given data type to a different data type.
|
default DataType |
TypeTransformation.transform(DataTypeFactory factory,
DataType typeToTransform)
Transforms the given data type to a different data type.
|
| Modifier and Type | Method and Description |
|---|---|
Optional<DataType> |
TypeInferenceUtil.Result.getAccumulatorDataType() |
List<DataType> |
CallContext.getArgumentDataTypes()
Returns a resolved list of the call's argument types.
|
List<DataType> |
TypeInferenceUtil.Result.getExpectedArgumentTypes() |
Optional<DataType> |
CallContext.getOutputDataType()
Returns the inferred output data type of the function call.
|
Optional<List<DataType>> |
TypeInference.getTypedArguments() |
Optional<DataType> |
ArgumentTypeStrategy.inferArgumentType(CallContext callContext,
int argumentPos,
boolean throwOnFailure)
Main logic for inferring and validating an argument.
|
Optional<List<DataType>> |
InputTypeStrategy.inferInputTypes(CallContext callContext,
boolean throwOnFailure)
Main logic for inferring and validating the input arguments.
|
Optional<DataType> |
TypeInferenceUtil.SurroundingInfo.inferOutputType(DataTypeFactory typeFactory) |
Optional<DataType> |
TypeStrategy.inferType(CallContext callContext)
Infers a type from the given function call.
|
| Modifier and Type | Method and Description |
|---|---|
static CallContext |
TypeInferenceUtil.adaptArguments(TypeInference typeInference,
CallContext callContext,
DataType outputType)
Adapts the call's argument if necessary.
|
static ExplicitArgumentTypeStrategy |
InputTypeStrategies.explicit(DataType expectedDataType)
Strategy for an argument that corresponds to an explicitly defined type casting.
|
static TypeStrategy |
TypeStrategies.explicit(DataType dataType)
Type strategy that returns a fixed
DataType. |
static InputTypeStrategy |
InputTypeStrategies.explicitSequence(DataType... expectedDataTypes)
Strategy for a function signature of explicitly defined types like
f(STRING, INT). |
static InputTypeStrategy |
InputTypeStrategies.explicitSequence(String[] argumentNames,
DataType[] expectedDataTypes)
Strategy for a named function signature of explicitly defined types like
f(s STRING, i
INT). |
static TypeInferenceUtil.SurroundingInfo |
TypeInferenceUtil.SurroundingInfo.of(DataType dataType) |
DataType |
TypeTransformation.transform(DataType typeToTransform)
Transforms the given data type to a different data type.
|
default DataType |
TypeTransformation.transform(DataTypeFactory factory,
DataType typeToTransform)
Transforms the given data type to a different data type.
|
TypeInference.Builder |
TypeInference.Builder.typedArguments(DataType... argumentTypes) |
| Modifier and Type | Method and Description |
|---|---|
static TypeStrategy |
TypeStrategies.argument(int pos,
Function<DataType,Optional<DataType>> mapper)
Type strategy that returns the n-th input argument, mapping it.
|
static TypeStrategy |
TypeStrategies.argument(int pos,
Function<DataType,Optional<DataType>> mapper)
Type strategy that returns the n-th input argument, mapping it.
|
static ConstraintArgumentTypeStrategy |
InputTypeStrategies.constraint(String constraintMessage,
Predicate<List<DataType>> evaluator)
Strategy for an argument that must fulfill a given constraint.
|
TypeInference.Builder |
TypeInference.Builder.typedArguments(List<DataType> argumentTypes)
Sets the list of argument types for specifying a fixed, not overloaded, not vararg input
signature explicitly.
|
| Constructor and Description |
|---|
Result(List<DataType> expectedArgumentTypes,
DataType accumulatorDataType,
DataType outputDataType) |
| Constructor and Description |
|---|
Result(List<DataType> expectedArgumentTypes,
DataType accumulatorDataType,
DataType outputDataType) |
| Modifier and Type | Method and Description |
|---|---|
Optional<DataType> |
AnyArgumentTypeStrategy.inferArgumentType(CallContext callContext,
int argumentPos,
boolean throwOnFailure) |
Optional<DataType> |
OutputArgumentTypeStrategy.inferArgumentType(CallContext callContext,
int argumentPos,
boolean throwOnFailure) |
Optional<DataType> |
ArrayComparableElementArgumentTypeStrategy.inferArgumentType(CallContext callContext,
int argumentPos,
boolean throwOnFailure) |
Optional<DataType> |
ItemAtIndexArgumentTypeStrategy.inferArgumentType(CallContext callContext,
int argumentPos,
boolean throwOnFailure) |
Optional<DataType> |
CompositeArgumentTypeStrategy.inferArgumentType(CallContext callContext,
int argumentPos,
boolean throwOnFailure) |
Optional<DataType> |
AndArgumentTypeStrategy.inferArgumentType(CallContext callContext,
int argumentPos,
boolean throwOnFailure) |
Optional<DataType> |
JsonQueryOnErrorEmptyArgumentTypeStrategy.inferArgumentType(CallContext callContext,
int argumentPos,
boolean throwOnFailure) |
Optional<DataType> |
ConstraintArgumentTypeStrategy.inferArgumentType(CallContext callContext,
int argumentPos,
boolean throwOnFailure) |
Optional<DataType> |
ExplicitArgumentTypeStrategy.inferArgumentType(CallContext callContext,
int argumentPos,
boolean throwOnFailure) |
Optional<DataType> |
LiteralArgumentTypeStrategy.inferArgumentType(CallContext callContext,
int argumentPos,
boolean throwOnFailure) |
Optional<DataType> |
RootArgumentTypeStrategy.inferArgumentType(CallContext callContext,
int argumentPos,
boolean throwOnFailure) |
Optional<DataType> |
FamilyArgumentTypeStrategy.inferArgumentType(CallContext callContext,
int argumentPos,
boolean throwOnFailure) |
Optional<DataType> |
CommonArgumentTypeStrategy.inferArgumentType(CallContext callContext,
int argumentPos,
boolean throwOnFailure) |
Optional<DataType> |
OrArgumentTypeStrategy.inferArgumentType(CallContext callContext,
int argumentPos,
boolean throwOnFailure) |
Optional<DataType> |
TypeLiteralArgumentTypeStrategy.inferArgumentType(CallContext callContext,
int argumentPos,
boolean throwOnFailure) |
Optional<DataType> |
SymbolArgumentTypeStrategy.inferArgumentType(CallContext callContext,
int argumentPos,
boolean throwOnFailure) |
Optional<DataType> |
ArrayOfStringArgumentTypeStrategy.inferArgumentType(CallContext callContext,
int argumentPos,
boolean throwOnFailure) |
Optional<List<DataType>> |
ComparableTypeStrategy.inferInputTypes(CallContext callContext,
boolean throwOnFailure) |
Optional<List<DataType>> |
CommonInputTypeStrategy.inferInputTypes(CallContext callContext,
boolean throwOnFailure) |
Optional<List<DataType>> |
SequenceInputTypeStrategy.inferInputTypes(CallContext callContext,
boolean throwOnFailure) |
Optional<List<DataType>> |
OverTypeStrategy.inferInputTypes(CallContext callContext,
boolean throwOnFailure) |
Optional<List<DataType>> |
RepeatingSequenceInputTypeStrategy.inferInputTypes(CallContext callContext,
boolean throwOnFailure) |
Optional<List<DataType>> |
VaryingSequenceInputTypeStrategy.inferInputTypes(CallContext callContext,
boolean throwOnFailure) |
Optional<List<DataType>> |
SubsequenceInputTypeStrategy.inferInputTypes(CallContext callContext,
boolean throwOnFailure) |
Optional<List<DataType>> |
WindowTimeIndictorInputTypeStrategy.inferInputTypes(CallContext callContext,
boolean throwOnFailure) |
Optional<List<DataType>> |
ReinterpretCastInputTypeStrategy.inferInputTypes(CallContext callContext,
boolean throwOnFailure) |
Optional<List<DataType>> |
SubQueryInputTypeStrategy.inferInputTypes(CallContext callContext,
boolean throwOnFailure) |
Optional<List<DataType>> |
CommonCollectionInputTypeStrategy.inferInputTypes(CallContext callContext,
boolean throwOnFailure) |
Optional<List<DataType>> |
OrInputTypeStrategy.inferInputTypes(CallContext callContext,
boolean throwOnFailure) |
Optional<List<DataType>> |
WildcardInputTypeStrategy.inferInputTypes(CallContext callContext,
boolean throwOnFailure) |
Optional<DataType> |
NullableIfArgsTypeStrategy.inferType(CallContext callContext) |
Optional<DataType> |
CommonTypeStrategy.inferType(CallContext callContext) |
Optional<DataType> |
ForceNullableTypeStrategy.inferType(CallContext callContext) |
Optional<DataType> |
ToTimestampLtzTypeStrategy.inferType(CallContext callContext) |
Optional<DataType> |
MissingTypeStrategy.inferType(CallContext callContext) |
Optional<DataType> |
FirstTypeStrategy.inferType(CallContext callContext) |
Optional<DataType> |
RowtimeTypeStrategy.inferType(CallContext callContext) |
Optional<DataType> |
ArgumentMappingTypeStrategy.inferType(CallContext callContext) |
Optional<DataType> |
MatchFamilyTypeStrategy.inferType(CallContext callContext) |
Optional<DataType> |
ItemAtTypeStrategy.inferType(CallContext callContext) |
Optional<DataType> |
VaryingStringTypeStrategy.inferType(CallContext callContext) |
Optional<DataType> |
MappingTypeStrategy.inferType(CallContext callContext) |
Optional<DataType> |
CollectTypeStrategy.inferType(CallContext callContext) |
Optional<DataType> |
ExplicitTypeStrategy.inferType(CallContext callContext) |
Optional<DataType> |
HiveAggDecimalPlusTypeStrategy.inferType(CallContext callContext) |
Optional<DataType> |
ArrayElementTypeStrategy.inferType(CallContext callContext) |
Optional<DataType> |
ArrayAppendPrependTypeStrategy.inferType(CallContext callContext) |
| Constructor and Description |
|---|
ExplicitArgumentTypeStrategy(DataType expectedDataType) |
ExplicitTypeStrategy(DataType explicitDataType) |
| Constructor and Description |
|---|
ArgumentMappingTypeStrategy(int pos,
Function<DataType,Optional<DataType>> mapper) |
ArgumentMappingTypeStrategy(int pos,
Function<DataType,Optional<DataType>> mapper) |
ConstraintArgumentTypeStrategy(String constraintMessage,
Predicate<List<DataType>> evaluator) |
| Modifier and Type | Method and Description |
|---|---|
DataType |
LegacyRawTypeTransformation.transform(DataType typeToTransform) |
DataType |
DataTypeConversionClassTransformation.transform(DataType dataType) |
DataType |
LegacyToNonLegacyTransformation.transform(DataType typeToTransform) |
DataType |
LegacyToNonLegacyTransformation.transform(DataTypeFactory factory,
DataType dataType) |
| Modifier and Type | Method and Description |
|---|---|
DataType |
LegacyRawTypeTransformation.transform(DataType typeToTransform) |
DataType |
DataTypeConversionClassTransformation.transform(DataType dataType) |
DataType |
LegacyToNonLegacyTransformation.transform(DataType typeToTransform) |
DataType |
LegacyToNonLegacyTransformation.transform(DataTypeFactory factory,
DataType dataType) |
| Modifier and Type | Method and Description |
|---|---|
List<DataType> |
AdaptedCallContext.getArgumentDataTypes() |
List<DataType> |
UnknownCallContext.getArgumentDataTypes() |
Optional<DataType> |
AdaptedCallContext.getOutputDataType() |
Optional<DataType> |
UnknownCallContext.getOutputDataType() |
| Modifier and Type | Method and Description |
|---|---|
void |
AdaptedCallContext.setExpectedArguments(List<DataType> expectedArguments) |
| Constructor and Description |
|---|
AdaptedCallContext(CallContext originalContext,
DataType outputDataType) |
| Modifier and Type | Method and Description |
|---|---|
static DataType |
DataTypeUtils.appendRowFields(DataType dataType,
List<DataTypes.Field> fields)
Appends the given list of fields to an existing row data type.
|
static DataType |
DataTypeUtils.createProctimeDataType()
Returns a PROCTIME data type.
|
static DataType |
TypeConversions.fromLegacyInfoToDataType(org.apache.flink.api.common.typeinfo.TypeInformation<?> typeInfo)
Deprecated.
Please don't use this method anymore. It will be removed soon and we should not
make the removal more painful. Sources and sinks should use the method available in
context to convert, within the planner you should use either
InternalTypeInfo or
ExternalTypeInfo depending on the use case. |
static DataType[] |
TypeConversions.fromLegacyInfoToDataType(org.apache.flink.api.common.typeinfo.TypeInformation<?>[] typeInfo)
Deprecated.
Please don't use this method anymore. It will be removed soon and we should not
make the removal more painful. Sources and sinks should use the method available in
context to convert, within the planner you should use either
InternalTypeInfo or
ExternalTypeInfo depending on the use case. |
static DataType |
TypeConversions.fromLogicalToDataType(LogicalType logicalType) |
static DataType[] |
TypeConversions.fromLogicalToDataType(LogicalType[] logicalTypes) |
static DataType |
DataTypeUtils.projectRow(DataType dataType,
int[] indexPaths)
Deprecated.
Use the
Projection type |
static DataType |
DataTypeUtils.projectRow(DataType dataType,
int[][] indexPaths)
Deprecated.
Use the
Projection type |
static DataType |
DataTypeUtils.removeTimeAttribute(DataType dataType)
Removes time attributes from the
DataType. |
static DataType |
DataTypeUtils.replaceLogicalType(DataType dataType,
LogicalType replacement)
Replaces the
LogicalType of a DataType, i.e., it keeps the bridging class. |
static DataType |
DataTypeUtils.stripRowPrefix(DataType dataType,
String prefix)
Removes a string prefix from the fields of the given row data type.
|
static DataType |
TypeInfoDataTypeConverter.toDataType(DataTypeFactory dataTypeFactory,
org.apache.flink.api.common.typeinfo.TypeInformation<?> typeInfo)
Converts the given
TypeInformation into DataType. |
static DataType |
TypeInfoDataTypeConverter.toDataType(DataTypeFactory dataTypeFactory,
org.apache.flink.api.common.typeinfo.TypeInformation<?> typeInfo,
boolean forceNullability)
Converts the given
TypeInformation into DataType but allows to make all
fields nullable independent of the nullability in the serialization stack. |
static DataType |
LogicalTypeDataTypeConverter.toDataType(LogicalType logicalType)
Returns the data type of a logical type without explicit conversions.
|
static DataType |
LegacyTypeInfoDataTypeConverter.toDataType(org.apache.flink.api.common.typeinfo.TypeInformation<?> typeInfo)
Deprecated.
|
static DataType |
DataTypeUtils.toInternalDataType(DataType dataType)
|
static DataType |
DataTypeUtils.toInternalDataType(LogicalType logicalType)
Creates a
DataType from the given LogicalType with internal data structures. |
static DataType |
DataTypeUtils.transform(DataTypeFactory factory,
DataType typeToTransform,
TypeTransformation... transformations)
Transforms the given data type to a different data type using the given transformations.
|
static DataType |
DataTypeUtils.transform(DataType typeToTransform,
TypeTransformation... transformations)
Transforms the given data type to a different data type using the given transformations.
|
| Modifier and Type | Method and Description |
|---|---|
static Optional<DataType> |
ClassDataTypeConverter.extractDataType(Class<?> clazz)
Returns the clearly identifiable data type if possible.
|
static Optional<DataType> |
ValueDataTypeConverter.extractDataType(Object value)
Returns the clearly identifiable data type if possible.
|
static List<DataType> |
DataTypeUtils.flattenToDataTypes(DataType dataType)
Returns the data types of the flat representation in the first level of the given data type.
|
static Optional<DataType> |
TypeConversions.fromClassToDataType(Class<?> clazz) |
static Optional<DataType> |
DataTypeUtils.getField(DataType compositeType,
int index)
Retrieves a nested field from a composite type at given position.
|
static Optional<DataType> |
DataTypeUtils.getField(DataType compositeType,
String name)
Retrieves a nested field from a composite type with given name.
|
| Modifier and Type | Method and Description |
|---|---|
static DataType |
DataTypeUtils.appendRowFields(DataType dataType,
List<DataTypes.Field> fields)
Appends the given list of fields to an existing row data type.
|
protected abstract R |
DataTypeDefaultVisitor.defaultMethod(DataType dataType) |
static ResolvedSchema |
DataTypeUtils.expandCompositeTypeToSchema(DataType dataType)
Expands a composite
DataType to a corresponding ResolvedSchema. |
static List<DataType> |
DataTypeUtils.flattenToDataTypes(DataType dataType)
Returns the data types of the flat representation in the first level of the given data type.
|
static List<String> |
DataTypeUtils.flattenToNames(DataType dataType)
Returns the names of the flat representation of the given data type.
|
static List<String> |
DataTypeUtils.flattenToNames(DataType dataType,
List<String> existingNames) |
static LogicalType |
TypeConversions.fromDataToLogicalType(DataType dataType) |
static LogicalType[] |
TypeConversions.fromDataToLogicalType(DataType[] dataTypes) |
static org.apache.flink.api.common.typeinfo.TypeInformation<?> |
TypeConversions.fromDataTypeToLegacyInfo(DataType dataType)
Deprecated.
Please don't use this method anymore. It will be removed soon and we should not
make the removal more painful. Sources and sinks should use the method available in
context to convert, within the planner you should use either
InternalTypeInfo or
ExternalTypeInfo depending on the use case. |
static org.apache.flink.api.common.typeinfo.TypeInformation<?>[] |
TypeConversions.fromDataTypeToLegacyInfo(DataType[] dataType)
Deprecated.
Please don't use this method anymore. It will be removed soon and we should not
make the removal more painful. Sources and sinks should use the method available in
context to convert, within the planner you should use either
InternalTypeInfo or
ExternalTypeInfo depending on the use case. |
static Optional<DataType> |
DataTypeUtils.getField(DataType compositeType,
int index)
Retrieves a nested field from a composite type at given position.
|
static Optional<DataType> |
DataTypeUtils.getField(DataType compositeType,
String name)
Retrieves a nested field from a composite type with given name.
|
static boolean |
DataTypeUtils.isInternal(DataType dataType)
Checks whether a given data type is an internal data structure.
|
static boolean |
DataTypeUtils.isInternal(DataType dataType,
boolean autobox)
Checks whether a given data type is an internal data structure.
|
static DataType |
DataTypeUtils.projectRow(DataType dataType,
int[] indexPaths)
Deprecated.
Use the
Projection type |
static DataType |
DataTypeUtils.projectRow(DataType dataType,
int[][] indexPaths)
Deprecated.
Use the
Projection type |
static DataType |
DataTypeUtils.removeTimeAttribute(DataType dataType)
Removes time attributes from the
DataType. |
static DataType |
DataTypeUtils.replaceLogicalType(DataType dataType,
LogicalType replacement)
Replaces the
LogicalType of a DataType, i.e., it keeps the bridging class. |
static DataType |
DataTypeUtils.stripRowPrefix(DataType dataType,
String prefix)
Removes a string prefix from the fields of the given row data type.
|
static DataType |
DataTypeUtils.toInternalDataType(DataType dataType)
|
static org.apache.flink.api.common.typeinfo.TypeInformation<?> |
LegacyTypeInfoDataTypeConverter.toLegacyTypeInfo(DataType dataType)
Deprecated.
|
static LogicalType |
LogicalTypeDataTypeConverter.toLogicalType(DataType dataType)
Returns the logical type of a data type.
|
static DataType |
DataTypeUtils.transform(DataTypeFactory factory,
DataType typeToTransform,
TypeTransformation... transformations)
Transforms the given data type to a different data type using the given transformations.
|
static DataType |
DataTypeUtils.transform(DataType typeToTransform,
TypeTransformation... transformations)
Transforms the given data type to a different data type using the given transformations.
|
static void |
DataTypeUtils.validateInputDataType(DataType dataType)
The
DataType class can only partially verify the conversion class. |
static void |
DataTypeUtils.validateOutputDataType(DataType dataType)
The
DataType class can only partially verify the conversion class. |
| Modifier and Type | Method and Description |
|---|---|
DataType |
TimeIntervalTypeInfo.getDataType()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
static int[] |
TypeMappingUtils.computePhysicalIndices(List<TableColumn> logicalColumns,
DataType physicalType,
Function<String,String> nameRemapping)
Computes indices of physical fields corresponding to the selected logical fields of a
TableSchema. |
static Object |
PartitionPathUtils.convertStringToInternalValue(String valStr,
DataType type)
Restore partition value from string and type.
|
static GenericRowData |
PartitionPathUtils.fillPartitionValueForRecord(String[] fieldNames,
DataType[] fieldTypes,
int[] selectFields,
List<String> partitionKeys,
org.apache.flink.core.fs.Path path,
String defaultPartValue)
Extract partition value from path and fill to record.
|
Copyright © 2014–2025 The Apache Software Foundation. All rights reserved.