org.apache.lens.driver.hive
Class EmbeddedThriftConnection
java.lang.Object
org.apache.lens.driver.hive.EmbeddedThriftConnection
- All Implemented Interfaces:
- Closeable, ThriftConnection
public class EmbeddedThriftConnection
- extends Object
- implements ThriftConnection
The Class EmbeddedThriftConnection.
Method Summary |
void |
close()
|
org.apache.hive.service.cli.thrift.ThriftCLIServiceClient |
getClient(org.apache.hadoop.hive.conf.HiveConf conf)
Gets the client. |
EmbeddedThriftConnection
public EmbeddedThriftConnection()
getClient
public org.apache.hive.service.cli.thrift.ThriftCLIServiceClient getClient(org.apache.hadoop.hive.conf.HiveConf conf)
throws LensException
- Description copied from interface:
ThriftConnection
- Gets the client.
- Specified by:
getClient
in interface ThriftConnection
- Parameters:
conf
- the conf
- Returns:
- the client
- Throws:
LensException
- the lens exception
close
public void close()
throws IOException
- Specified by:
close
in interface Closeable
- Throws:
IOException
Copyright © 2014–2015 Apache Software Foundation. All rights reserved.