HBASE-5172 HTableInterface should extend java.io.Closeable
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1229696 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
530c1c0e67
commit
9cbf9e9f4e
|
@ -99,7 +99,7 @@ import org.apache.hadoop.hbase.util.Writables;
|
||||||
* @see HConnection
|
* @see HConnection
|
||||||
* @see HConnectionManager
|
* @see HConnectionManager
|
||||||
*/
|
*/
|
||||||
public class HTable implements HTableInterface, Closeable {
|
public class HTable implements HTableInterface {
|
||||||
private static final Log LOG = LogFactory.getLog(HTable.class);
|
private static final Log LOG = LogFactory.getLog(HTable.class);
|
||||||
private HConnection connection;
|
private HConnection connection;
|
||||||
private final byte [] tableName;
|
private final byte [] tableName;
|
||||||
|
|
|
@ -19,6 +19,7 @@
|
||||||
*/
|
*/
|
||||||
package org.apache.hadoop.hbase.client;
|
package org.apache.hadoop.hbase.client;
|
||||||
|
|
||||||
|
import java.io.Closeable;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
@ -35,7 +36,7 @@ import java.util.Map;
|
||||||
*
|
*
|
||||||
* @since 0.21.0
|
* @since 0.21.0
|
||||||
*/
|
*/
|
||||||
public interface HTableInterface {
|
public interface HTableInterface extends Closeable {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets the name of this table.
|
* Gets the name of this table.
|
||||||
|
|
Loading…
Reference in New Issue