|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.hive.ql.session.SessionState
org.apache.hadoop.hive.cli.CliSessionState
public class CliSessionState
CliSessionState.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.apache.hadoop.hive.ql.session.SessionState |
---|
SessionState.LogHelper, SessionState.ResourceHook, SessionState.ResourceType |
Field Summary | |
---|---|
Properties |
cmdProperties
properties set from -hiveconf via cmdline. |
String |
database
-database option if any that the session has been invoked with. |
String |
execString
-e option if any that the session has been invoked with. |
String |
fileName
-f option if any that the session has been invoked with. |
protected String |
host
host name and port number of remote Hive server |
List<String> |
initFiles
-i option if any that the session has been invoked with. |
protected int |
port
|
Fields inherited from class org.apache.hadoop.hive.ql.session.SessionState |
---|
childErr, childOut, conf, err, hiveHist, in, info, isSilent, isVerbose, out, tmpOutputFile |
Constructor Summary | |
---|---|
CliSessionState()
|
|
CliSessionState(HiveConf conf)
|
Method Summary | |
---|---|
void |
close()
|
void |
connect()
Connect to Hive Server |
HiveClient |
getClient()
|
String |
getCurrentDbName()
Return the name of the current database |
String |
getHost()
|
int |
getPort()
|
boolean |
isRemoteMode()
|
void |
setHost(String host)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public String database
public String execString
public String fileName
public Properties cmdProperties
public List<String> initFiles
protected String host
protected int port
Constructor Detail |
---|
public CliSessionState()
public CliSessionState(HiveConf conf)
Method Detail |
---|
public void connect() throws org.apache.thrift.transport.TTransportException
org.apache.thrift.transport.TTransportException
public void setHost(String host)
public String getHost()
public int getPort()
public void close()
public boolean isRemoteMode()
public HiveClient getClient()
public String getCurrentDbName()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |