@InterfaceAudience.Public @InterfaceStability.Stable public class HTableFactory extends Object implements HTableInterfaceFactory
Constructor and Description |
---|
HTableFactory() |
Modifier and Type | Method and Description |
---|---|
HTableInterface |
createHTableInterface(org.apache.hadoop.conf.Configuration config,
byte[] tableName)
Creates a new HTableInterface.
|
void |
releaseHTableInterface(HTableInterface table)
Release the HTable resource represented by the table.
|
public HTableInterface createHTableInterface(org.apache.hadoop.conf.Configuration config, byte[] tableName)
HTableInterfaceFactory
createHTableInterface
in interface HTableInterfaceFactory
config
- HBaseConfiguration instance.tableName
- name of the HBase table.public void releaseHTableInterface(HTableInterface table) throws IOException
HTableInterfaceFactory
releaseHTableInterface
in interface HTableInterfaceFactory
IOException
Copyright © 2014 The Apache Software Foundation. All Rights Reserved.