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 MetastoreClient
Exception
public void addPartitions(List<LinkedHashMap<String,String>> partitions) throws Exception
addPartitions
in interface MetastoreClient
Exception
public void alterPartition(Partition partition) throws Exception
alterPartition
in interface MetastoreClient
Exception
public void dropPartition(LinkedHashMap<String,String> partitionSpec) throws Exception
dropPartition
in interface MetastoreClient
Exception
public void dropPartitions(List<LinkedHashMap<String,String>> partitions) throws Exception
dropPartitions
in interface MetastoreClient
Exception
public void markPartitionDone(LinkedHashMap<String,String> partitionSpec) throws Exception
markPartitionDone
in interface MetastoreClient
Exception
public void close() throws Exception
close
in interface AutoCloseable
Exception
public org.apache.hadoop.hive.metastore.IMetaStoreClient client() throws org.apache.thrift.TException, InterruptedException
org.apache.thrift.TException
InterruptedException
Copyright © 2023–2025 The Apache Software Foundation. All rights reserved.