public class EmbeddedThriftConnection extends Object implements ThriftConnection
| Modifier and Type | Class and Description |
|---|---|
static class |
EmbeddedThriftConnection.EmbeddedThriftCLIServiceClient |
static class |
EmbeddedThriftConnection.SessionStateContext |
| Constructor and Description |
|---|
EmbeddedThriftConnection() |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
org.apache.hive.service.cli.thrift.ThriftCLIServiceClient |
getClient()
Gets the client.
|
void |
init(org.apache.hadoop.hive.conf.HiveConf conf,
String user)
Initializes connection with conf.
|
public org.apache.hive.service.cli.thrift.ThriftCLIServiceClient getClient()
throws LensException
ThriftConnectiongetClient in interface ThriftConnectionLensException - the lens exceptionpublic void close()
close in interface Closeableclose in interface AutoCloseablepublic void init(org.apache.hadoop.hive.conf.HiveConf conf,
String user)
ThriftConnectioninit in interface ThriftConnectionCopyright © 2014–2018 Apache Software Foundation. All rights reserved.