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
ThriftConnection
getClient
in interface ThriftConnection
LensException
- the lens exceptionpublic void close()
close
in interface Closeable
close
in interface AutoCloseable
public void init(org.apache.hadoop.hive.conf.HiveConf conf, String user)
ThriftConnection
init
in interface ThriftConnection
Copyright © 2014–2018 Apache Software Foundation. All rights reserved.