public class HMSShim extends java.lang.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(java.lang.String dbname,
java.lang.String name)
Get table operation.
|
boolean |
tableExists(java.lang.String dbname,
java.lang.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(java.lang.String dbname,
java.lang.String name)
throws org.apache.hadoop.hive.metastore.api.MetaException,
org.apache.thrift.TException,
org.apache.hadoop.hive.metastore.api.NoSuchObjectException
HiveCompatibilitygetTable in interface HiveCompatibilitydbname - database namename - table nameorg.apache.hadoop.hive.metastore.api.MetaExceptionorg.apache.thrift.TExceptionorg.apache.hadoop.hive.metastore.api.NoSuchObjectExceptionpublic boolean tableExists(java.lang.String dbname,
java.lang.String name)
throws org.apache.hadoop.hive.metastore.api.MetaException,
org.apache.thrift.TException,
org.apache.hadoop.hive.metastore.api.NoSuchObjectException
HiveCompatibilitytableExists in interface HiveCompatibilitydbname - database namename - table nameorg.apache.hadoop.hive.metastore.api.MetaExceptionorg.apache.thrift.TExceptionorg.apache.hadoop.hive.metastore.api.NoSuchObjectExceptionCopyright © 2021. All Rights Reserved.