Uses of Class
org.apache.flink.table.types.logical.LogicalType
Packages that use LogicalType
Package
Description
-
Uses of LogicalType in org.apache.flink.table.api
Methods in org.apache.flink.table.api with parameters of type LogicalTypeModifier and TypeMethodDescriptionstatic DataTypeDataTypes.of(LogicalType logicalType) Creates aDataTypefrom aLogicalTypewith default conversion class. -
Uses of LogicalType in org.apache.flink.table.catalog
Methods in org.apache.flink.table.catalog that return LogicalTypeModifier and TypeMethodDescriptionDataTypeFactory.createLogicalType(String typeString) Creates aLogicalTypeby a fully or partially defined name.DataTypeFactory.createLogicalType(UnresolvedIdentifier identifier) Creates aLogicalTypefrom anUnresolvedIdentifierfor resolving user-defined types (seeDistinctTypeandStructuredType). -
Uses of LogicalType in org.apache.flink.table.connector
Methods in org.apache.flink.table.connector that return LogicalTypeModifier and TypeMethodDescriptionProjection.project(LogicalType logicalType) Same asProjection.project(DataType), but accepting and returningLogicalType.Methods in org.apache.flink.table.connector with parameters of type LogicalTypeModifier and TypeMethodDescriptionProjection.project(LogicalType logicalType) Same asProjection.project(DataType), but accepting and returningLogicalType. -
Uses of LogicalType in org.apache.flink.table.connector.sink
Methods in org.apache.flink.table.connector.sink with parameters of type LogicalTypeModifier and TypeMethodDescription<T> org.apache.flink.api.common.typeinfo.TypeInformation<T>DynamicTableSink.Context.createTypeInformation(LogicalType consumedLogicalType) Creates type information describing the internal data structures of the givenLogicalType. -
Uses of LogicalType in org.apache.flink.table.connector.source
Methods in org.apache.flink.table.connector.source with parameters of type LogicalTypeModifier and TypeMethodDescription<T> org.apache.flink.api.common.typeinfo.TypeInformation<T>DynamicTableSource.Context.createTypeInformation(LogicalType producedLogicalType) Creates type information describing the internal data structures of the givenLogicalType. -
Uses of LogicalType in org.apache.flink.table.data
Methods in org.apache.flink.table.data with parameters of type LogicalTypeModifier and TypeMethodDescriptionstatic ArrayData.ElementGetterArrayData.createElementGetter(LogicalType elementType) Creates an accessor for getting elements in an internal array data structure at the given position.static RowData.FieldGetterRowData.createFieldGetter(LogicalType fieldType, int fieldPos) Creates an accessor for getting elements in an internal row data structure at the given position. -
Uses of LogicalType in org.apache.flink.table.data.binary
Methods in org.apache.flink.table.data.binary with parameters of type LogicalTypeModifier and TypeMethodDescriptionstatic intBinaryArrayData.calculateFixLengthPartSize(LogicalType type) It store real value when type is primitive.static booleanBinaryRowData.isInFixedLengthPart(LogicalType type) If it is a fixed-length field, we can call this BinaryRowData's setXX method for in-place updates.static booleanBinaryRowData.isMutable(LogicalType type) Map<?,?> BinaryMapData.toJavaMap(LogicalType keyType, LogicalType valueType) <T> T[]BinaryArrayData.toObjectArray(LogicalType elementType) -
Uses of LogicalType in org.apache.flink.table.legacy.types.logical
Subclasses of LogicalType in org.apache.flink.table.legacy.types.logicalMethods in org.apache.flink.table.legacy.types.logical that return LogicalTypeMethods in org.apache.flink.table.legacy.types.logical that return types with arguments of type LogicalType -
Uses of LogicalType in org.apache.flink.table.types
Fields in org.apache.flink.table.types declared as LogicalTypeMethods in org.apache.flink.table.types that return LogicalTypeModifier and TypeMethodDescriptionDataType.getLogicalType()Returns the corresponding logical type.Constructors in org.apache.flink.table.types with parameters of type LogicalTypeModifierConstructorDescriptionAtomicDataType(LogicalType logicalType) AtomicDataType(LogicalType logicalType, Class<?> conversionClass) CollectionDataType(LogicalType logicalType, Class<?> conversionClass, DataType elementDataType) CollectionDataType(LogicalType logicalType, DataType elementDataType) FieldsDataType(LogicalType logicalType, Class<?> conversionClass, List<DataType> fieldDataTypes) FieldsDataType(LogicalType logicalType, List<DataType> fieldDataTypes) KeyValueDataType(LogicalType logicalType, Class<?> conversionClass, DataType keyDataType, DataType valueDataType) KeyValueDataType(LogicalType logicalType, DataType keyDataType, DataType valueDataType) -
Uses of LogicalType in org.apache.flink.table.types.inference
Methods in org.apache.flink.table.types.inference with parameters of type LogicalTypeModifier and TypeMethodDescriptionstatic Signature.ArgumentSignature.Argument.of(String name, LogicalType type) static Signature.ArgumentSignature.Argument.of(LogicalType type) Method parameters in org.apache.flink.table.types.inference with type arguments of type LogicalTypeModifier and TypeMethodDescriptionstatic TypeStrategyTypeStrategies.aggArg0(Function<LogicalType, LogicalType> aggType, boolean nullableIfGroupingEmpty) Type strategy specific for aggregations that partially produce different nullability depending whether the result is grouped or not.static TypeStrategyTypeStrategies.aggArg0(Function<LogicalType, LogicalType> aggType, boolean nullableIfGroupingEmpty) Type strategy specific for aggregations that partially produce different nullability depending whether the result is grouped or not. -
Uses of LogicalType in org.apache.flink.table.types.logical
Subclasses of LogicalType in org.apache.flink.table.types.logicalModifier and TypeClassDescriptionfinal classLogical type of an array of elements with same subtype.final classLogical 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.final classLogical type of a fixed-length binary string (=a sequence of bytes).final classLogical type of a boolean with a (possibly) three-valued logic ofTRUE, FALSE, UNKNOWN.final classLogical type of a fixed-length character string.final classLogical type of a date consisting ofyear-month-daywith values ranging from0000-01-01to9999-12-31.final classLogical type for a group of day-time interval types.final classLogical type of a decimal number with fixed precision and scale.final classLogical type of a user-defined distinct type.final classLogical type of an 8-byte double precision floating point number.final classLogical type of a 4-byte single precision floating point number.final classLogical type of a 4-byte signed integer with values from -2,147,483,648 to 2,147,483,647.final classThis type is a temporary solution to fully support the old type system stack through the new stack.final classLogical type of a timestamp WITH LOCAL time zone consisting ofyear-month-day hour:minute:second[.fractional] zonewith up to nanosecond precision and values ranging from0000-01-01 00:00:00.000000000 +14:59to9999-12-31 23:59:59.999999999 -14:59.final classLogical type of an associative array that maps keys (includingNULL) to values (includingNULL).final classLogical type of a multiset (=bag).final classLogical type for representing untypedNULLvalues.final classRawType<T>Logical type of an arbitrary serialized type.final classLogical type of a sequence of fields.final classLogical type of a 2-byte signed integer with values from -32,768 to 32,767.final classLogical type of a user-defined object structured type.final classSymbolType<T extends TableSymbol>Logical type for representing symbol values.final classLogical type of a timestamp WITHOUT time zone consisting ofyear-month-day hour:minute:second[.fractional]with up to nanosecond precision and values ranging from0000-01-01 00:00:00.000000000to9999-12-31 23:59:59.999999999.final classLogical type of a time WITHOUT time zone consisting ofhour:minute:second[.fractional]with up to nanosecond precision and values ranging from00:00:00.000000000to23:59:59.999999999.final classLogical type of a 1-byte signed integer with values from -128 to 127.final classPlaceholder type of an unresolved user-defined type that is identified by anUnresolvedIdentifier.classLogical type of a user-defined representation for one or more built-in types.final classLogical type of a variable-length binary string (=a sequence of bytes).final classLogical type of a variable-length character string.final classLogical type for a group of year-month interval types.final classLogical type of a timestamp WITH time zone consisting ofyear-month-day hour:minute:second[.fractional] zonewith up to nanosecond precision and values ranging from0000-01-01 00:00:00.000000000 +14:59to9999-12-31 23:59:59.999999999 -14:59.Methods in org.apache.flink.table.types.logical that return LogicalTypeModifier and TypeMethodDescriptionArrayType.copy(boolean isNullable) BigIntType.copy(boolean isNullable) BinaryType.copy(boolean isNullable) BooleanType.copy(boolean isNullable) CharType.copy(boolean isNullable) DateType.copy(boolean isNullable) DayTimeIntervalType.copy(boolean isNullable) DecimalType.copy(boolean isNullable) DistinctType.copy(boolean isNullable) DoubleType.copy(boolean isNullable) FloatType.copy(boolean isNullable) IntType.copy(boolean isNullable) LegacyTypeInformationType.copy(boolean isNullable) LocalZonedTimestampType.copy(boolean isNullable) final LogicalTypeLogicalType.copy()Returns a deep copy of this type.abstract LogicalTypeLogicalType.copy(boolean isNullable) Returns a deep copy of this type with possibly different nullability.MapType.copy(boolean isNullable) MultisetType.copy(boolean isNullable) NullType.copy(boolean isNullable) RawType.copy(boolean isNullable) RowType.copy(boolean isNullable) SmallIntType.copy(boolean isNullable) StructuredType.copy(boolean isNullable) SymbolType.copy(boolean isNullable) TimestampType.copy(boolean isNullable) TimeType.copy(boolean isNullable) TinyIntType.copy(boolean isNullable) UnresolvedUserDefinedType.copy(boolean isNullable) VarBinaryType.copy(boolean isNullable) VarCharType.copy(boolean isNullable) YearMonthIntervalType.copy(boolean isNullable) ZonedTimestampType.copy(boolean isNullable) ArrayType.getElementType()MultisetType.getElementType()MapType.getKeyType()DistinctType.getSourceType()RowType.RowField.getType()StructuredType.StructuredAttribute.getType()RowType.getTypeAt(int i) MapType.getValueType()Methods in org.apache.flink.table.types.logical that return types with arguments of type LogicalTypeModifier and TypeMethodDescriptionArrayType.getChildren()BigIntType.getChildren()BinaryType.getChildren()BooleanType.getChildren()CharType.getChildren()DateType.getChildren()DayTimeIntervalType.getChildren()DecimalType.getChildren()DistinctType.getChildren()DoubleType.getChildren()FloatType.getChildren()IntType.getChildren()LegacyTypeInformationType.getChildren()LocalZonedTimestampType.getChildren()abstract List<LogicalType>LogicalType.getChildren()MapType.getChildren()MultisetType.getChildren()NullType.getChildren()RawType.getChildren()RowType.getChildren()SmallIntType.getChildren()StructuredType.getChildren()SymbolType.getChildren()TimestampType.getChildren()TimeType.getChildren()TinyIntType.getChildren()UnresolvedUserDefinedType.getChildren()VarBinaryType.getChildren()VarCharType.getChildren()YearMonthIntervalType.getChildren()ZonedTimestampType.getChildren()Methods in org.apache.flink.table.types.logical with parameters of type LogicalTypeModifier and TypeMethodDescriptionstatic DistinctType.BuilderDistinctType.newBuilder(ObjectIdentifier objectIdentifier, LogicalType sourceType) Creates a builder for aDistinctType.static RowTypeRowType.of(boolean isNullable, LogicalType... types) static RowTypeRowType.of(boolean nullable, LogicalType[] types, String[] names) static RowTypeRowType.of(LogicalType... types) static RowTypeRowType.of(LogicalType[] types, String[] names) LogicalTypeVisitor.visit(LogicalType other) Constructors in org.apache.flink.table.types.logical with parameters of type LogicalTypeModifierConstructorDescriptionArrayType(boolean isNullable, LogicalType elementType) ArrayType(LogicalType elementType) Builder(ObjectIdentifier objectIdentifier, LogicalType sourceType) MapType(boolean isNullable, LogicalType keyType, LogicalType valueType) MapType(LogicalType keyType, LogicalType valueType) MultisetType(boolean isNullable, LogicalType elementType) MultisetType(LogicalType elementType) RowField(String name, LogicalType type) RowField(String name, LogicalType type, String description) StructuredAttribute(String name, LogicalType type) StructuredAttribute(String name, LogicalType type, String description) -
Uses of LogicalType in org.apache.flink.table.types.logical.utils
Methods in org.apache.flink.table.types.logical.utils that return LogicalTypeModifier and TypeMethodDescriptionprotected LogicalTypeLogicalTypeDuplicator.defaultMethod(LogicalType logicalType) static LogicalTypeLogicalTypeMerging.findAvgAggType(LogicalType argType) Finds the result type of a decimal average aggregation.static LogicalTypeLogicalTypeMerging.findSumAggType(LogicalType argType) Finds the result type of a decimal sum aggregation.static LogicalTypeLogicalTypeParser.parse(String typeString, ClassLoader classLoader) Parses a type string.static LogicalTypeLogicalTypeUtils.removeTimeAttributes(LogicalType logicalType) LogicalTypeDuplicator.visit(DistinctType distinctType) LogicalTypeDuplicator.visit(MultisetType multisetType) LogicalTypeDuplicator.visit(StructuredType structuredType) Methods in org.apache.flink.table.types.logical.utils that return types with arguments of type LogicalTypeModifier and TypeMethodDescriptionstatic Optional<LogicalType>LogicalTypeMerging.findCommonType(List<LogicalType> types) Returns the most common, more generalLogicalTypefor a given set of types.static List<LogicalType>LogicalTypeChecks.getFieldTypes(LogicalType logicalType) Returns the field types of row and structured types.Methods in org.apache.flink.table.types.logical.utils with parameters of type LogicalTypeModifier and TypeMethodDescriptionstatic booleanLogicalTypeChecks.areComparable(LogicalType firstType, LogicalType secondType, StructuredType.StructuredComparison requiredComparison) static booleanLogicalTypeChecks.canBeTimeAttributeType(LogicalType logicalType) protected abstract RLogicalTypeDefaultVisitor.defaultMethod(LogicalType logicalType) protected LogicalTypeLogicalTypeDuplicator.defaultMethod(LogicalType logicalType) static LogicalTypeLogicalTypeMerging.findAvgAggType(LogicalType argType) Finds the result type of a decimal average aggregation.static LogicalTypeLogicalTypeMerging.findSumAggType(LogicalType argType) Finds the result type of a decimal sum aggregation.static intLogicalTypeChecks.getDayPrecision(LogicalType logicalType) static intLogicalTypeChecks.getFieldCount(LogicalType logicalType) Returns the field count of row and structured types.LogicalTypeChecks.getFieldNames(LogicalType logicalType) Returns the field names of row and structured types.static List<LogicalType>LogicalTypeChecks.getFieldTypes(LogicalType logicalType) Returns the field types of row and structured types.static intLogicalTypeChecks.getFractionalPrecision(LogicalType logicalType) static intLogicalTypeChecks.getLength(LogicalType logicalType) static intLogicalTypeChecks.getPrecision(LogicalType logicalType) Returns the precision of all types that define a precision implicitly or explicitly.static intLogicalTypeChecks.getScale(LogicalType logicalType) Returns the scale of all types that define a scale implicitly or explicitly.static intLogicalTypeChecks.getYearPrecision(LogicalType logicalType) static booleanLogicalTypeChecks.hasDayPrecision(LogicalType logicalType, int yearPrecision) static booleanLogicalTypeChecks.hasFractionalPrecision(LogicalType logicalType, int fractionalPrecision) static booleanLogicalTypeChecks.hasLegacyTypes(LogicalType logicalType) Checks whether a (possibly nested) logical type containsLegacyTypeInformationTypeorTypeInformationRawType.static booleanLogicalTypeChecks.hasLength(LogicalType logicalType, int length) static booleanLogicalTypeChecks.hasNested(LogicalType logicalType, Predicate<LogicalType> predicate) Checks whether a (possibly nested) logical type fulfills the given predicate.static booleanLogicalTypeChecks.hasPrecision(LogicalType logicalType, int precision) Checks the precision of a type that defines a precision implicitly or explicitly.static booleanLogicalTypeChecks.hasScale(LogicalType logicalType, int scale) Checks the scale of all types that define a scale implicitly or explicitly.static booleanLogicalTypeChecks.hasWellDefinedString(LogicalType logicalType) Checks whether the givenLogicalTypehas a well-defined string representation when callingObject.toString()on the internal data structure.static booleanLogicalTypeChecks.hasYearPrecision(LogicalType logicalType, int yearPrecision) static booleanLogicalTypeChecks.isCompositeType(LogicalType logicalType) Checks if the given type is a composite type.static booleanLogicalTypeChecks.isProctimeAttribute(LogicalType logicalType) static booleanLogicalTypeChecks.isRowtimeAttribute(LogicalType logicalType) static booleanLogicalTypeChecks.isSingleFieldInterval(LogicalType logicalType) static booleanLogicalTypeChecks.isTimeAttribute(LogicalType logicalType) static LogicalTypeLogicalTypeUtils.removeTimeAttributes(LogicalType logicalType) static booleanLogicalTypeCasts.supportsAvoidingCast(LogicalType sourceType, LogicalType targetType) Returns whether the source type can be safely interpreted as the target type.static booleanLogicalTypeCasts.supportsExplicitCast(LogicalType sourceType, LogicalType targetType) Returns whether the source type can be casted to the target type.static booleanLogicalTypeCasts.supportsImplicitCast(LogicalType sourceType, LogicalType targetType) Returns whether the source type can be safely casted to the target type without loosing information.static booleanLogicalTypeCasts.supportsReinterpretCast(LogicalType sourceType, LogicalType targetType) Returns whether the source type can be reinterpreted as the target type.static Class<?>LogicalTypeUtils.toInternalConversionClass(LogicalType type) Returns the conversion class for the givenLogicalTypethat is used by the table runtime as internal data structure.static RowTypeLogicalTypeUtils.toRowType(LogicalType t) Converts any logical type to a row type.LogicalTypeDefaultVisitor.visit(LogicalType other) Method parameters in org.apache.flink.table.types.logical.utils with type arguments of type LogicalTypeModifier and TypeMethodDescriptionstatic Optional<LogicalType>LogicalTypeMerging.findCommonType(List<LogicalType> types) Returns the most common, more generalLogicalTypefor a given set of types.static booleanLogicalTypeChecks.hasNested(LogicalType logicalType, Predicate<LogicalType> predicate) Checks whether a (possibly nested) logical type fulfills the given predicate.static booleanLogicalTypeCasts.supportsAvoidingCast(List<LogicalType> sourceTypes, List<LogicalType> targetTypes) -
Uses of LogicalType in org.apache.flink.table.types.utils
Methods in org.apache.flink.table.types.utils that return LogicalTypeModifier and TypeMethodDescriptionstatic LogicalTypeTypeConversions.fromDataToLogicalType(DataType dataType) static LogicalType[]TypeConversions.fromDataToLogicalType(DataType[] dataTypes) static LogicalTypeLogicalTypeDataTypeConverter.toLogicalType(DataType dataType) Returns the logical type of a data type.Methods in org.apache.flink.table.types.utils with parameters of type LogicalTypeModifier and TypeMethodDescriptionstatic DataTypeTypeConversions.fromLogicalToDataType(LogicalType logicalType) static DataType[]TypeConversions.fromLogicalToDataType(LogicalType[] logicalTypes) static DataTypeDataTypeUtils.replaceLogicalType(DataType dataType, LogicalType replacement) Replaces theLogicalTypeof aDataType, i.e., it keeps the bridging class.static DataTypeLogicalTypeDataTypeConverter.toDataType(LogicalType logicalType) Returns the data type of a logical type without explicit conversions.static DataTypeDataTypeUtils.toInternalDataType(LogicalType logicalType) Creates aDataTypefrom the givenLogicalTypewith internal data structures. -
Uses of LogicalType in org.apache.flink.table.utils
Methods in org.apache.flink.table.utils with parameters of type LogicalTypeModifier and TypeMethodDescriptionstatic voidTypeMappingUtils.checkPhysicalLogicalTypeCompatible(LogicalType physicalFieldType, LogicalType logicalFieldType, String physicalFieldName, String logicalFieldName, boolean isSource) Checks whether the given physical field type and logical field type are compatible at the edges of the table ecosystem.
RawTypeinstead.