org.apache.hadoop.hbase.client
Class HConnectable<T>

java.lang.Object
  extended by org.apache.hadoop.hbase.client.HConnectable<T>
Type Parameters:
T - the return type of the connect(HConnection) method.

@InterfaceAudience.Private
public abstract class HConnectable<T>
extends Object

This class makes it convenient for one to execute a command in the context of a HConnection instance based on the given Configuration.

If you find yourself wanting to use a HConnection for a relatively short duration of time, and do not want to deal with the hassle of creating and cleaning up that resource, then you should consider using this convenience class.


Field Summary
 org.apache.hadoop.conf.Configuration conf
           
 
Constructor Summary
protected HConnectable(org.apache.hadoop.conf.Configuration conf)
           
 
Method Summary
abstract  T connect(HConnection connection)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

conf

public org.apache.hadoop.conf.Configuration conf
Constructor Detail

HConnectable

protected HConnectable(org.apache.hadoop.conf.Configuration conf)
Method Detail

connect

public abstract T connect(HConnection connection)
                   throws IOException
Throws:
IOException


Copyright © 2013 The Apache Software Foundation. All Rights Reserved.