This project has retired. For details please refer to its Attic page.
EmbeddedThriftConnection (Lens 2.1.0-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()
          Gets the client.
 void init(org.apache.hadoop.hive.conf.HiveConf conf, String user)
          Initializes connection with conf.
 
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()
                                                                    throws LensException
Description copied from interface: ThriftConnection
Gets the client.

Specified by:
getClient in interface ThriftConnection
Returns:
the client
Throws:
LensException - the lens exception

close

public void close()
           throws IOException
Specified by:
close in interface Closeable
Throws:
IOException

init

public void init(org.apache.hadoop.hive.conf.HiveConf conf,
                 String user)
Description copied from interface: ThriftConnection
Initializes connection with conf.

Specified by:
init in interface ThriftConnection


Copyright © 2014–2015 Apache Software Foundation. All rights reserved.