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) |
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 addPartition(LinkedHashMap<String,String> partitionSpec) throws Exception
addPartition
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.