T
- the return type of the connect(HConnection)
method.@InterfaceAudience.Private public abstract class HConnectable<T> extends 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) |
public abstract T connect(HConnection connection) throws IOException
IOException