public class HMSShim extends Object implements HiveCompatibility
Constructor and Description |
---|
HMSShim(org.apache.hadoop.hive.metastore.IMetaStoreClient client)
Constructor for HMSShim.
|
Modifier and Type | Method and Description |
---|---|
org.apache.hadoop.hive.metastore.api.Table |
getTable(String dbname,
String name)
Get table operation.
|
boolean |
tableExists(String dbname,
String name)
Test if a table exists.
|
public HMSShim(org.apache.hadoop.hive.metastore.IMetaStoreClient client)
client
- another client as delegatepublic org.apache.hadoop.hive.metastore.api.Table getTable(String dbname, String name) throws org.apache.hadoop.hive.metastore.api.MetaException, org.apache.thrift.TException, org.apache.hadoop.hive.metastore.api.NoSuchObjectException
HiveCompatibility
getTable
in interface HiveCompatibility
dbname
- database namename
- table nameorg.apache.hadoop.hive.metastore.api.MetaException
org.apache.thrift.TException
org.apache.hadoop.hive.metastore.api.NoSuchObjectException
public boolean tableExists(String dbname, String name) throws org.apache.hadoop.hive.metastore.api.MetaException, org.apache.thrift.TException, org.apache.hadoop.hive.metastore.api.NoSuchObjectException
HiveCompatibility
tableExists
in interface HiveCompatibility
dbname
- database namename
- table nameorg.apache.hadoop.hive.metastore.api.MetaException
org.apache.thrift.TException
org.apache.hadoop.hive.metastore.api.NoSuchObjectException
Copyright © 2023. All Rights Reserved.