org.apache.hadoop.hbase.client
Class HTableFactory
java.lang.Object
org.apache.hadoop.hbase.client.HTableFactory
- All Implemented Interfaces:
- HTableInterfaceFactory
@InterfaceAudience.Public
@InterfaceStability.Stable
public class HTableFactory
- extends Object
- implements HTableInterfaceFactory
Factory for creating HTable instances.
- Since:
- 0.21.0
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HTableFactory
public HTableFactory()
createHTableInterface
public HTableInterface createHTableInterface(org.apache.hadoop.conf.Configuration config,
byte[] tableName)
- Description copied from interface:
HTableInterfaceFactory
- Creates a new HTableInterface.
- Specified by:
createHTableInterface
in interface HTableInterfaceFactory
- Parameters:
config
- HBaseConfiguration instance.tableName
- name of the HBase table.
- Returns:
- HTableInterface instance.
releaseHTableInterface
public void releaseHTableInterface(HTableInterface table)
throws IOException
- Description copied from interface:
HTableInterfaceFactory
- Release the HTable resource represented by the table.
- Specified by:
releaseHTableInterface
in interface HTableInterfaceFactory
- Throws:
IOException
Copyright © 2013 The Apache Software Foundation. All Rights Reserved.