public class HiveMetastoreClient extends Object implements MetastoreClient
MetastoreClient for Hive tables.| Modifier and Type | Class and Description |
|---|---|
static class |
HiveMetastoreClient.Factory
Factory to create
HiveMetastoreClient. |
| Modifier and Type | Method and Description |
|---|---|
void |
addPartition(LinkedHashMap<String,String> partition) |
void |
addPartitions(List<LinkedHashMap<String,String>> partitions) |
void |
alterPartition(Partition partition) |
org.apache.hadoop.hive.metastore.IMetaStoreClient |
client() |
void |
close() |
void |
dropPartition(LinkedHashMap<String,String> partitionSpec) |
void |
dropPartitions(List<LinkedHashMap<String,String>> partitions) |
void |
markPartitionDone(LinkedHashMap<String,String> partitionSpec) |
public void addPartition(LinkedHashMap<String,String> partition) throws Exception
addPartition in interface MetastoreClientExceptionpublic void addPartitions(List<LinkedHashMap<String,String>> partitions) throws Exception
addPartitions in interface MetastoreClientExceptionpublic void alterPartition(Partition partition) throws Exception
alterPartition in interface MetastoreClientExceptionpublic void dropPartition(LinkedHashMap<String,String> partitionSpec) throws Exception
dropPartition in interface MetastoreClientExceptionpublic void dropPartitions(List<LinkedHashMap<String,String>> partitions) throws Exception
dropPartitions in interface MetastoreClientExceptionpublic void markPartitionDone(LinkedHashMap<String,String> partitionSpec) throws Exception
markPartitionDone in interface MetastoreClientExceptionpublic void close()
throws Exception
close in interface AutoCloseableExceptionpublic org.apache.hadoop.hive.metastore.IMetaStoreClient client()
throws org.apache.thrift.TException,
InterruptedException
org.apache.thrift.TExceptionInterruptedExceptionCopyright © 2023–2025 The Apache Software Foundation. All rights reserved.