Uses of Class
org.apache.flink.table.types.logical.LogicalType
-
-
Uses of LogicalType in org.apache.flink.table.api
Methods in org.apache.flink.table.api with parameters of type LogicalType Modifier and Type Method Description static 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 LogicalType Modifier and Type Method Description LogicalTypeDataTypeFactory. createLogicalType(String typeString)Creates aLogicalTypeby a fully or partially defined name.LogicalTypeDataTypeFactory. 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 LogicalType Modifier and Type Method Description LogicalTypeProjection. project(LogicalType logicalType)Same asProjection.project(DataType), but accepting and returningLogicalType.Methods in org.apache.flink.table.connector with parameters of type LogicalType Modifier and Type Method Description LogicalTypeProjection. 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 LogicalType Modifier and Type Method Description <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 LogicalType Modifier and Type Method Description <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 LogicalType Modifier and Type Method Description static 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 LogicalType Modifier and Type Method Description static 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.logical Modifier and Type Class Description classTypeInformationRawType<T>Deprecated.UseRawTypeinstead.Methods in org.apache.flink.table.legacy.types.logical that return LogicalType Modifier and Type Method Description LogicalTypeTypeInformationRawType. copy(boolean isNullable)Deprecated.Methods in org.apache.flink.table.legacy.types.logical that return types with arguments of type LogicalType Modifier and Type Method Description List<LogicalType>TypeInformationRawType. getChildren()Deprecated. -
Uses of LogicalType in org.apache.flink.table.types
Fields in org.apache.flink.table.types declared as LogicalType Modifier and Type Field Description protected LogicalTypeDataType. logicalTypeMethods in org.apache.flink.table.types that return LogicalType Modifier and Type Method Description LogicalTypeDataType. getLogicalType()Returns the corresponding logical type.Constructors in org.apache.flink.table.types with parameters of type LogicalType Constructor Description AtomicDataType(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 LogicalType Modifier and Type Method Description static 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 LogicalType Modifier and Type Method Description 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.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.logical Modifier and Type Class Description classArrayTypeLogical type of an array of elements with same subtype.classBigIntTypeLogical 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.classBinaryTypeLogical type of a fixed-length binary string (=a sequence of bytes).classBooleanTypeLogical type of a boolean with a (possibly) three-valued logic ofTRUE, FALSE, UNKNOWN.classCharTypeLogical type of a fixed-length character string.classDateTypeLogical type of a date consisting ofyear-month-daywith values ranging from0000-01-01to9999-12-31.classDayTimeIntervalTypeLogical type for a group of day-time interval types.classDecimalTypeLogical type of a decimal number with fixed precision and scale.classDescriptorTypeLogical type for describing an arbitrary, unvalidated list of columns.classDistinctTypeLogical type of a user-defined distinct type.classDoubleTypeLogical type of an 8-byte double precision floating point number.classFloatTypeLogical type of a 4-byte single precision floating point number.classIntTypeLogical type of a 4-byte signed integer with values from -2,147,483,648 to 2,147,483,647.classLegacyTypeInformationType<T>This type is a temporary solution to fully support the old type system stack through the new stack.classLocalZonedTimestampTypeLogical 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.classMapTypeLogical type of an associative array that maps keys (includingNULL) to values (includingNULL).classMultisetTypeLogical type of a multiset (=bag).classNullTypeLogical type for representing untypedNULLvalues.classRawType<T>Logical type of an arbitrary serialized type.classRowTypeLogical type of a sequence of fields.classSmallIntTypeLogical type of a 2-byte signed integer with values from -32,768 to 32,767.classStructuredTypeLogical type of a user-defined object structured type.classSymbolType<T extends TableSymbol>Logical type for representing symbol values.classTimestampTypeLogical 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.classTimeTypeLogical 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.classTinyIntTypeLogical type of a 1-byte signed integer with values from -128 to 127.classUnresolvedUserDefinedTypePlaceholder type of an unresolved user-defined type that is identified by anUnresolvedIdentifier.classUserDefinedTypeLogical type of a user-defined representation for one or more built-in types.classVarBinaryTypeLogical type of a variable-length binary string (=a sequence of bytes).classVarCharTypeLogical type of a variable-length character string.classVariantTypeData type of semi-structured data.classYearMonthIntervalTypeLogical type for a group of year-month interval types.classZonedTimestampTypeLogical 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 LogicalType Modifier and Type Method Description LogicalTypeArrayType. copy(boolean isNullable)LogicalTypeBigIntType. copy(boolean isNullable)LogicalTypeBinaryType. copy(boolean isNullable)LogicalTypeBooleanType. copy(boolean isNullable)LogicalTypeCharType. copy(boolean isNullable)LogicalTypeDateType. copy(boolean isNullable)LogicalTypeDayTimeIntervalType. copy(boolean isNullable)LogicalTypeDecimalType. copy(boolean isNullable)LogicalTypeDescriptorType. copy(boolean isNullable)LogicalTypeDistinctType. copy(boolean isNullable)LogicalTypeDoubleType. copy(boolean isNullable)LogicalTypeFloatType. copy(boolean isNullable)LogicalTypeIntType. copy(boolean isNullable)LogicalTypeLegacyTypeInformationType. copy(boolean isNullable)LogicalTypeLocalZonedTimestampType. copy(boolean isNullable)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.LogicalTypeMapType. copy(boolean isNullable)LogicalTypeMultisetType. copy(boolean isNullable)LogicalTypeNullType. copy(boolean isNullable)LogicalTypeRawType. copy(boolean isNullable)LogicalTypeRowType. copy(boolean isNullable)LogicalTypeSmallIntType. copy(boolean isNullable)LogicalTypeStructuredType. copy(boolean isNullable)LogicalTypeSymbolType. copy(boolean isNullable)LogicalTypeTimestampType. copy(boolean isNullable)LogicalTypeTimeType. copy(boolean isNullable)LogicalTypeTinyIntType. copy(boolean isNullable)LogicalTypeUnresolvedUserDefinedType. copy(boolean isNullable)LogicalTypeVarBinaryType. copy(boolean isNullable)LogicalTypeVarCharType. copy(boolean isNullable)LogicalTypeVariantType. copy(boolean isNullable)LogicalTypeYearMonthIntervalType. copy(boolean isNullable)LogicalTypeZonedTimestampType. copy(boolean isNullable)LogicalTypeArrayType. getElementType()LogicalTypeMultisetType. getElementType()LogicalTypeMapType. getKeyType()LogicalTypeDistinctType. getSourceType()LogicalTypeRowType.RowField. getType()LogicalTypeStructuredType.StructuredAttribute. getType()LogicalTypeRowType. getTypeAt(int i)LogicalTypeMapType. getValueType()Methods in org.apache.flink.table.types.logical with parameters of type LogicalType Modifier and Type Method Description static 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)RLogicalTypeVisitor. visit(LogicalType other)Constructors in org.apache.flink.table.types.logical with parameters of type LogicalType Constructor Description ArrayType(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 LogicalType Modifier and Type Method Description 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 LogicalTypeLogicalTypeParser. parse(String typeString, ClassLoader classLoader)Parses a type string.static LogicalTypeLogicalTypeUtils. removeTimeAttributes(LogicalType logicalType)LogicalTypeLogicalTypeDuplicator. visit(ArrayType arrayType)LogicalTypeLogicalTypeDuplicator. visit(DistinctType distinctType)LogicalTypeLogicalTypeDuplicator. visit(MapType mapType)LogicalTypeLogicalTypeDuplicator. visit(MultisetType multisetType)LogicalTypeLogicalTypeDuplicator. visit(RowType rowType)LogicalTypeLogicalTypeDuplicator. visit(StructuredType structuredType)Methods in org.apache.flink.table.types.logical.utils that return types with arguments of type LogicalType Modifier and Type Method Description static 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 LogicalType Modifier and Type Method Description static 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.static List<String>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.RLogicalTypeDefaultVisitor. visit(LogicalType other)Method parameters in org.apache.flink.table.types.logical.utils with type arguments of type LogicalType Modifier and Type Method Description static 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 LogicalType Modifier and Type Method Description static 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 LogicalType Modifier and Type Method Description static 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 LogicalType Modifier and Type Method Description static 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.
-