T - the return type of the connect(HConnection)
method.@InterfaceAudience.Private public abstract class HConnectable<T> extends java.lang.Object
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.
| Modifier and Type | Field and Description |
|---|---|
Configuration |
conf |
| Modifier | Constructor and Description |
|---|---|
protected |
HConnectable(Configuration conf) |
| Modifier and Type | Method and Description |
|---|---|
abstract T |
connect(HConnection connection) |
public abstract T connect(HConnection connection) throws java.io.IOException
java.io.IOException