|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.hive.hwi.HWISessionItem
public class HWISessionItem
HWISessionItem can be viewed as a wrapper for a Hive shell. With it the user has a session on the web server rather then in a console window.
Nested Class Summary | |
---|---|
static class |
HWISessionItem.WebSessionItemStatus
Represents the state a session item can be in. |
Field Summary | |
---|---|
protected static org.apache.commons.logging.Log |
l4j
|
Constructor Summary | |
---|---|
protected |
HWISessionItem()
Creates an instance of WebSessionItem, sets status to NEW. |
Method Summary | |
---|---|
void |
clientKill()
|
void |
clientRenew()
This method clears the private member variables. |
void |
clientStart()
HWISessionItem is a Runnable instance. |
int |
compareTo(HWISessionItem other)
|
boolean |
equals(Object other)
Uses the sessionName property to compare to sessions |
HWIAuth |
getAuth()
|
String |
getErrorFile()
Currently unused |
HiveHistoryViewer |
getHistoryViewer()
|
String |
getHiveConfVar(HiveConf.ConfVars wanted)
Helper function to get configuration variables |
String |
getQuery()
The query executed by Hive |
int |
getQueryRet()
Used to determine the status of a query, possibly why it failed |
String |
getResultFile()
|
String |
getSessionName()
The session name is an identifier to recognize the session |
protected SetProcessor |
getSp()
|
protected CliSessionState |
getSs()
|
boolean |
getSSIsSilent()
This is a chained call to SessionState.getIsSilent() |
HWISessionItem.WebSessionItemStatus |
getStatus()
Used to represent to the user and other components what state the HWISessionItem is in. |
protected void |
itemInit()
This is the initialization process that is carried out for each SessionItem. |
protected void |
killIt()
This is a callback style function used by the HiveSessionManager. |
void |
run()
|
void |
runQuery()
This method calls the qp.run() method, writes the output to the result file, when finished the status will be QUERY_COMPLETE. |
int |
runSetProcessorQuery(String query)
Set processor queries block for only a short amount of time. |
protected void |
setAuth(HWIAuth auth)
|
void |
setErrorFile(String errorFile)
Currently unused |
protected void |
setQp(Driver qp)
|
void |
setQuery(String query)
Use this function to set the query that Hive will run. |
protected void |
setQueryRet(int queryRet)
|
void |
setResultFile(String resultFile)
|
protected void |
setSessionName(String sessionName)
|
protected void |
setSp(SetProcessor sp)
|
protected void |
setSs(CliSessionState ss)
|
void |
setSSIsSilent(boolean silent)
This is a chained call to SessionState.setIsSilent(). |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final org.apache.commons.logging.Log l4j
Constructor Detail |
---|
protected HWISessionItem()
Method Detail |
---|
protected void itemInit()
public int runSetProcessorQuery(String query)
query
- This is a query in the form of SET THIS=THAT
public void clientStart() throws HWIException
HWIException
public void clientKill() throws HWIException
HWIException
public void clientRenew() throws HWIException
HWIException
public void setSSIsSilent(boolean silent) throws HWIException
HWIException
public boolean getSSIsSilent() throws HWIException
HWIException
protected void killIt()
public String getHiveConfVar(HiveConf.ConfVars wanted) throws HWIException
wanted
- a ConfVar
HWIException
public void run()
run
in interface Runnable
public void runQuery()
public int compareTo(HWISessionItem other)
compareTo
in interface Comparable<HWISessionItem>
public HiveHistoryViewer getHistoryViewer() throws HWIException
HWIException
public boolean equals(Object other)
equals
in class Object
protected void setQp(Driver qp)
public String getQuery()
public void setQuery(String query)
query
- A query in Hive Query Languagepublic int getQueryRet()
protected void setQueryRet(int queryRet)
public String getResultFile()
public void setResultFile(String resultFile)
public String getSessionName()
protected void setSessionName(String sessionName)
protected SetProcessor getSp()
protected void setSp(SetProcessor sp)
protected CliSessionState getSs()
protected void setSs(CliSessionState ss)
public HWISessionItem.WebSessionItemStatus getStatus()
public String getErrorFile()
public void setErrorFile(String errorFile)
errorFile
- the full path to the file for results.public HWIAuth getAuth()
protected void setAuth(HWIAuth auth)
auth
- the auth to set
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |