Uses of Class
org.apache.flink.table.types.DataType
Packages that use DataType
Package
Description
-
Uses of DataType in org.apache.flink.table.api
Methods in org.apache.flink.table.api that return DataTypeModifier and TypeMethodDescriptionstatic DataTypeData type of an array of elements with same subtype.static DataTypeDataTypes.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 DataTypeDataTypes.BINARY(int n) Data type of a fixed-length binary string (=a sequence of bytes)BINARY(n)wherenis the number of bytes.static DataTypeDataTypes.BOOLEAN()Data type of a boolean with a (possibly) three-valued logic ofTRUE, FALSE, UNKNOWN.static DataTypeDataTypes.BYTES()Data type of a variable-length binary string (=a sequence of bytes) with defined maximum length.static DataTypeDataTypes.CHAR(int n) Data type of a fixed-length character stringCHAR(n)wherenis the number of code points.static DataTypeDataTypes.DATE()Data type of a date consisting ofyear-month-daywith values ranging from0000-01-01to9999-12-31.static DataTypeDataTypes.DECIMAL(int precision, int scale) Data type of a decimal number with fixed precision and scaleDECIMAL(p, s)wherepis the number of digits in a number (=precision) andsis the number of digits to the right of the decimal point in a number (=scale).static DataTypeDataTypes.DOUBLE()Data type of an 8-byte double precision floating point number.static DataTypeDataTypes.FLOAT()Data type of a 4-byte single precision floating point number.DataTypes.Field.getDataType()static DataTypeDataTypes.INT()Data type of a 4-byte signed integer with values from -2,147,483,648 to 2,147,483,647.static DataTypeDataTypes.INTERVAL(DataTypes.Resolution resolution) Data type of a temporal interval.static DataTypeDataTypes.INTERVAL(DataTypes.Resolution upperResolution, DataTypes.Resolution lowerResolution) Data type of a temporal interval.static DataTypeData type of an associative array that maps keys (includingNULL) to values (includingNULL).static DataTypeData type of a multiset (=bag).static DataTypeDataTypes.NULL()Data type for representing untypedNULLvalues.static DataTypeDataTypes.of(LogicalType logicalType) Creates aDataTypefrom aLogicalTypewith default conversion class.static <T> DataTypeData type of an arbitrary serialized type.static DataTypeDataTypes.ROW()Data type of a row type with no fields.static DataTypeDataTypes.ROW(List<DataTypes.Field> fields) static DataTypeDataTypes.ROW(DataTypes.Field... fields) Data type of a sequence of fields.static DataTypeData type of a sequence of fields.static DataTypeDataTypes.SMALLINT()Data type of a 2-byte signed integer with values from -32,768 to 32,767.static DataTypeDataTypes.STRING()Data type of a variable-length character string with defined maximum length.static <T> DataTypeDataTypes.STRUCTURED(Class<T> implementationClass, DataTypes.Field... fields) Data type of a user-defined object structured type.static DataTypeDataTypes.TIME()Data type of a time WITHOUT time zoneTIMEwith no fractional seconds by default.static DataTypeDataTypes.TIME(int precision) Data type of a time WITHOUT time zoneTIME(p)wherepis the number of digits of fractional seconds (=precision).static DataTypeDataTypes.TIMESTAMP()Data type of a timestamp WITHOUT time zoneTIMESTAMPwith 6 digits of fractional seconds by default.static DataTypeDataTypes.TIMESTAMP(int precision) Data type of a timestamp WITHOUT time zoneTIMESTAMP(p)wherepis the number of digits of fractional seconds (=precision).static DataTypeDataTypes.TIMESTAMP_LTZ()Data type of a timestamp WITH LOCAL time zone.static DataTypeDataTypes.TIMESTAMP_LTZ(int precision) Data type of a timestamp WITH LOCAL time zone.static DataTypeDataTypes.TIMESTAMP_WITH_LOCAL_TIME_ZONE()Data type of a timestamp WITH LOCAL time zoneTIMESTAMP WITH LOCAL TIME ZONEwith 6 digits of fractional seconds by default.static DataTypeDataTypes.TIMESTAMP_WITH_LOCAL_TIME_ZONE(int precision) Data type of a timestamp WITH LOCAL time zoneTIMESTAMP(p) WITH LOCAL TIME ZONEwherepis the number of digits of fractional seconds (=precision).static DataTypeDataTypes.TIMESTAMP_WITH_TIME_ZONE()Data type of a timestamp WITH time zoneTIMESTAMP WITH TIME ZONEwith 6 digits of fractional seconds by default.static DataTypeDataTypes.TIMESTAMP_WITH_TIME_ZONE(int precision) Data type of a timestamp WITH time zoneTIMESTAMP(p) WITH TIME ZONEwherepis the number of digits of fractional seconds (=precision).static DataTypeDataTypes.TINYINT()Data type of a 1-byte signed integer with values from -128 to 127.static DataTypeDataTypes.VARBINARY(int n) Data type of a variable-length binary string (=a sequence of bytes)VARBINARY(n)wherenis the maximum number of bytes.static DataTypeDataTypes.VARCHAR(int n) Data type of a variable-length character stringVARCHAR(n)wherenis the maximum number of code points.Methods in org.apache.flink.table.api with parameters of type DataTypeModifier and TypeMethodDescriptionstatic DataTypeData type of an array of elements with same subtype.static DataTypes.FieldField definition with field name and data type.static DataTypes.FieldField definition with field name, data type, and a description.Schema.Builder.fromRowDataType(DataType dataType) Adopts all fields of the given row as physical columns of the schema.static DataTypeData type of an associative array that maps keys (includingNULL) to values (includingNULL).static DataTypeData type of a multiset (=bag).static DataTypeData type of a sequence of fields. -
Uses of DataType in org.apache.flink.table.api.dataview
Methods in org.apache.flink.table.api.dataview that return DataTypeModifier and TypeMethodDescriptionstatic DataTypeListView.newListViewDataType(DataType elementDataType) static DataTypeMapView.newMapViewDataType(DataType keyDataType, DataType valueDataType) Methods in org.apache.flink.table.api.dataview with parameters of type DataTypeModifier and TypeMethodDescriptionstatic DataTypeListView.newListViewDataType(DataType elementDataType) static DataTypeMapView.newMapViewDataType(DataType keyDataType, DataType valueDataType) -
Uses of DataType in org.apache.flink.table.catalog
Fields in org.apache.flink.table.catalog declared as DataTypeMethods in org.apache.flink.table.catalog that return DataTypeModifier and TypeMethodDescription<T> DataTypeDataTypeFactory.createDataType(Class<T> clazz) Creates a type by analyzing the given class.DataTypeFactory.createDataType(String typeString) Creates a type by a fully or partially defined name.<T> DataTypeDataTypeFactory.createDataType(org.apache.flink.api.common.typeinfo.TypeInformation<T> typeInfo) Creates a type for the givenTypeInformation.DataTypeFactory.createDataType(UnresolvedIdentifier identifier) Creates a type by a fully or partially defined identifier.DataTypeFactory.createDataType(AbstractDataType<?> abstractDataType) Creates a type out of anAbstractDataType.<T> DataTypeDataTypeFactory.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> DataTypeDataTypeFactory.createRawDataType(org.apache.flink.api.common.typeinfo.TypeInformation<T> typeInfo) Creates a RAW type for the givenTypeInformation.Column.getDataType()Returns the data type of this column.TableChange.ModifyPhysicalColumnType.getNewType()Get the column type for the new column.ResolvedSchema.toPhysicalRowDataType()Converts all physical columns of this schema into a (possibly nested) row data type.ResolvedSchema.toSinkRowDataType()Converts all persisted columns of this schema into a (possibly nested) row data type.ResolvedSchema.toSourceRowDataType()Converts all columns of this schema into a (possibly nested) row data type.Methods in org.apache.flink.table.catalog that return types with arguments of type DataTypeModifier and TypeMethodDescriptionResolvedSchema.getColumnDataTypes()Returns all column data types.Methods in org.apache.flink.table.catalog with parameters of type DataTypeModifier and TypeMethodDescriptionabstract ColumnReturns a copy of the column with a replacedDataType.static Column.MetadataColumnCreates a metadata column from metadata of the given column name or from metadata of the given key (if not null).TableChange.modifyPhysicalColumnType(Column oldColumn, DataType newType) A table change that modify the physical column data type.static Column.PhysicalColumnCreates a regular table column that represents physical data.static ResolvedSchemaShortcut for a resolved schema of only physical columns. -
Uses of DataType in org.apache.flink.table.connector
Methods in org.apache.flink.table.connector that return DataTypeModifier and TypeMethodDescriptionabstract DataTypeProjects a (possibly nested) row data type by returning a new data type that only includes fields of the given index paths.Methods in org.apache.flink.table.connector with parameters of type DataTypeModifier and TypeMethodDescriptionstatic ProjectionCreate aProjectionof all the fields in the provideddataType.Projection.complement(DataType dataType) LikeProjection.complement(int), using thedataTypefields count.static ProjectionProjection.fromFieldNames(DataType dataType, List<String> projectedFields) abstract DataTypeProjects a (possibly nested) row data type by returning a new data type that only includes fields of the given index paths. -
Uses of DataType in org.apache.flink.table.connector.format
Methods in org.apache.flink.table.connector.format that return types with arguments of type DataTypeModifier and TypeMethodDescriptionDecodingFormat.listReadableMetadata()Returns the map of metadata keys and their corresponding data types that can be produced by this format for reading.EncodingFormat.listWritableMetadata()Returns the map of metadata keys and their corresponding data types that can be consumed by this format for writing.Methods in org.apache.flink.table.connector.format with parameters of type DataTypeModifier and TypeMethodDescriptionDecodingFormat.createRuntimeDecoder(DynamicTableSource.Context context, DataType physicalDataType) Creates runtime decoder implementation that is configured to produce data of the given data type.default IProjectableDecodingFormat.createRuntimeDecoder(DynamicTableSource.Context context, DataType projectedPhysicalDataType) ProjectableDecodingFormat.createRuntimeDecoder(DynamicTableSource.Context context, DataType physicalDataType, int[][] projections) Creates runtime decoder implementation that is configured to produce data of typeProjection.of(projections).project(physicalDataType).EncodingFormat.createRuntimeEncoder(DynamicTableSink.Context context, DataType physicalDataType) Creates runtime encoder implementation that is configured to consume data of the given data type.FileBasedStatisticsReportableInputFormat.reportStatistics(List<org.apache.flink.core.fs.Path> files, DataType producedDataType) Returns the estimated statistics of this input format. -
Uses of DataType in org.apache.flink.table.connector.sink
Methods in org.apache.flink.table.connector.sink with parameters of type DataTypeModifier and TypeMethodDescriptionDynamicTableSink.Context.createDataStructureConverter(DataType consumedDataType) Creates a converter for mapping between Flink's internal data structures and objects specified by the givenDataTypethat 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 givenDataType. -
Uses of DataType in org.apache.flink.table.connector.sink.abilities
Methods in org.apache.flink.table.connector.sink.abilities that return types with arguments of type DataTypeModifier and TypeMethodDescriptionSupportsWritingMetadata.listWritableMetadata()Returns the map of metadata keys and their corresponding data types that can be consumed by this table sink for writing.Methods in org.apache.flink.table.connector.sink.abilities with parameters of type DataTypeModifier and TypeMethodDescriptionvoidSupportsWritingMetadata.applyWritableMetadata(List<String> metadataKeys, DataType consumedDataType) Provides a list of metadata keys that the consumedRowDatawill contain as appended metadata columns which must be persisted. -
Uses of DataType in org.apache.flink.table.connector.source
Methods in org.apache.flink.table.connector.source with parameters of type DataTypeModifier and TypeMethodDescriptionDynamicTableSource.Context.createDataStructureConverter(DataType producedDataType) Creates a converter for mapping between objects specified by the givenDataTypeand 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 givenDataType. -
Uses of DataType in org.apache.flink.table.connector.source.abilities
Methods in org.apache.flink.table.connector.source.abilities that return types with arguments of type DataTypeModifier and TypeMethodDescriptionSupportsReadingMetadata.listReadableMetadata()Returns the map of metadata keys and their corresponding data types that can be produced by this table source for reading.Methods in org.apache.flink.table.connector.source.abilities with parameters of type DataTypeModifier and TypeMethodDescriptionbooleanSupportsAggregatePushDown.applyAggregates(List<int[]> groupingSets, List<AggregateExpression> aggregateExpressions, DataType producedDataType) Provides a list of aggregate expressions and the grouping keys.voidSupportsProjectionPushDown.applyProjection(int[][] projectedFields, DataType producedDataType) Provides the field index paths that should be used for a projection.voidSupportsReadingMetadata.applyReadableMetadata(List<String> metadataKeys, DataType producedDataType) Provides a list of metadata keys that the producedRowDatamust contain as appended metadata columns. -
Uses of DataType in org.apache.flink.table.descriptors
Methods in org.apache.flink.table.descriptors that return DataTypeModifier and TypeMethodDescriptionDescriptorProperties.getDataType(String key) Deprecated.Returns the DataType under the given existing key.Methods in org.apache.flink.table.descriptors that return types with arguments of type DataTypeModifier and TypeMethodDescriptionDescriptorProperties.getOptionalDataType(String key) Deprecated.Returns the DataType under the given key if it exists. -
Uses of DataType in org.apache.flink.table.expressions
Methods in org.apache.flink.table.expressions that return DataTypeModifier and TypeMethodDescriptionAggregateExpression.getOutputDataType()CallExpression.getOutputDataType()FieldReferenceExpression.getOutputDataType()NestedFieldReferenceExpression.getOutputDataType()ResolvedExpression.getOutputDataType()Returns the data type of the computation result.TypeLiteralExpression.getOutputDataType()ValueLiteralExpression.getOutputDataType()Methods in org.apache.flink.table.expressions with parameters of type DataTypeModifier and TypeMethodDescriptionstatic CallExpressionCallExpression.anonymous(FunctionDefinition functionDefinition, List<ResolvedExpression> args, DataType dataType) Creates aCallExpressionto an anonymous function that has been declared inline without aFunctionIdentifier.static CallExpressionCallExpression.permanent(BuiltInFunctionDefinition builtInFunctionDefinition, List<ResolvedExpression> args, DataType dataType) Creates aCallExpressionto a resolved built-in function.static CallExpressionCallExpression.permanent(FunctionIdentifier functionIdentifier, FunctionDefinition functionDefinition, List<ResolvedExpression> args, DataType dataType) CallExpression.replaceArgs(List<ResolvedExpression> args, DataType dataType) static CallExpressionCallExpression.temporary(FunctionIdentifier functionIdentifier, FunctionDefinition functionDefinition, List<ResolvedExpression> args, DataType dataType) Creates aCallExpressionto a temporary function (potentially shadowing aCatalogfunction or providing a system function).Constructors in org.apache.flink.table.expressions with parameters of type DataTypeModifierConstructorDescriptionAggregateExpression(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) FieldReferenceExpression(String name, DataType dataType, int inputIndex, int fieldIndex) FieldReferenceExpression(String name, DataType dataType, int inputIndex, int fieldIndex, String inputAlias) NestedFieldReferenceExpression(String[] fieldNames, int[] fieldIndices, DataType dataType) TypeLiteralExpression(DataType dataType) ValueLiteralExpression(Object value, DataType dataType) -
Uses of DataType in org.apache.flink.table.factories
Methods in org.apache.flink.table.factories that return DataTypeModifier and TypeMethodDescriptiondefault DataTypeDynamicTableFactory.Context.getPhysicalRowDataType()Returns the physical schema to use for encoding and decoding records. -
Uses of DataType in org.apache.flink.table.functions
Methods in org.apache.flink.table.functions that return DataTypeMethods in org.apache.flink.table.functions with parameters of type DataTypeModifier and TypeMethodDescriptionSpecializedFunction.ExpressionEvaluatorFactory.createEvaluator(String sqlExpression, DataType outputDataType, DataTypes.Field... args) Shorthand forcreateEvaluator(callSql("..."), ...).SpecializedFunction.ExpressionEvaluatorFactory.createEvaluator(Expression expression, DataType outputDataType, DataTypes.Field... args) Creates a serializable factory that can be passed into aUserDefinedFunctionfor evaluating anExpressionduring runtime.SpecializedFunction.ExpressionEvaluatorFactory.createEvaluator(BuiltInFunctionDefinition function, DataType outputDataType, DataType... args) Creates a serializable factory that can be passed into aUserDefinedFunctionfor evaluating aBuiltInFunctionDefinitionduring runtime.BuiltInFunctionDefinition.Builder.typedArguments(DataType... argumentTypes) Deprecated. -
Uses of DataType in org.apache.flink.table.functions.python
Constructors in org.apache.flink.table.functions.python with parameters of type DataTypeModifierConstructorDescriptionPythonAggregateFunction(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) 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) -
Uses of DataType in org.apache.flink.table.legacy.api
Methods in org.apache.flink.table.legacy.api that return DataTypeModifier and TypeMethodDescriptionDataType[]TableSchema.getFieldDataTypes()Deprecated.Returns all field data types as an array.TableColumn.getType()Deprecated.Returns the data type of this column.WatermarkSpec.getWatermarkExprOutputType()Deprecated.Returns the data type of the computation result of watermark generation expression.TableSchema.toPersistedRowDataType()Deprecated.Converts all persisted columns of this schema into a (possibly nested) row data type.TableSchema.toPhysicalRowDataType()Deprecated.Converts all physical columns of this schema into a (possibly nested) row data type.TableSchema.toRowDataType()Deprecated.Converts all columns of this schema into a (possibly nested) row data type.Methods in org.apache.flink.table.legacy.api that return types with arguments of type DataTypeModifier and TypeMethodDescriptionTableSchema.getFieldDataType(int fieldIndex) Deprecated.Returns the specified data type for the given field index.TableSchema.getFieldDataType(String fieldName) Deprecated.Returns the specified data type for the given field name.Methods in org.apache.flink.table.legacy.api with parameters of type DataTypeModifier and TypeMethodDescriptionstatic TableColumn.ComputedColumnDeprecated.Creates a computed column that is computed from the given SQL expression.Add a field with name and data type.Add a computed field which is generated by the given expression.Add an array of fields with names and data types.static TableColumn.MetadataColumnDeprecated.Creates a metadata column from metadata of the given column name.static TableColumn.MetadataColumnDeprecated.Creates a metadata column from metadata of the given column name.static TableColumn.MetadataColumnDeprecated.Creates a metadata column from metadata of the given alias.static TableColumn.MetadataColumnDeprecated.Creates a metadata column from metadata of the given column name or from metadata of the given alias (if not null).static TableColumnDeprecated.UseTableColumn.physical(String, DataType)instead.static TableColumnDeprecated.UseTableColumn.computed(String, DataType, String)instead.static TableColumn.PhysicalColumnDeprecated.Creates a regular table column that represents physical data.TableSchema.Builder.watermark(String rowtimeAttribute, String watermarkExpressionString, DataType watermarkExprOutputType) Specifies the previously defined field as an event-time attribute and specifies the watermark strategy.Constructors in org.apache.flink.table.legacy.api with parameters of type DataTypeModifierConstructorDescriptionWatermarkSpec(String rowtimeAttribute, String watermarkExpressionString, DataType watermarkExprOutputType) Deprecated. -
Uses of DataType in org.apache.flink.table.legacy.descriptors
Methods in org.apache.flink.table.legacy.descriptors with parameters of type DataType -
Uses of DataType in org.apache.flink.table.legacy.sinks
Methods in org.apache.flink.table.legacy.sinks that return DataTypeModifier and TypeMethodDescriptiondefault DataTypeTableSink.getConsumedDataType()Deprecated.Returns the data type consumed by thisTableSink. -
Uses of DataType in org.apache.flink.table.legacy.sources
Methods in org.apache.flink.table.legacy.sources that return DataTypeModifier and TypeMethodDescriptiondefault DataTypeTableSource.getProducedDataType()Deprecated.Returns theDataTypefor the produced data of theTableSource. -
Uses of DataType in org.apache.flink.table.sources.tsextractors
Methods in org.apache.flink.table.sources.tsextractors with parameters of type DataTypeModifier and TypeMethodDescriptionstatic ResolvedFieldReference[]TimestampExtractorUtils.getAccessedFields(TimestampExtractor timestampExtractor, DataType physicalInputType, Function<String, String> nameRemapping) Retrieves all field accesses needed for the givenTimestampExtractor. -
Uses of DataType in org.apache.flink.table.types
Subclasses of DataType in org.apache.flink.table.typesModifier and TypeClassDescriptionfinal classA data type that does not contain further data types (e.g.final classA data type that contains an element type (e.g.final classA data type that contains field data types (i.e. row and structured type).final classA data type that contains a key and value data type (e.g.Methods in org.apache.flink.table.types that return DataTypeModifier and TypeMethodDescriptionDataTypeQueryable.getDataType()CollectionDataType.getElementDataType()KeyValueDataType.getKeyDataType()KeyValueDataType.getValueDataType()AtomicDataType.notNull()CollectionDataType.notNull()FieldsDataType.notNull()KeyValueDataType.notNull()AtomicDataType.nullable()CollectionDataType.nullable()FieldsDataType.nullable()KeyValueDataType.nullable()UnresolvedDataType.toDataType(DataTypeFactory factory) Converts this instance to a resolvedDataTypepossibly enriched with additional nullability and conversion class information.DataType.toInternal()Creates a copy of thisDataTypeinstance with the internal data type conversion classes.Methods in org.apache.flink.table.types that return types with arguments of type DataTypeModifier and TypeMethodDescriptionAtomicDataType.getChildren()CollectionDataType.getChildren()DataType.getChildren()Returns the children of this data type, if any.FieldsDataType.getChildren()KeyValueDataType.getChildren()DataType.getFieldDataTypes(DataType dataType) Returns the first-level field data types for the providedDataType.Methods in org.apache.flink.table.types with parameters of type DataTypeModifier and TypeMethodDescriptionstatic intDataType.getFieldCount(DataType dataType) Returns the count of the first-level fields for the providedDataType.DataType.getFieldDataTypes(DataType dataType) Returns the first-level field data types for the providedDataType.DataType.getFieldNames(DataType dataType) Returns the first-level field names for the providedDataType.static List<DataTypes.Field>Returns an ordered list of fields starting from the providedDataType.Constructors in org.apache.flink.table.types with parameters of type DataTypeModifierConstructorDescriptionCollectionDataType(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 parameters in org.apache.flink.table.types with type arguments of type DataTypeModifierConstructorDescriptionFieldsDataType(LogicalType logicalType, Class<?> conversionClass, List<DataType> fieldDataTypes) FieldsDataType(LogicalType logicalType, List<DataType> fieldDataTypes) UnresolvedDataType(Supplier<String> description, Function<DataTypeFactory, DataType> resolutionFactory) -
Uses of DataType in org.apache.flink.table.types.extraction
Methods in org.apache.flink.table.types.extraction that return DataTypeModifier and TypeMethodDescriptionstatic DataTypeDataTypeExtractor.extractFromGeneric(DataTypeFactory typeFactory, Class<?> baseClass, int genericPos, Type contextType) Extracts a data type from a type variable atgenericPosofbaseClassusing the information of the most specific typecontextType.static DataTypeDataTypeExtractor.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 DataTypeDataTypeExtractor.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 DataTypeDataTypeExtractor.extractFromMethodReturnType(DataTypeFactory typeFactory, Class<?> baseClass, Method method) Extracts a data type from a method return type by considering surrounding classes and method annotation.static DataTypeDataTypeExtractor.extractFromMethodReturnType(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 DataTypeDataTypeExtractor.extractFromType(DataTypeFactory typeFactory, Type type) Extracts a data type from a type without considering surrounding classes or templates.static DataTypeDataTypeExtractor.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. -
Uses of DataType in org.apache.flink.table.types.inference
Methods in org.apache.flink.table.types.inference that return DataTypeModifier and TypeMethodDescriptionTypeInferenceUtil.Result.getOutputDataType()static DataTypeTypeInferenceUtil.inferOutputType(CallContext callContext, TypeStrategy outputTypeStrategy) Infers an output type using the givenTypeStrategy.default DataTypeTypeTransformation.transform(DataTypeFactory factory, DataType typeToTransform) Transforms the given data type to a different data type.Transforms the given data type to a different data type.Methods in org.apache.flink.table.types.inference that return types with arguments of type DataTypeModifier and TypeMethodDescriptionTypeInferenceUtil.Result.getAccumulatorDataType()CallContext.getArgumentDataTypes()Returns a resolved list of the call's argument types.StaticArgument.getDataType()TypeInferenceUtil.Result.getExpectedArgumentTypes()CallContext.getOutputDataType()Returns the inferred output data type of the function call.TypeInference.getTypedArguments()Deprecated.UseTypeInference.getStaticArguments()instead.ArgumentTypeStrategy.inferArgumentType(CallContext callContext, int argumentPos, boolean throwOnFailure) Main logic for inferring and validating an argument.InputTypeStrategy.inferInputTypes(CallContext callContext, boolean throwOnFailure) Main logic for inferring and validating the input arguments.TypeInferenceUtil.SurroundingInfo.inferOutputType(DataTypeFactory typeFactory) TypeStrategy.inferType(CallContext callContext) Infers a type from the given function call.Methods in org.apache.flink.table.types.inference with parameters of type DataTypeModifier and TypeMethodDescriptionstatic CallContextTypeInferenceUtil.adaptArguments(TypeInference typeInference, CallContext callContext, DataType outputType) Adapts the call's argument if necessary.static ExplicitArgumentTypeStrategyStrategy for an argument that corresponds to an explicitly defined type casting.static TypeStrategyType strategy that returns a fixedDataType.static InputTypeStrategyInputTypeStrategies.explicitSequence(String[] argumentNames, DataType[] expectedDataTypes) Strategy for a named function signature of explicitly defined types likef(s STRING, i INT).static InputTypeStrategyInputTypeStrategies.explicitSequence(DataType... expectedDataTypes) Strategy for a function signature of explicitly defined types likef(STRING, INT).static StaticArgumentDeclares a scalar argument such asf(12)orf(otherColumn).static StaticArgumentStaticArgument.table(String name, DataType dataType, boolean isOptional, EnumSet<StaticArgumentTrait> traits) Declares a table argument such asf(t => myTable)orf(t => TABLE myTable)).default DataTypeTypeTransformation.transform(DataTypeFactory factory, DataType typeToTransform) Transforms the given data type to a different data type.Transforms the given data type to a different data type.TypeInference.Builder.typedArguments(DataType... argumentTypes) Deprecated.Method parameters in org.apache.flink.table.types.inference with type arguments of type DataTypeModifier and TypeMethodDescriptionstatic TypeStrategyType strategy that returns the n-th input argument, mapping it.static TypeStrategyType strategy that returns the n-th input argument, mapping it.InputTypeStrategies.constraint(String constraintMessage, Predicate<List<DataType>> evaluator) Strategy for an argument that must fulfill a given constraint.TypeInference.Builder.typedArguments(List<DataType> argumentTypes) Deprecated.UseTypeInference.Builder.staticArguments(List)instead.Constructors in org.apache.flink.table.types.inference with parameters of type DataTypeModifierConstructorDescriptionConstructor parameters in org.apache.flink.table.types.inference with type arguments of type DataType -
Uses of DataType in org.apache.flink.table.types.inference.strategies
Methods in org.apache.flink.table.types.inference.strategies that return types with arguments of type DataTypeModifier and TypeMethodDescriptionAndArgumentTypeStrategy.inferArgumentType(CallContext callContext, int argumentPos, boolean throwOnFailure) AnyArgumentTypeStrategy.inferArgumentType(CallContext callContext, int argumentPos, boolean throwOnFailure) ArrayComparableElementArgumentTypeStrategy.inferArgumentType(CallContext callContext, int argumentPos, boolean throwOnFailure) ArrayOfStringArgumentTypeStrategy.inferArgumentType(CallContext callContext, int argumentPos, boolean throwOnFailure) CommonArgumentTypeStrategy.inferArgumentType(CallContext callContext, int argumentPos, boolean throwOnFailure) CompositeArgumentTypeStrategy.inferArgumentType(CallContext callContext, int argumentPos, boolean throwOnFailure) ConstraintArgumentTypeStrategy.inferArgumentType(CallContext callContext, int argumentPos, boolean throwOnFailure) ExplicitArgumentTypeStrategy.inferArgumentType(CallContext callContext, int argumentPos, boolean throwOnFailure) FamilyArgumentTypeStrategy.inferArgumentType(CallContext callContext, int argumentPos, boolean throwOnFailure) IndexArgumentTypeStrategy.inferArgumentType(CallContext callContext, int argumentPos, boolean throwOnFailure) ItemAtIndexArgumentTypeStrategy.inferArgumentType(CallContext callContext, int argumentPos, boolean throwOnFailure) JsonQueryOnErrorEmptyArgumentTypeStrategy.inferArgumentType(CallContext callContext, int argumentPos, boolean throwOnFailure) LiteralArgumentTypeStrategy.inferArgumentType(CallContext callContext, int argumentPos, boolean throwOnFailure) OrArgumentTypeStrategy.inferArgumentType(CallContext callContext, int argumentPos, boolean throwOnFailure) OutputArgumentTypeStrategy.inferArgumentType(CallContext callContext, int argumentPos, boolean throwOnFailure) PercentageArgumentTypeStrategy.inferArgumentType(CallContext callContext, int argumentPos, boolean throwOnFailure) PercentageArrayArgumentTypeStrategy.inferArgumentType(CallContext callContext, int argumentPos, boolean throwOnFailure) RootArgumentTypeStrategy.inferArgumentType(CallContext callContext, int argumentPos, boolean throwOnFailure) SymbolArgumentTypeStrategy.inferArgumentType(CallContext callContext, int argumentPos, boolean throwOnFailure) TypeLiteralArgumentTypeStrategy.inferArgumentType(CallContext callContext, int argumentPos, boolean throwOnFailure) CommonCollectionInputTypeStrategy.inferInputTypes(CallContext callContext, boolean throwOnFailure) CommonInputTypeStrategy.inferInputTypes(CallContext callContext, boolean throwOnFailure) ComparableTypeStrategy.inferInputTypes(CallContext callContext, boolean throwOnFailure) LeadLagInputTypeStrategy.inferInputTypes(CallContext callContext, boolean throwOnFailure) OrInputTypeStrategy.inferInputTypes(CallContext callContext, boolean throwOnFailure) OverTypeStrategy.inferInputTypes(CallContext callContext, boolean throwOnFailure) ReinterpretCastInputTypeStrategy.inferInputTypes(CallContext callContext, boolean throwOnFailure) RepeatingSequenceInputTypeStrategy.inferInputTypes(CallContext callContext, boolean throwOnFailure) SequenceInputTypeStrategy.inferInputTypes(CallContext callContext, boolean throwOnFailure) SubQueryInputTypeStrategy.inferInputTypes(CallContext callContext, boolean throwOnFailure) SubsequenceInputTypeStrategy.inferInputTypes(CallContext callContext, boolean throwOnFailure) VaryingSequenceInputTypeStrategy.inferInputTypes(CallContext callContext, boolean throwOnFailure) WildcardInputTypeStrategy.inferInputTypes(CallContext callContext, boolean throwOnFailure) WindowTimeIndictorInputTypeStrategy.inferInputTypes(CallContext callContext, boolean throwOnFailure) ArgumentMappingTypeStrategy.inferType(CallContext callContext) ArrayAppendPrependTypeStrategy.inferType(CallContext callContext) ArrayElementTypeStrategy.inferType(CallContext callContext) CollectTypeStrategy.inferType(CallContext callContext) CommonTypeStrategy.inferType(CallContext callContext) ExplicitTypeStrategy.inferType(CallContext callContext) FirstTypeStrategy.inferType(CallContext callContext) ForceNullableTypeStrategy.inferType(CallContext callContext) HiveAggDecimalPlusTypeStrategy.inferType(CallContext callContext) ItemAtTypeStrategy.inferType(CallContext callContext) MappingTypeStrategy.inferType(CallContext callContext) MatchFamilyTypeStrategy.inferType(CallContext callContext) MissingTypeStrategy.inferType(CallContext callContext) NullableIfArgsTypeStrategy.inferType(CallContext callContext) RowtimeTypeStrategy.inferType(CallContext callContext) ToTimestampLtzTypeStrategy.inferType(CallContext callContext) VaryingStringTypeStrategy.inferType(CallContext callContext) Constructors in org.apache.flink.table.types.inference.strategies with parameters of type DataTypeModifierConstructorDescriptionExplicitArgumentTypeStrategy(DataType expectedDataType) ExplicitTypeStrategy(DataType explicitDataType) Constructor parameters in org.apache.flink.table.types.inference.strategies with type arguments of type DataTypeModifierConstructorDescriptionArgumentMappingTypeStrategy(int pos, Function<DataType, Optional<DataType>> mapper) ArgumentMappingTypeStrategy(int pos, Function<DataType, Optional<DataType>> mapper) ConstraintArgumentTypeStrategy(String constraintMessage, Predicate<List<DataType>> evaluator) -
Uses of DataType in org.apache.flink.table.types.inference.transforms
Methods in org.apache.flink.table.types.inference.transforms that return DataTypeModifier and TypeMethodDescriptionLegacyToNonLegacyTransformation.transform(DataTypeFactory factory, DataType dataType) Methods in org.apache.flink.table.types.inference.transforms with parameters of type DataTypeModifier and TypeMethodDescriptionLegacyToNonLegacyTransformation.transform(DataTypeFactory factory, DataType dataType) -
Uses of DataType in org.apache.flink.table.types.inference.utils
Methods in org.apache.flink.table.types.inference.utils that return types with arguments of type DataTypeModifier and TypeMethodDescriptionAdaptedCallContext.getArgumentDataTypes()UnknownCallContext.getArgumentDataTypes()AdaptedCallContext.getOutputDataType()UnknownCallContext.getOutputDataType()Method parameters in org.apache.flink.table.types.inference.utils with type arguments of type DataTypeModifier and TypeMethodDescriptionvoidAdaptedCallContext.setExpectedArguments(List<DataType> expectedArguments) Constructors in org.apache.flink.table.types.inference.utils with parameters of type DataTypeModifierConstructorDescriptionAdaptedCallContext(CallContext originalContext, DataType outputDataType) -
Uses of DataType in org.apache.flink.table.types.utils
Methods in org.apache.flink.table.types.utils that return DataTypeModifier and TypeMethodDescriptionstatic DataTypeDataTypeUtils.appendRowFields(DataType dataType, List<DataTypes.Field> fields) Appends the given list of fields to an existing row data type.static DataTypeDataTypeUtils.createProctimeDataType()Returns a PROCTIME data type.static DataTypeTypeConversions.fromLegacyInfoToDataType(org.apache.flink.api.common.typeinfo.TypeInformation<?> typeInfo) Deprecated.Please don't use this method anymore.static DataType[]TypeConversions.fromLegacyInfoToDataType(org.apache.flink.api.common.typeinfo.TypeInformation<?>[] typeInfo) Deprecated.Please don't use this method anymore.static DataTypeTypeConversions.fromLogicalToDataType(LogicalType logicalType) static DataType[]TypeConversions.fromLogicalToDataType(LogicalType[] logicalTypes) static DataTypeDataTypeUtils.projectRow(DataType dataType, int[] indexPaths) Deprecated.Use theProjectiontypestatic DataTypeDataTypeUtils.projectRow(DataType dataType, int[][] indexPaths) Deprecated.Use theProjectiontypestatic DataTypeDataTypeUtils.removeTimeAttribute(DataType dataType) Removes time attributes from theDataType.static DataTypeDataTypeUtils.replaceLogicalType(DataType dataType, LogicalType replacement) Replaces theLogicalTypeof aDataType, i.e., it keeps the bridging class.static DataTypeDataTypeUtils.stripRowPrefix(DataType dataType, String prefix) Removes a string prefix from the fields of the given row data type.static DataTypeLegacyTypeInfoDataTypeConverter.toDataType(org.apache.flink.api.common.typeinfo.TypeInformation<?> typeInfo) Deprecated.static DataTypeLogicalTypeDataTypeConverter.toDataType(LogicalType logicalType) Returns the data type of a logical type without explicit conversions.static DataTypeTypeInfoDataTypeConverter.toDataType(DataTypeFactory dataTypeFactory, org.apache.flink.api.common.typeinfo.TypeInformation<?> typeInfo) Converts the givenTypeInformationintoDataType.static DataTypeTypeInfoDataTypeConverter.toDataType(DataTypeFactory dataTypeFactory, org.apache.flink.api.common.typeinfo.TypeInformation<?> typeInfo, boolean forceNullability) Converts the givenTypeInformationintoDataTypebut allows to make all fields nullable independent of the nullability in the serialization stack.static DataTypeDataTypeUtils.toInternalDataType(DataType dataType) static DataTypeDataTypeUtils.toInternalDataType(LogicalType logicalType) Creates aDataTypefrom the givenLogicalTypewith internal data structures.static DataTypeDataTypeUtils.transform(DataTypeFactory factory, DataType typeToTransform, TypeTransformation... transformations) Transforms the given data type to a different data type using the given transformations.static DataTypeDataTypeUtils.transform(DataType typeToTransform, TypeTransformation... transformations) Transforms the given data type to a different data type using the given transformations.Methods in org.apache.flink.table.types.utils that return types with arguments of type DataTypeModifier and TypeMethodDescriptionClassDataTypeConverter.extractDataType(Class<?> clazz) Returns the clearly identifiable data type if possible.ValueDataTypeConverter.extractDataType(Object value) Returns the clearly identifiable data type if possible.DataTypeUtils.flattenToDataTypes(DataType dataType) Returns the data types of the flat representation in the first level of the given data type.TypeConversions.fromClassToDataType(Class<?> clazz) Retrieves a nested field from a composite type at given position.Retrieves a nested field from a composite type with given name.Methods in org.apache.flink.table.types.utils with parameters of type DataTypeModifier and TypeMethodDescriptionstatic DataTypeDataTypeUtils.appendRowFields(DataType dataType, List<DataTypes.Field> fields) Appends the given list of fields to an existing row data type.protected abstract RDataTypeDefaultVisitor.defaultMethod(DataType dataType) static ResolvedSchemaDataTypeUtils.expandCompositeTypeToSchema(DataType dataType) Expands a compositeDataTypeto a correspondingResolvedSchema.DataTypeUtils.flattenToDataTypes(DataType dataType) Returns the data types of the flat representation in the first level of the given data type.DataTypeUtils.flattenToNames(DataType dataType) Returns the names of the flat representation of the given data type.DataTypeUtils.flattenToNames(DataType dataType, List<String> existingNames) static LogicalTypeTypeConversions.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.static org.apache.flink.api.common.typeinfo.TypeInformation<?>[]TypeConversions.fromDataTypeToLegacyInfo(DataType[] dataType) Deprecated.Please don't use this method anymore.Retrieves a nested field from a composite type at given position.Retrieves a nested field from a composite type with given name.static booleanDataTypeUtils.isInternal(DataType dataType) Checks whether a given data type is an internal data structure.static booleanDataTypeUtils.isInternal(DataType dataType, boolean autobox) Checks whether a given data type is an internal data structure.static DataTypeDataTypeUtils.projectRow(DataType dataType, int[] indexPaths) Deprecated.Use theProjectiontypestatic DataTypeDataTypeUtils.projectRow(DataType dataType, int[][] indexPaths) Deprecated.Use theProjectiontypestatic DataTypeDataTypeUtils.removeTimeAttribute(DataType dataType) Removes time attributes from theDataType.static DataTypeDataTypeUtils.replaceLogicalType(DataType dataType, LogicalType replacement) Replaces theLogicalTypeof aDataType, i.e., it keeps the bridging class.static DataTypeDataTypeUtils.stripRowPrefix(DataType dataType, String prefix) Removes a string prefix from the fields of the given row data type.static DataTypeDataTypeUtils.toInternalDataType(DataType dataType) static org.apache.flink.api.common.typeinfo.TypeInformation<?>LegacyTypeInfoDataTypeConverter.toLegacyTypeInfo(DataType dataType) Deprecated.static LogicalTypeLogicalTypeDataTypeConverter.toLogicalType(DataType dataType) Returns the logical type of a data type.static DataTypeDataTypeUtils.transform(DataTypeFactory factory, DataType typeToTransform, TypeTransformation... transformations) Transforms the given data type to a different data type using the given transformations.static DataTypeDataTypeUtils.transform(DataType typeToTransform, TypeTransformation... transformations) Transforms the given data type to a different data type using the given transformations.static voidDataTypeUtils.validateInputDataType(DataType dataType) TheDataTypeclass can only partially verify the conversion class.static voidDataTypeUtils.validateOutputDataType(DataType dataType) TheDataTypeclass can only partially verify the conversion class. -
Uses of DataType in org.apache.flink.table.typeutils
Methods in org.apache.flink.table.typeutils that return DataType -
Uses of DataType in org.apache.flink.table.utils
Methods in org.apache.flink.table.utils with parameters of type DataTypeModifier and TypeMethodDescriptionstatic int[]TypeMappingUtils.computePhysicalIndices(List<TableColumn> logicalColumns, DataType physicalType, Function<String, String> nameRemapping) Computes indices of physical fields corresponding to the selected logical fields of aTableSchema.static ObjectPartitionPathUtils.convertStringToInternalValue(String valStr, DataType type) Restore partition value from string and type.static GenericRowDataPartitionPathUtils.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.
BuiltInFunctionDefinition.Builder.staticArguments(StaticArgument...)instead.