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.
限定符和类型 | 字段和说明 |
---|---|
org.apache.hadoop.conf.Configuration |
conf |
限定符 | 构造器和说明 |
---|---|
protected |
HConnectable(org.apache.hadoop.conf.Configuration conf) |
public abstract T connect(HConnection connection) throws IOException
IOException
Copyright © 2007–2022 The Apache Software Foundation. All rights reserved.