public class HivePartitionManager extends Object
| Constructor and Description |
|---|
HivePartitionManager(org.joda.time.DateTimeZone timeZone,
int maxPartitions,
boolean assumeCanonicalPartitionKeys,
int domainCompactionThreshold) |
HivePartitionManager(HiveConfig hiveConfig) |
| Modifier and Type | Method and Description |
|---|---|
HiveTableHandle |
applyPartitionResult(HiveTableHandle handle,
HivePartitionResult partitions,
Optional<Set<ColumnHandle>> columns) |
static List<String> |
extractPartitionValues(String partitionName) |
List<HivePartition> |
getOrLoadPartitions(SemiTransactionalHiveMetastore metastore,
HiveIdentity identity,
HiveTableHandle table) |
HivePartitionResult |
getPartitions(ConnectorTableHandle tableHandle,
List<List<String>> partitionValuesList) |
HivePartitionResult |
getPartitions(SemiTransactionalHiveMetastore metastore,
HiveIdentity identity,
ConnectorTableHandle tableHandle,
Constraint constraint) |
List<HivePartition> |
getPartitionsAsList(HivePartitionResult partitionResult) |
static HivePartition |
parsePartition(SchemaTableName tableName,
String partitionName,
List<HiveColumnHandle> partitionColumns,
List<Type> partitionColumnTypes,
org.joda.time.DateTimeZone timeZone) |
@Inject public HivePartitionManager(HiveConfig hiveConfig)
public HivePartitionManager(org.joda.time.DateTimeZone timeZone,
int maxPartitions,
boolean assumeCanonicalPartitionKeys,
int domainCompactionThreshold)
public HivePartitionResult getPartitions(SemiTransactionalHiveMetastore metastore, HiveIdentity identity, ConnectorTableHandle tableHandle, Constraint constraint)
public HivePartitionResult getPartitions(ConnectorTableHandle tableHandle, List<List<String>> partitionValuesList)
public List<HivePartition> getPartitionsAsList(HivePartitionResult partitionResult)
public HiveTableHandle applyPartitionResult(HiveTableHandle handle, HivePartitionResult partitions, Optional<Set<ColumnHandle>> columns)
public List<HivePartition> getOrLoadPartitions(SemiTransactionalHiveMetastore metastore, HiveIdentity identity, HiveTableHandle table)
public static HivePartition parsePartition(SchemaTableName tableName, String partitionName, List<HiveColumnHandle> partitionColumns, List<Type> partitionColumnTypes, org.joda.time.DateTimeZone timeZone)
Copyright © 2012–2020. All rights reserved.