public static class HivePageSourceProvider.ColumnMapping extends Object
public static HivePageSourceProvider.ColumnMapping regular(HiveColumnHandle hiveColumnHandle, int index, Optional<HiveType> coerceFrom)
public static HivePageSourceProvider.ColumnMapping prefilled(HiveColumnHandle hiveColumnHandle, 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, Map<Integer,HiveType> columnCoercions, org.apache.hadoop.fs.Path path, 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)columnCoercions - map from hive column index to hive typebucketNumber - 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–2019. All rights reserved.