| Modifier and Type | Method and Description |
|---|---|
static DataType |
DataTypes.of(LogicalType logicalType)
Creates a
DataType from a LogicalType with default conversion class. |
| Modifier and Type | Method and Description |
|---|---|
LogicalType |
DataTypeFactory.createLogicalType(String typeString)
Creates a
LogicalType by a fully or partially defined name. |
LogicalType |
DataTypeFactory.createLogicalType(UnresolvedIdentifier identifier)
Creates a
LogicalType from an UnresolvedIdentifier for resolving user-defined
types (see DistinctType and StructuredType). |
| Modifier and Type | Method and Description |
|---|---|
LogicalType |
Projection.project(LogicalType logicalType)
Same as
Projection.project(DataType), but accepting and returning LogicalType. |
| Modifier and Type | Method and Description |
|---|---|
LogicalType |
Projection.project(LogicalType logicalType)
Same as
Projection.project(DataType), but accepting and returning LogicalType. |
| Modifier and Type | Method and 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 given
LogicalType. |
| Modifier and Type | Method and 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 given
LogicalType. |
| Modifier and Type | Method and Description |
|---|---|
static ArrayData.ElementGetter |
ArrayData.createElementGetter(LogicalType elementType)
Creates an accessor for getting elements in an internal array data structure at the given
position.
|
static RowData.FieldGetter |
RowData.createFieldGetter(LogicalType fieldType,
int fieldPos)
Creates an accessor for getting elements in an internal row data structure at the given
position.
|
| Modifier and Type | Method and Description |
|---|---|
static int |
BinaryArrayData.calculateFixLengthPartSize(LogicalType type)
It store real value when type is primitive.
|
static boolean |
BinaryRowData.isInFixedLengthPart(LogicalType type)
If it is a fixed-length field, we can call this BinaryRowData's setXX method for in-place
updates.
|
static boolean |
BinaryRowData.isMutable(LogicalType type) |
Map<?,?> |
BinaryMapData.toJavaMap(LogicalType keyType,
LogicalType valueType) |
<T> T[] |
BinaryArrayData.toObjectArray(LogicalType elementType) |
| Modifier and Type | Field and Description |
|---|---|
protected LogicalType |
DataType.logicalType |
| Modifier and Type | Method and Description |
|---|---|
LogicalType |
DataType.getLogicalType()
Returns the corresponding logical type.
|
| Constructor and 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) |
| Modifier and Type | Method and Description |
|---|---|
static Signature.Argument |
Signature.Argument.of(LogicalType type) |
static Signature.Argument |
Signature.Argument.of(String name,
LogicalType type) |
| Modifier and Type | Method and Description |
|---|---|
static TypeStrategy |
TypeStrategies.aggArg0(java.util.function.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 TypeStrategy |
TypeStrategies.aggArg0(java.util.function.Function<LogicalType,LogicalType> aggType,
boolean nullableIfGroupingEmpty)
Type strategy specific for aggregations that partially produce different nullability
depending whether the result is grouped or not.
|
| Modifier and Type | Class and Description |
|---|---|
class |
ArrayType
Logical type of an array of elements with same subtype.
|
class |
BigIntType
Logical 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.
|
class |
BinaryType
Logical type of a fixed-length binary string (=a sequence of bytes).
|
class |
BooleanType
Logical type of a boolean with a (possibly) three-valued logic of
TRUE, FALSE, UNKNOWN. |
class |
CharType
Logical type of a fixed-length character string.
|
class |
DateType
Logical type of a date consisting of
year-month-day with values ranging from 0000-01-01 to 9999-12-31. |
class |
DayTimeIntervalType
Logical type for a group of day-time interval types.
|
class |
DecimalType
Logical type of a decimal number with fixed precision and scale.
|
class |
DistinctType
Logical type of a user-defined distinct type.
|
class |
DoubleType
Logical type of an 8-byte double precision floating point number.
|
class |
FloatType
Logical type of a 4-byte single precision floating point number.
|
class |
IntType
Logical type of a 4-byte signed integer with values from -2,147,483,648 to 2,147,483,647.
|
class |
LegacyTypeInformationType<T>
This type is a temporary solution to fully support the old type system stack through the new
stack.
|
class |
LocalZonedTimestampType
Logical type of a timestamp WITH LOCAL time zone consisting of
year-month-day
hour:minute:second[.fractional] zone with up to nanosecond precision and values ranging from
0000-01-01 00:00:00.000000000 +14:59 to 9999-12-31 23:59:59.999999999 -14:59. |
class |
MapType
Logical type of an associative array that maps keys (including
NULL) to values (including
NULL). |
class |
MultisetType
Logical type of a multiset (=bag).
|
class |
NullType
Logical type for representing untyped
NULL values. |
class |
RawType<T>
Logical type of an arbitrary serialized type.
|
class |
RowType
Logical type of a sequence of fields.
|
class |
SmallIntType
Logical type of a 2-byte signed integer with values from -32,768 to 32,767.
|
class |
StructuredType
Logical type of a user-defined object structured type.
|
class |
SymbolType<T extends TableSymbol>
Logical type for representing symbol values.
|
class |
TimestampType
Logical type of a timestamp WITHOUT time zone consisting of
year-month-day
hour:minute:second[.fractional] with up to nanosecond precision and values ranging from 0000-01-01 00:00:00.000000000 to 9999-12-31 23:59:59.999999999. |
class |
TimeType
Logical type of a time WITHOUT time zone consisting of
hour:minute:second[.fractional]
with up to nanosecond precision and values ranging from 00:00:00.000000000 to 23:59:59.999999999. |
class |
TinyIntType
Logical type of a 1-byte signed integer with values from -128 to 127.
|
class |
TypeInformationRawType<T>
Deprecated.
Use
RawType instead. |
class |
UnresolvedUserDefinedType
Placeholder type of an unresolved user-defined type that is identified by an
UnresolvedIdentifier. |
class |
UserDefinedType
Logical type of a user-defined representation for one or more built-in types.
|
class |
VarBinaryType
Logical type of a variable-length binary string (=a sequence of bytes).
|
class |
VarCharType
Logical type of a variable-length character string.
|
class |
YearMonthIntervalType
Logical type for a group of year-month interval types.
|
class |
ZonedTimestampType
Logical type of a timestamp WITH time zone consisting of
year-month-day
hour:minute:second[.fractional] zone with up to nanosecond precision and values ranging from
0000-01-01 00:00:00.000000000 +14:59 to 9999-12-31 23:59:59.999999999 -14:59. |
| Modifier and Type | Method and Description |
|---|---|
LogicalType |
LogicalType.copy()
Returns a deep copy of this type.
|
LogicalType |
IntType.copy(boolean isNullable) |
LogicalType |
UnresolvedUserDefinedType.copy(boolean isNullable) |
LogicalType |
DistinctType.copy(boolean isNullable) |
LogicalType |
SmallIntType.copy(boolean isNullable) |
LogicalType |
BinaryType.copy(boolean isNullable) |
LogicalType |
BooleanType.copy(boolean isNullable) |
LogicalType |
DoubleType.copy(boolean isNullable) |
LogicalType |
LegacyTypeInformationType.copy(boolean isNullable) |
LogicalType |
DateType.copy(boolean isNullable) |
LogicalType |
DayTimeIntervalType.copy(boolean isNullable) |
LogicalType |
CharType.copy(boolean isNullable) |
LogicalType |
MultisetType.copy(boolean isNullable) |
LogicalType |
BigIntType.copy(boolean isNullable) |
LogicalType |
SymbolType.copy(boolean isNullable) |
LogicalType |
LocalZonedTimestampType.copy(boolean isNullable) |
LogicalType |
FloatType.copy(boolean isNullable) |
LogicalType |
TimestampType.copy(boolean isNullable) |
LogicalType |
TypeInformationRawType.copy(boolean isNullable)
Deprecated.
|
LogicalType |
RawType.copy(boolean isNullable) |
LogicalType |
YearMonthIntervalType.copy(boolean isNullable) |
LogicalType |
VarBinaryType.copy(boolean isNullable) |
LogicalType |
DecimalType.copy(boolean isNullable) |
LogicalType |
StructuredType.copy(boolean isNullable) |
LogicalType |
VarCharType.copy(boolean isNullable) |
abstract LogicalType |
LogicalType.copy(boolean isNullable)
Returns a deep copy of this type with possibly different nullability.
|
LogicalType |
ArrayType.copy(boolean isNullable) |
LogicalType |
ZonedTimestampType.copy(boolean isNullable) |
LogicalType |
TimeType.copy(boolean isNullable) |
LogicalType |
RowType.copy(boolean isNullable) |
LogicalType |
NullType.copy(boolean isNullable) |
LogicalType |
MapType.copy(boolean isNullable) |
LogicalType |
TinyIntType.copy(boolean isNullable) |
LogicalType |
MultisetType.getElementType() |
LogicalType |
ArrayType.getElementType() |
LogicalType |
MapType.getKeyType() |
LogicalType |
DistinctType.getSourceType() |
LogicalType |
StructuredType.StructuredAttribute.getType() |
LogicalType |
RowType.RowField.getType() |
LogicalType |
RowType.getTypeAt(int i) |
LogicalType |
MapType.getValueType() |
| Modifier and Type | Method and Description |
|---|---|
static DistinctType.Builder |
DistinctType.newBuilder(ObjectIdentifier objectIdentifier,
LogicalType sourceType)
Creates a builder for a
DistinctType. |
static RowType |
RowType.of(boolean isNullable,
LogicalType... types) |
static RowType |
RowType.of(boolean nullable,
LogicalType[] types,
String[] names) |
static RowType |
RowType.of(LogicalType... types) |
static RowType |
RowType.of(LogicalType[] types,
String[] names) |
R |
LogicalTypeVisitor.visit(LogicalType other) |
| Constructor and 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) |
| Modifier and Type | Method and Description |
|---|---|
protected LogicalType |
LogicalTypeDuplicator.defaultMethod(LogicalType logicalType) |
static LogicalType |
LogicalTypeMerging.findAvgAggType(LogicalType argType)
Finds the result type of a decimal average aggregation.
|
static LogicalType |
LogicalTypeMerging.findSumAggType(LogicalType argType)
Finds the result type of a decimal sum aggregation.
|
static LogicalType |
LogicalTypeParser.parse(String typeString)
Deprecated.
You should use
LogicalTypeParser.parse(String, ClassLoader) to correctly load user types |
static LogicalType |
LogicalTypeParser.parse(String typeString,
ClassLoader classLoader)
Parses a type string.
|
static LogicalType |
LogicalTypeUtils.removeTimeAttributes(LogicalType logicalType) |
LogicalType |
LogicalTypeDuplicator.visit(ArrayType arrayType) |
LogicalType |
LogicalTypeDuplicator.visit(DistinctType distinctType) |
LogicalType |
LogicalTypeDuplicator.visit(MapType mapType) |
LogicalType |
LogicalTypeDuplicator.visit(MultisetType multisetType) |
LogicalType |
LogicalTypeDuplicator.visit(RowType rowType) |
LogicalType |
LogicalTypeDuplicator.visit(StructuredType structuredType) |
| Modifier and Type | Method and Description |
|---|---|
static Optional<LogicalType> |
LogicalTypeMerging.findCommonType(List<LogicalType> types)
Returns the most common, more general
LogicalType for a given set of types. |
static List<LogicalType> |
LogicalTypeChecks.getFieldTypes(LogicalType logicalType)
Returns the field types of row and structured types.
|
| Modifier and Type | Method and Description |
|---|---|
static boolean |
LogicalTypeChecks.areComparable(LogicalType firstType,
LogicalType secondType,
StructuredType.StructuredComparison requiredComparison) |
static boolean |
LogicalTypeChecks.canBeTimeAttributeType(LogicalType logicalType) |
protected LogicalType |
LogicalTypeDuplicator.defaultMethod(LogicalType logicalType) |
protected abstract R |
LogicalTypeDefaultVisitor.defaultMethod(LogicalType logicalType) |
static LogicalType |
LogicalTypeMerging.findAvgAggType(LogicalType argType)
Finds the result type of a decimal average aggregation.
|
static LogicalType |
LogicalTypeMerging.findSumAggType(LogicalType argType)
Finds the result type of a decimal sum aggregation.
|
static int |
LogicalTypeChecks.getDayPrecision(LogicalType logicalType) |
static int |
LogicalTypeChecks.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 int |
LogicalTypeChecks.getFractionalPrecision(LogicalType logicalType) |
static int |
LogicalTypeChecks.getLength(LogicalType logicalType) |
static int |
LogicalTypeChecks.getPrecision(LogicalType logicalType)
Returns the precision of all types that define a precision implicitly or explicitly.
|
static int |
LogicalTypeChecks.getScale(LogicalType logicalType)
Returns the scale of all types that define a scale implicitly or explicitly.
|
static int |
LogicalTypeChecks.getYearPrecision(LogicalType logicalType) |
static boolean |
LogicalTypeChecks.hasDayPrecision(LogicalType logicalType,
int yearPrecision) |
static boolean |
LogicalTypeChecks.hasFractionalPrecision(LogicalType logicalType,
int fractionalPrecision) |
static boolean |
LogicalTypeChecks.hasLegacyTypes(LogicalType logicalType)
Checks whether a (possibly nested) logical type contains
LegacyTypeInformationType or
TypeInformationRawType. |
static boolean |
LogicalTypeChecks.hasLength(LogicalType logicalType,
int length) |
static boolean |
LogicalTypeChecks.hasNested(LogicalType logicalType,
java.util.function.Predicate<LogicalType> predicate)
Checks whether a (possibly nested) logical type fulfills the given predicate.
|
static boolean |
LogicalTypeChecks.hasPrecision(LogicalType logicalType,
int precision)
Checks the precision of a type that defines a precision implicitly or explicitly.
|
static boolean |
LogicalTypeChecks.hasScale(LogicalType logicalType,
int scale)
Checks the scale of all types that define a scale implicitly or explicitly.
|
static boolean |
LogicalTypeChecks.hasWellDefinedString(LogicalType logicalType)
Checks whether the given
LogicalType has a well-defined string representation when
calling Object.toString() on the internal data structure. |
static boolean |
LogicalTypeChecks.hasYearPrecision(LogicalType logicalType,
int yearPrecision) |
static boolean |
LogicalTypeChecks.isCompositeType(LogicalType logicalType)
Checks if the given type is a composite type.
|
static boolean |
LogicalTypeChecks.isProctimeAttribute(LogicalType logicalType) |
static boolean |
LogicalTypeChecks.isRowtimeAttribute(LogicalType logicalType) |
static boolean |
LogicalTypeChecks.isSingleFieldInterval(LogicalType logicalType) |
static boolean |
LogicalTypeChecks.isTimeAttribute(LogicalType logicalType) |
static LogicalType |
LogicalTypeUtils.removeTimeAttributes(LogicalType logicalType) |
static boolean |
LogicalTypeCasts.supportsAvoidingCast(LogicalType sourceType,
LogicalType targetType)
Returns whether the source type can be safely interpreted as the target type.
|
static boolean |
LogicalTypeCasts.supportsExplicitCast(LogicalType sourceType,
LogicalType targetType)
Returns whether the source type can be casted to the target type.
|
static boolean |
LogicalTypeCasts.supportsImplicitCast(LogicalType sourceType,
LogicalType targetType)
Returns whether the source type can be safely casted to the target type without loosing
information.
|
static boolean |
LogicalTypeCasts.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 given
LogicalType that is used by the table
runtime as internal data structure. |
static RowType |
LogicalTypeUtils.toRowType(LogicalType t)
Converts any logical type to a row type.
|
R |
LogicalTypeDefaultVisitor.visit(LogicalType other) |
| Modifier and Type | Method and Description |
|---|---|
static Optional<LogicalType> |
LogicalTypeMerging.findCommonType(List<LogicalType> types)
Returns the most common, more general
LogicalType for a given set of types. |
static boolean |
LogicalTypeChecks.hasNested(LogicalType logicalType,
java.util.function.Predicate<LogicalType> predicate)
Checks whether a (possibly nested) logical type fulfills the given predicate.
|
static boolean |
LogicalTypeCasts.supportsAvoidingCast(List<LogicalType> sourceTypes,
List<LogicalType> targetTypes)
|
static boolean |
LogicalTypeCasts.supportsAvoidingCast(List<LogicalType> sourceTypes,
List<LogicalType> targetTypes)
|
| Modifier and Type | Method and Description |
|---|---|
static LogicalType |
TypeConversions.fromDataToLogicalType(DataType dataType) |
static LogicalType[] |
TypeConversions.fromDataToLogicalType(DataType[] dataTypes) |
static LogicalType |
LogicalTypeDataTypeConverter.toLogicalType(DataType dataType)
Returns the logical type of a data type.
|
| Modifier and Type | Method and Description |
|---|---|
static DataType |
TypeConversions.fromLogicalToDataType(LogicalType logicalType) |
static DataType[] |
TypeConversions.fromLogicalToDataType(LogicalType[] logicalTypes) |
static DataType |
DataTypeUtils.replaceLogicalType(DataType dataType,
LogicalType replacement)
Replaces the
LogicalType of a DataType, i.e., it keeps the bridging class. |
static DataType |
LogicalTypeDataTypeConverter.toDataType(LogicalType logicalType)
Returns the data type of a logical type without explicit conversions.
|
static DataType |
DataTypeUtils.toInternalDataType(LogicalType logicalType)
Creates a
DataType from the given LogicalType with internal data structures. |
| Modifier and Type | Method and Description |
|---|---|
static void |
TypeMappingUtils.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.
|
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.