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(BinaryRow partition) |
void |
addPartition(LinkedHashMap<String,String> partitionSpec) |
void |
addPartitions(List<BinaryRow> partitions) |
void |
addPartitionsSpec(List<LinkedHashMap<String,String>> partitionSpecsList) |
void |
alterPartition(LinkedHashMap<String,String> partitionSpec,
Map<String,String> parameters,
long modifyTime) |
org.apache.hadoop.hive.metastore.IMetaStoreClient |
client() |
void |
close() |
void |
deletePartition(LinkedHashMap<String,String> partitionSpec) |
void |
markDone(LinkedHashMap<String,String> partitionSpec) |
public void addPartition(BinaryRow partition) throws Exception
addPartition
in interface MetastoreClient
Exception
public void addPartitions(List<BinaryRow> partitions) throws Exception
addPartitions
in interface MetastoreClient
Exception
public void addPartition(LinkedHashMap<String,String> partitionSpec) throws Exception
addPartition
in interface MetastoreClient
Exception
public void addPartitionsSpec(List<LinkedHashMap<String,String>> partitionSpecsList) throws Exception
addPartitionsSpec
in interface MetastoreClient
Exception
public void alterPartition(LinkedHashMap<String,String> partitionSpec, Map<String,String> parameters, long modifyTime) throws Exception
alterPartition
in interface MetastoreClient
Exception
public void deletePartition(LinkedHashMap<String,String> partitionSpec) throws Exception
deletePartition
in interface MetastoreClient
Exception
public void markDone(LinkedHashMap<String,String> partitionSpec) throws Exception
markDone
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–2024 The Apache Software Foundation. All rights reserved.