Class HivePageSourceProvider.ColumnMapping
java.lang.Object
io.trino.plugin.hive.HivePageSourceProvider.ColumnMapping
- Enclosing class:
HivePageSourceProvider
-
Method Summary
Modifier and TypeMethodDescriptionbuildColumnMappings(String partitionName, List<HivePartitionKey> partitionKeys, List<HiveColumnHandle> columns, List<HiveColumnHandle> requiredInterimColumns, Map<Integer, HiveTypeName> hiveColumnCoercions, String path, OptionalInt bucketNumber, long estimatedFileSize, long fileModifiedTime) empty(HiveColumnHandle hiveColumnHandle) intgetIndex()getKind()interim(HiveColumnHandle hiveColumnHandle, int index, Optional<HiveType> baseTypeCoercionFrom) prefilled(HiveColumnHandle hiveColumnHandle, NullableValue prefilledValue, Optional<HiveType> baseTypeCoercionFrom) regular(HiveColumnHandle hiveColumnHandle, int index, Optional<HiveType> baseTypeCoercionFrom) synthesized(HiveColumnHandle hiveColumnHandle, int index, Optional<HiveType> baseTypeCoercionFrom) static List<HiveColumnHandle> toColumnHandles(List<HivePageSourceProvider.ColumnMapping> regularColumnMappings, TypeManager typeManager, CoercionUtils.CoercionContext coercionContext)
-
Method Details
-
regular
public static HivePageSourceProvider.ColumnMapping regular(HiveColumnHandle hiveColumnHandle, int index, Optional<HiveType> baseTypeCoercionFrom) -
synthesized
public static HivePageSourceProvider.ColumnMapping synthesized(HiveColumnHandle hiveColumnHandle, int index, Optional<HiveType> baseTypeCoercionFrom) -
prefilled
public static HivePageSourceProvider.ColumnMapping prefilled(HiveColumnHandle hiveColumnHandle, NullableValue prefilledValue, Optional<HiveType> baseTypeCoercionFrom) -
interim
public static HivePageSourceProvider.ColumnMapping interim(HiveColumnHandle hiveColumnHandle, int index, Optional<HiveType> baseTypeCoercionFrom) -
empty
-
getKind
-
getPrefilledValue
-
getHiveColumnHandle
-
getIndex
public int getIndex() -
getBaseTypeCoercionFrom
-
buildColumnMappings
public static List<HivePageSourceProvider.ColumnMapping> buildColumnMappings(String partitionName, List<HivePartitionKey> partitionKeys, List<HiveColumnHandle> columns, List<HiveColumnHandle> requiredInterimColumns, Map<Integer, HiveTypeName> hiveColumnCoercions, String path, OptionalInt bucketNumber, long estimatedFileSize, long fileModifiedTime) -
extractRegularAndInterimColumnMappings
public static List<HivePageSourceProvider.ColumnMapping> extractRegularAndInterimColumnMappings(List<HivePageSourceProvider.ColumnMapping> columnMappings) -
toColumnHandles
public static List<HiveColumnHandle> toColumnHandles(List<HivePageSourceProvider.ColumnMapping> regularColumnMappings, TypeManager typeManager, CoercionUtils.CoercionContext coercionContext)
-