|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IMetaStoreClient
TODO Unnecessary when the server sides for both dbstore and filestore are merged
Method Summary | |
---|---|
Partition |
add_partition(Partition partition)
Add a partition to the table. |
void |
alter_partition(String dbName,
String tblName,
Partition newPart)
updates a partition to new partition |
void |
alter_table(String defaultDatabaseName,
String tblName,
Table table)
|
Partition |
appendPartition(String tableName,
String dbName,
List<String> partVals)
|
void |
close()
|
boolean |
createDatabase(String name,
String location_uri)
|
void |
createTable(Table tbl)
|
boolean |
dropDatabase(String name)
|
boolean |
dropPartition(String db_name,
String tbl_name,
List<String> part_vals,
boolean deleteData)
|
void |
dropTable(String tableName,
boolean deleteData)
Drop the table. |
void |
dropTable(String dbname,
String tableName,
boolean deleteData,
boolean ignoreUknownTab)
Drop the table. |
List<FieldSchema> |
getFields(String db,
String tableName)
|
Partition |
getPartition(String tblName,
String dbName,
List<String> partVals)
|
List<FieldSchema> |
getSchema(String db,
String tableName)
|
Table |
getTable(String tableName)
Get a table object. |
Table |
getTable(String dbName,
String tableName)
Get a table object. |
List<String> |
getTables(String dbName,
String tablePattern)
|
List<String> |
listPartitionNames(String db_name,
String tbl_name,
short max_parts)
|
List<Partition> |
listPartitions(String db_name,
String tbl_name,
short max_parts)
|
boolean |
tableExists(String tableName)
|
Method Detail |
---|
void close()
List<String> getTables(String dbName, String tablePattern) throws MetaException, UnknownTableException, org.apache.thrift.TException, UnknownDBException
MetaException
UnknownTableException
org.apache.thrift.TException
UnknownDBException
void dropTable(String tableName, boolean deleteData) throws MetaException, UnknownTableException, org.apache.thrift.TException, NoSuchObjectException
tableName
- The table to dropdeleteData
- Should we delete the underlying data
MetaException
- Could not drop table properly.
UnknownTableException
- The table wasn't found.
org.apache.thrift.TException
- A thrift communication error occurred
NoSuchObjectException
- The table wasn't found.void dropTable(String dbname, String tableName, boolean deleteData, boolean ignoreUknownTab) throws MetaException, org.apache.thrift.TException, NoSuchObjectException
dbname
- The database for this tabletableName
- The table to drop
MetaException
- Could not drop table properly.
NoSuchObjectException
- The table wasn't found.
org.apache.thrift.TException
- A thrift communication error occurred
ExistingDependentsException
boolean tableExists(String tableName) throws MetaException, org.apache.thrift.TException, UnknownDBException
MetaException
org.apache.thrift.TException
UnknownDBException
Table getTable(String tableName) throws MetaException, org.apache.thrift.TException, NoSuchObjectException
tableName
- Name of the table to fetch.
MetaException
- Could not fetch the table
org.apache.thrift.TException
- A thrift communication error occurred
NoSuchObjectException
- In case the table wasn't found.Table getTable(String dbName, String tableName) throws MetaException, org.apache.thrift.TException, NoSuchObjectException
dbName
- The database the table is located in.tableName
- Name of the table to fetch.
MetaException
- Could not fetch the table
org.apache.thrift.TException
- A thrift communication error occurred
NoSuchObjectException
- In case the table wasn't found.Partition appendPartition(String tableName, String dbName, List<String> partVals) throws InvalidObjectException, AlreadyExistsException, MetaException, org.apache.thrift.TException
tableName
- dbName
- partVals
-
InvalidObjectException
AlreadyExistsException
MetaException
org.apache.thrift.TException
ThriftHiveMetastore.Iface.append_partition(java.lang.String, java.lang.String, java.util.List)
Partition add_partition(Partition partition) throws InvalidObjectException, AlreadyExistsException, MetaException, org.apache.thrift.TException
partition
- The partition to add
InvalidObjectException
- Could not find table to add to
AlreadyExistsException
- Partition already exists
MetaException
- Could not add partition
org.apache.thrift.TException
- Thrift exceptionPartition getPartition(String tblName, String dbName, List<String> partVals) throws MetaException, org.apache.thrift.TException
tblName
- dbName
- partVals
-
MetaException
org.apache.thrift.TException
ThriftHiveMetastore.Iface.get_partition(java.lang.String, java.lang.String, java.util.List)
List<Partition> listPartitions(String db_name, String tbl_name, short max_parts) throws NoSuchObjectException, MetaException, org.apache.thrift.TException
tbl_name
- db_name
- max_parts
-
NoSuchObjectException
MetaException
org.apache.thrift.TException
List<String> listPartitionNames(String db_name, String tbl_name, short max_parts) throws MetaException, org.apache.thrift.TException
MetaException
org.apache.thrift.TException
void createTable(Table tbl) throws AlreadyExistsException, InvalidObjectException, MetaException, NoSuchObjectException, org.apache.thrift.TException
tbl
-
AlreadyExistsException
InvalidObjectException
MetaException
NoSuchObjectException
org.apache.thrift.TException
ThriftHiveMetastore.Iface.create_table(org.apache.hadoop.hive.metastore.api.Table)
void alter_table(String defaultDatabaseName, String tblName, Table table) throws InvalidOperationException, MetaException, org.apache.thrift.TException
InvalidOperationException
MetaException
org.apache.thrift.TException
boolean createDatabase(String name, String location_uri) throws AlreadyExistsException, MetaException, org.apache.thrift.TException
AlreadyExistsException
MetaException
org.apache.thrift.TException
boolean dropDatabase(String name) throws MetaException, org.apache.thrift.TException
MetaException
org.apache.thrift.TException
boolean dropPartition(String db_name, String tbl_name, List<String> part_vals, boolean deleteData) throws NoSuchObjectException, MetaException, org.apache.thrift.TException
db_name
- tbl_name
- part_vals
- deleteData
- delete the underlying data or just delete the table in metadata
NoSuchObjectException
MetaException
org.apache.thrift.TException
ThriftHiveMetastore.Iface.drop_partition(java.lang.String, java.lang.String, java.util.List, boolean)
void alter_partition(String dbName, String tblName, Partition newPart) throws InvalidOperationException, MetaException, org.apache.thrift.TException
dbName
- database of the old partitiontblName
- table name of the old partitionnewPart
- new partition
InvalidOperationException
- if the old partition does not exist
MetaException
- if error in updating metadata
org.apache.thrift.TException
- if error in communicating with metastore serverList<FieldSchema> getFields(String db, String tableName) throws MetaException, org.apache.thrift.TException, UnknownTableException, UnknownDBException
db
- tableName
-
UnknownTableException
UnknownDBException
MetaException
org.apache.thrift.TException
ThriftHiveMetastore.Iface.get_fields(java.lang.String, java.lang.String)
List<FieldSchema> getSchema(String db, String tableName) throws MetaException, org.apache.thrift.TException, UnknownTableException, UnknownDBException
db
- tableName
-
UnknownTableException
UnknownDBException
MetaException
org.apache.thrift.TException
ThriftHiveMetastore.Iface.get_schema(java.lang.String, java.lang.String)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |