|
||||||||||
| 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
|
| Fields inherited from class org.apache.hadoop.hive.metastore.HiveMetaStore.HMSHandler |
|---|
AUDIT_FORMAT, auditLog |
| Constructor Summary | |
|---|---|
HiveServer.HiveServerHandler()
Construct a new handler. |
|
HiveServer.HiveServerHandler(HiveConf conf)
Construct a new handler with the specified hive configuration. |
|
| Method Summary | |
|---|---|
void |
clean()
Should be called by the client at the end of a session. |
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. |
QueryPlan |
getQueryPlan()
|
Schema |
getSchema()
Return the Hive schema of the query result. |
com.facebook.fb303.fb_status |
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 com.facebook.fb303.FacebookBase |
|---|
aliveSince, deleteCounter, getCounter, getCpuProfile, getName, getOption, getOptions, getStatusDetails, incrementCounter, incrementCounter, reinitialize, resetCounter, setCounter, setOption |
| 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, 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 - unable to create metastore
public HiveServer.HiveServerHandler(HiveConf conf)
throws MetaException
conf - caller specified hive configuration
MetaException - unable to create metastore| Method Detail |
|---|
public void execute(String cmd)
throws HiveServerException,
org.apache.thrift.TException
execute in interface ThriftHive.Ifacecmd - HiveQL query to execute
HiveServerException
org.apache.thrift.TExceptionpublic void clean()
clean in interface ThriftHive.Iface
public HiveClusterStatus getClusterStatus()
throws HiveServerException,
org.apache.thrift.TException
getClusterStatus in interface ThriftHive.IfaceHiveServerException
org.apache.thrift.TException
public Schema getSchema()
throws HiveServerException,
org.apache.thrift.TException
getSchema in interface ThriftHive.IfaceHiveServerException
org.apache.thrift.TException
public Schema getThriftSchema()
throws HiveServerException,
org.apache.thrift.TException
getThriftSchema in interface ThriftHive.IfaceHiveServerException
org.apache.thrift.TException
public String fetchOne()
throws HiveServerException,
org.apache.thrift.TException
fetchOne in interface ThriftHive.IfaceHiveServerException
org.apache.thrift.TException
public List<String> fetchN(int numRows)
throws HiveServerException,
org.apache.thrift.TException
fetchN in interface ThriftHive.IfacenumRows - 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.IfaceHiveServerException
org.apache.thrift.TExceptionpublic com.facebook.fb303.fb_status getStatus()
getStatus in interface com.facebook.fb303.FacebookService.IfacegetStatus in class HiveMetaStore.HMSHandlerpublic String getVersion()
getVersion in interface com.facebook.fb303.FacebookService.IfacegetVersion in class HiveMetaStore.HMSHandler
public QueryPlan getQueryPlan()
throws HiveServerException,
org.apache.thrift.TException
getQueryPlan in interface ThriftHive.IfaceHiveServerException
org.apache.thrift.TException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||