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.BITMAP()Data type of bitmap data.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.DESCRIPTOR()Data type for describing an arbitrary, unvalidated list of columns.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 DataTypeDataTypes.STRUCTURED(Class<?> implementationClass, DataTypes.Field... fields) Data type of a user-defined object structured type.static DataTypeDataTypes.STRUCTURED(String className, DataTypes.Field... fields) Data type of a user-defined object structured type where the given class name is not in the classpath.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.static DataTypeDataTypes.VARIANT()Data type of semi-structured data.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 ApiExpressionCreates a literal (i.e. a constant value) of a givenDataType.static DataTypeData type of an associative array that maps keys (includingNULL) to values (includingNULL).static DataTypeData type of a multiset (=bag).static ApiExpressionReturns a null literal value of a given data type.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.api.internal
Methods in org.apache.flink.table.api.internal with parameters of type DataTypeModifier and TypeMethodDescriptionReturns a new value being cast totoType.Extracts JSON values from a JSON string.BaseExpressions.jsonQuery(String path, DataType returnType, JsonQueryWrapper wrappingBehavior) Extracts JSON values from a JSON string.BaseExpressions.jsonQuery(String path, DataType returnType, JsonQueryWrapper wrappingBehavior, JsonQueryOnEmptyOrError onEmpty, JsonQueryOnEmptyOrError onError) Extracts JSON values from a JSON string.Extracts a scalar from a JSON string.Extracts a scalar from a JSON string.BaseExpressions.jsonValue(String path, DataType returningType, JsonValueOnEmptyOrError onEmpty, InType defaultOnEmpty, JsonValueOnEmptyOrError onError, InType defaultOnError) Extracts a scalar from a JSON string.LikeBaseExpressions.cast(DataType), but in case of error, returnsnullrather than failing the job. -
Uses of DataType in org.apache.flink.table.catalog
Methods 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(TypeInformation<T> typeInfo) Creates a type for the givenTypeInformation.DataTypeFactory.createDataType(org.apache.flink.table.catalog.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(TypeInformation<T> typeInfo) Creates a RAW type for the givenTypeInformation.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 TypeMethodDescriptionstatic ResolvedSchemaShortcut for a resolved schema of only physical columns. -
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> 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.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> 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.expressions
Methods in org.apache.flink.table.expressions that return DataTypeModifier and TypeMethodDescriptionResolvedExpression.getOutputDataType()Returns the data type of the computation result. -
Uses of DataType in org.apache.flink.table.functions
Methods in org.apache.flink.table.functions that return DataType -
Uses of DataType in org.apache.flink.table.types
Subclasses of DataType in org.apache.flink.table.typesModifier and TypeClassDescriptionfinal classA data type that contains field data types (i.e. row and structured type).Methods in org.apache.flink.table.types that return DataTypeModifier and TypeMethodDescriptionFieldsDataType.notNull()FieldsDataType.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 TypeMethodDescriptionDataType.getChildren()Returns the children of this data type, if any.FieldsDataType.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.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.inference
Methods in org.apache.flink.table.types.inference that return types with arguments of type DataTypeModifier and TypeMethodDescriptionStaticArgument.getDataType()TypeInference.getTypedArguments()Deprecated.TypeStrategy.inferType(org.apache.flink.table.types.inference.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 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)).TypeInference.Builder.typedArguments(DataType... argumentTypes) Deprecated.Method parameters in org.apache.flink.table.types.inference with type arguments of type DataTypeModifier and TypeMethodDescriptionTypeInference.Builder.typedArguments(List<DataType> argumentTypes) Deprecated.UseTypeInference.Builder.staticArguments(List)instead. -
Uses of DataType in org.apache.flink.types
Methods in org.apache.flink.types that return types with arguments of type DataTypeModifier and TypeMethodDescriptionColumnList.getDataTypes()Returns a list of data types (if available).
TypeInference.getStaticArguments()instead.