|
||||||||||
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 cmd)
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. |
HiveClusterStatus |
getClusterStatus()
Return the status information about the Map-Reduce cluster |
org.apache.hadoop.hive.ql.plan.api.QueryPlan |
getQueryPlan()
|
Schema |
getSchema()
Return the Hive schema of the query result |
int |
getStatus()
Return the status of the server |
Schema |
getThriftSchema()
Return the Thrift schema of the query result |
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_partition, alter_table, append_partition, create_database, create_index, create_table, create_type, drop_database, drop_partition, drop_table, drop_type, get_config_value, get_database, get_databases, get_fields, get_partition_names, get_partition, get_partitions, get_schema, get_table, get_tables, get_type_all, get_type, get, getCpuProfile, is_table_exists, set_table_parameters, shutdown |
Methods inherited from class com.facebook.fb303.FacebookBase |
---|
aliveSince, deleteCounter, getCounter, getCounters, getCpuProfile, 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_partition, alter_table, append_partition, create_database, create_table, create_type, drop_database, drop_partition, drop_table, drop_type, get_config_value, get_database, get_databases, get_fields, get_partition_names, get_partition, get_partitions, get_schema, get_table, get_tables, get_type_all, get_type |
Methods inherited from interface com.facebook.fb303.FacebookService.Iface |
---|
aliveSince, getCounter, getCounters, getCpuProfile, 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 cmd) throws HiveServerException, org.apache.thrift.TException
execute
in interface ThriftHive.Iface
cmd
- HiveQL query to execute
HiveServerException
org.apache.thrift.TException
public HiveClusterStatus getClusterStatus() throws HiveServerException, org.apache.thrift.TException
getClusterStatus
in interface ThriftHive.Iface
HiveServerException
org.apache.thrift.TException
public Schema getSchema() throws HiveServerException, org.apache.thrift.TException
getSchema
in interface ThriftHive.Iface
HiveServerException
org.apache.thrift.TException
public Schema getThriftSchema() throws HiveServerException, org.apache.thrift.TException
getThriftSchema
in interface ThriftHive.Iface
HiveServerException
org.apache.thrift.TException
public String fetchOne() throws HiveServerException, org.apache.thrift.TException
fetchOne
in interface ThriftHive.Iface
HiveServerException
org.apache.thrift.TException
public List<String> fetchN(int numRows) throws HiveServerException, org.apache.thrift.TException
fetchN
in interface ThriftHive.Iface
numRows
- Number of rows to fetch.
HiveServerException
- Invalid value for numRows (numRows < 0)
org.apache.thrift.TException
public List<String> fetchAll() throws HiveServerException, org.apache.thrift.TException
fetchAll
in interface ThriftHive.Iface
HiveServerException
org.apache.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
public org.apache.hadoop.hive.ql.plan.api.QueryPlan getQueryPlan() throws HiveServerException, org.apache.thrift.TException
getQueryPlan
in interface ThriftHive.Iface
HiveServerException
org.apache.thrift.TException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |