|
||||||||||
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.HiveMetaStore.HMSHandler
org.apache.hadoop.hive.service.HiveServer.HiveServerHandler
public static class HiveServer.HiveServerHandler
Handler which implements the Hive Interface This class can be used in lieu of the HiveClient class to get an embedded server
Field Summary | |
---|---|
static org.apache.commons.logging.Log |
LOG
|
Constructor Summary | |
---|---|
HiveServer.HiveServerHandler()
A constructor. |
Method Summary | |
---|---|
void |
execute(String query)
Executes a query. |
List<String> |
fetchAll()
Fetches all the rows in a result set. |
List<String> |
fetchN(int numRows)
Fetches numRows rows. |
String |
fetchOne()
Fetches the next row in a query result set. |
String |
getSchema()
Return the schema of the query result |
int |
getStatus()
Return the status of the server |
String |
getVersion()
Return the version of the server software |
Methods inherited from class org.apache.hadoop.hive.metastore.HiveMetaStore.HMSHandler |
---|
add_partition, add_partitions, alter_partitions, alter_table, append_partition, create_database, create_index, create_table, create_type, drop_database, drop_partition, drop_table, drop_type, get_database, get_databases, get_fields, get_partition_names, get_partition, get_partitions, get_table, get_tables, get_type_all, get_type, get, is_table_exists, set_partition_parameters, set_table_parameters, shutdown |
Methods inherited from class com.facebook.fb303.FacebookBase |
---|
aliveSince, deleteCounter, getCounter, getCounters, getCpuProfile, getExportedValue, getExportedValues, getLimitedReflection, getName, getOption, getOptions, getStatusDetails, incrementCounter, reinitialize, resetCounter, setOption |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.hadoop.hive.metastore.api.ThriftHiveMetastore.Iface |
---|
add_partition, alter_partitions, alter_table, append_partition, create_database, create_index, create_table, create_type, drop_database, drop_partition, drop_table, drop_type, get_database, get_databases, get_fields, get_partition_names, get_partition, get_partitions, get_table, get_tables, get_type_all, get_type |
Methods inherited from interface com.facebook.fb303.FacebookService.Iface |
---|
aliveSince, getCounter, getCounters, getLimitedReflection, getName, getOption, getOptions, getStatusDetails, reinitialize, setOption, shutdown |
Field Detail |
---|
public static final org.apache.commons.logging.Log LOG
Constructor Detail |
---|
public HiveServer.HiveServerHandler() throws MetaException
MetaException
Method Detail |
---|
public void execute(String query) throws HiveServerException, com.facebook.thrift.TException
execute
in interface ThriftHive.Iface
query
- HiveQL query to execute
HiveServerException
com.facebook.thrift.TException
public String getSchema() throws HiveServerException, com.facebook.thrift.TException
getSchema
in interface ThriftHive.Iface
HiveServerException
com.facebook.thrift.TException
public String fetchOne() throws HiveServerException, com.facebook.thrift.TException
fetchOne
in interface ThriftHive.Iface
HiveServerException
com.facebook.thrift.TException
public List<String> fetchN(int numRows) throws HiveServerException, com.facebook.thrift.TException
fetchN
in interface ThriftHive.Iface
numRows
- Number of rows to fetch.
HiveServerException
- Invalid value for numRows (numRows < 0)
com.facebook.thrift.TException
public List<String> fetchAll() throws HiveServerException, com.facebook.thrift.TException
fetchAll
in interface ThriftHive.Iface
HiveServerException
com.facebook.thrift.TException
public int getStatus()
getStatus
in interface com.facebook.fb303.FacebookService.Iface
getStatus
in class HiveMetaStore.HMSHandler
public String getVersion()
getVersion
in interface com.facebook.fb303.FacebookService.Iface
getVersion
in class HiveMetaStore.HMSHandler
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |