This project has retired. For details please refer to its Attic page.
EmbeddedThriftConnection (Lens 2.0.1-beta-incubating API)

org.apache.lens.driver.hive
Class EmbeddedThriftConnection

java.lang.Object
  extended by org.apache.lens.driver.hive.EmbeddedThriftConnection
All Implemented Interfaces:
Closeable, ThriftConnection

public class EmbeddedThriftConnection
extends Object
implements ThriftConnection

The Class EmbeddedThriftConnection.


Constructor Summary
EmbeddedThriftConnection()
           
 
Method Summary
 void close()
           
 org.apache.hive.service.cli.thrift.ThriftCLIServiceClient getClient(org.apache.hadoop.hive.conf.HiveConf conf)
          Gets the client.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EmbeddedThriftConnection

public EmbeddedThriftConnection()
Method Detail

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.