Class CoercionUtils
java.lang.Object
io.trino.plugin.hive.coercions.CoercionUtils
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordstatic classstatic classstatic class -
Method Summary
Modifier and TypeMethodDescriptionstatic Optional<TypeCoercer<? extends Type, ? extends Type>> createCoercer(TypeManager typeManager, HiveType fromHiveType, HiveType toHiveType, CoercionUtils.CoercionContext coercionContext) static TypecreateTypeFromCoercer(TypeManager typeManager, HiveType fromHiveType, HiveType toHiveType, CoercionUtils.CoercionContext coercionContext) static HiveStorageFormatextractHiveStorageFormat(String deserializedClass) static booleannarrowerThan(CharType first, CharType second) static booleannarrowerThan(VarcharType first, VarcharType second)
-
Method Details
-
createTypeFromCoercer
public static Type createTypeFromCoercer(TypeManager typeManager, HiveType fromHiveType, HiveType toHiveType, CoercionUtils.CoercionContext coercionContext) -
createCoercer
public static Optional<TypeCoercer<? extends Type,? extends Type>> createCoercer(TypeManager typeManager, HiveType fromHiveType, HiveType toHiveType, CoercionUtils.CoercionContext coercionContext) -
narrowerThan
-
narrowerThan
-
extractHiveStorageFormat
-