Package io.trino.plugin.hive
Class HivePartitionManager
- java.lang.Object
-
- io.trino.plugin.hive.HivePartitionManager
-
public class HivePartitionManager extends Object
-
-
Constructor Summary
Constructors Constructor Description HivePartitionManager(int maxPartitions, int domainCompactionThreshold)HivePartitionManager(HiveConfig hiveConfig)
-
Method Summary
-
-
-
Constructor Detail
-
HivePartitionManager
@Inject public HivePartitionManager(HiveConfig hiveConfig)
-
HivePartitionManager
public HivePartitionManager(int maxPartitions, int domainCompactionThreshold)
-
-
Method Detail
-
getPartitions
public HivePartitionResult getPartitions(SemiTransactionalHiveMetastore metastore, HiveIdentity identity, ConnectorTableHandle tableHandle, Constraint constraint)
-
getPartitions
public HivePartitionResult getPartitions(ConnectorTableHandle tableHandle, List<List<String>> partitionValuesList)
-
getPartitionsAsList
public List<HivePartition> getPartitionsAsList(HivePartitionResult partitionResult)
-
applyPartitionResult
public HiveTableHandle applyPartitionResult(HiveTableHandle handle, HivePartitionResult partitions, Optional<Set<ColumnHandle>> columns)
-
getOrLoadPartitions
public List<HivePartition> getOrLoadPartitions(SemiTransactionalHiveMetastore metastore, HiveIdentity identity, HiveTableHandle table)
-
partitionMatches
public static boolean partitionMatches(List<HiveColumnHandle> partitionColumns, TupleDomain<ColumnHandle> constraintSummary, HivePartition partition)
-
parsePartition
public static HivePartition parsePartition(SchemaTableName tableName, String partitionName, List<HiveColumnHandle> partitionColumns, List<Type> partitionColumnTypes)
-
-