public static class HivePageSourceProvider.ColumnMapping extends Object
public static HivePageSourceProvider.ColumnMapping regular(HiveColumnHandle hiveColumnHandle, int index, Optional<HiveType> coerceFrom)
public static HivePageSourceProvider.ColumnMapping aggregated(HiveColumnHandle hiveColumnHandle, int index)
public static HivePageSourceProvider.ColumnMapping prefilled(HiveColumnHandle hiveColumnHandle, Optional<String> prefilledValue, Optional<HiveType> coerceFrom)
public static HivePageSourceProvider.ColumnMapping interim(HiveColumnHandle hiveColumnHandle, int index)
public HivePageSourceProvider.ColumnMappingKind getKind()
public String getPrefilledValue()
public HiveColumnHandle getHiveColumnHandle()
public int getIndex()
public static List<HivePageSourceProvider.ColumnMapping> buildColumnMappings(List<HivePartitionKey> partitionKeys, List<HiveColumnHandle> columns, List<HiveColumnHandle> requiredInterimColumns, TableToPartitionMapping tableToPartitionMapping, HiveFileSplit fileSplit, OptionalInt bucketNumber)
columns - columns that need to be returned to enginerequiredInterimColumns - columns that are needed for processing, but shouldn't be returned to engine (may overlaps with columns)tableToPartitionMapping - table to partition mappingbucketNumber - empty if table is not bucketed, a number within [0, # bucket in table) otherwisepublic static List<HivePageSourceProvider.ColumnMapping> extractRegularAndInterimColumnMappings(List<HivePageSourceProvider.ColumnMapping> columnMappings)
public static List<HiveColumnHandle> toColumnHandles(List<HivePageSourceProvider.ColumnMapping> regularColumnMappings, boolean doCoercion)
Copyright © 2012–2023. All rights reserved.