|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.facebook.fb303.FacebookBase
org.apache.hadoop.hive.metastore.MetaStoreServer.ThriftMetaStoreHandler
public static class MetaStoreServer.ThriftMetaStoreHandler
Field Summary | |
---|---|
static org.apache.commons.logging.Log |
LOG
|
Constructor Summary | |
---|---|
MetaStoreServer.ThriftMetaStoreHandler(String name)
ThriftMetaStoreHandler Constructor for the MetaStore glue with Thrift Class. |
|
MetaStoreServer.ThriftMetaStoreHandler(String name,
org.apache.hadoop.conf.Configuration configuration)
|
Method Summary | |
---|---|
void |
alter_table(String dbName,
String tableName,
Map<String,String> schema)
alter_table For a columnsetSerDe table, add column names to it |
ArrayList<String> |
cat(String dbName,
String tableName,
String partition,
int num)
|
void |
create_table(String dbName,
String tableName,
Map<String,String> schema)
create_table Create names columns for a columnset type table |
void |
drop_table(String dbName,
String tableName)
drop drop a table |
List<String> |
get_dbs()
get_dbs |
ArrayList<FieldSchema> |
get_fields(String db,
String table_name)
|
ArrayList<String> |
get_partitions(String dbName,
String tableName)
getPartitions return a table's partitions |
AbstractMap<String,String> |
get_schema(String tableName)
get_schema Gets the (opaque) schema which is currently represented as a key=>value map. |
ArrayList<String> |
get_tables(String dbName,
String pattern)
|
int |
getStatus()
getStatus |
String |
getVersion()
getVersion |
void |
setOption(String key,
String val)
|
void |
shutdown()
shutdown cleanly closes everything and exit. |
boolean |
table_exists(String dbName,
String tableName)
table_exists check if the table's schema exists in the metastore |
void |
truncate_table(String dbName,
String tableName,
String partition)
truncate drop a table |
Methods inherited from class com.facebook.fb303.FacebookBase |
---|
aliveSince, deleteCounter, getCounter, getCounters, getCpuProfile, getExportedValue, getExportedValues, getLimitedReflection, getName, getOption, getOptions, getStatusDetails, incrementCounter, reinitialize, resetCounter |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.facebook.fb303.FacebookService.Iface |
---|
aliveSince, getCounter, getCounters, getLimitedReflection, getName, getOption, getOptions, getStatusDetails, reinitialize |
Field Detail |
---|
public static final org.apache.commons.logging.Log LOG
Constructor Detail |
---|
public MetaStoreServer.ThriftMetaStoreHandler(String name)
name
- - the name of this handlerpublic MetaStoreServer.ThriftMetaStoreHandler(String name, org.apache.hadoop.conf.Configuration configuration)
Method Detail |
---|
public void setOption(String key, String val)
setOption
in interface com.facebook.fb303.FacebookService.Iface
setOption
in class com.facebook.fb303.FacebookBase
public int getStatus()
getStatus
in interface com.facebook.fb303.FacebookService.Iface
getStatus
in class com.facebook.fb303.FacebookBase
public String getVersion()
getVersion
in interface com.facebook.fb303.FacebookService.Iface
public void shutdown()
shutdown
in interface com.facebook.fb303.FacebookService.Iface
shutdown
in class com.facebook.fb303.FacebookBase
public ArrayList<String> get_tables(String dbName, String pattern) throws com.facebook.thrift.TException, MetaException, UnknownDBException
get_tables
in interface ThriftMetaStore.Iface
com.facebook.thrift.TException
MetaException
UnknownDBException
public ArrayList<String> cat(String dbName, String tableName, String partition, int num) throws com.facebook.thrift.TException, MetaException, UnknownDBException, UnknownTableException
cat
in interface ThriftMetaStore.Iface
com.facebook.thrift.TException
MetaException
UnknownDBException
UnknownTableException
public List<String> get_dbs() throws com.facebook.thrift.TException, MetaException
get_dbs
in interface ThriftMetaStore.Iface
com.facebook.thrift.TException
- if Thrift problem.
MetaException
- if internal meta store problempublic ArrayList<String> get_partitions(String dbName, String tableName) throws com.facebook.thrift.TException, MetaException, UnknownTableException, UnknownDBException
get_partitions
in interface ThriftMetaStore.Iface
dbName
- the database nametableName
- a valid table name
com.facebook.thrift.TException
- if thrift problem
MetaException
- if internal problem or bad input
UnknownTableException
- if we don't know about this table.
UnknownDBException
public boolean table_exists(String dbName, String tableName) throws com.facebook.thrift.TException, MetaException, UnknownDBException
table_exists
in interface ThriftMetaStore.Iface
tableName
- - a valid table name
com.facebook.thrift.TException
- if thrift problem
MetaException
- if internal problem or bad input
UnknownDBException
public void alter_table(String dbName, String tableName, Map<String,String> schema) throws com.facebook.thrift.TException, MetaException, UnknownTableException, UnknownDBException
alter_table
in interface ThriftMetaStore.Iface
dbName
- the databasetableName
- a valid existing table nameschema
- The schema information for the table
com.facebook.thrift.TException
- if thrift problem
MetaException
- if internal problem or bad input
UnknownTableException
- if table does not exist already
UnknownDBException
public void create_table(String dbName, String tableName, Map<String,String> schema) throws com.facebook.thrift.TException, MetaException, UnknownDBException
create_table
in interface ThriftMetaStore.Iface
dbName
- a valid database nametableName
- - a valid table name
com.facebook.thrift.TException
- if thrift problem
MetaException
- if internal problem or bad input
UnknownDBException
public ArrayList<FieldSchema> get_fields(String db, String table_name) throws MetaException, UnknownTableException, UnknownDBException
get_fields
in interface ThriftMetaStore.Iface
MetaException
UnknownTableException
UnknownDBException
public void drop_table(String dbName, String tableName) throws com.facebook.thrift.TException, MetaException, UnknownTableException, UnknownDBException
drop_table
in interface ThriftMetaStore.Iface
dbName
- the name of a databasetableName
- a valid existing table name
com.facebook.thrift.TException
- if thrift problem
MetaException
- if internal problem or bad input
UnknownTableException
- if table does not exist already
UnknownDBException
public void truncate_table(String dbName, String tableName, String partition) throws com.facebook.thrift.TException, MetaException, UnknownTableException, UnknownDBException
truncate_table
in interface ThriftMetaStore.Iface
dbName
- a valid database nametableName
- a valid existing table name
com.facebook.thrift.TException
- if thrift problem
MetaException
- if internal problem or bad input
UnknownTableException
- if table does not exist already
UnknownDBException
public AbstractMap<String,String> get_schema(String tableName) throws MetaException, UnknownTableException, UnknownDBException
get_schema
in interface ThriftMetaStore.Iface
tableName
- - the name of the table
MetaException
- if internal problem
UnknownTableException
- if the table doesn't exist
UnknownDBException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |