hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From apurt...@apache.org
Subject [2/5] hbase git commit: HBASE-12995 Document that HConnection#getTable methods do not check table existence since 0.98.1
Date Tue, 03 Mar 2015 01:03:45 GMT
HBASE-12995 Document that HConnection#getTable methods do not check table existence since 0.98.1


Project: http://git-wip-us.apache.org/repos/asf/hbase/repo
Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/0c63eeb5
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/0c63eeb5
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/0c63eeb5

Branch: refs/heads/master
Commit: 0c63eeb5115e7ec538b2d747b8735cb37bae2e69
Parents: 74e36f8
Author: Andrew Purtell <apurtell@apache.org>
Authored: Mon Mar 2 16:58:45 2015 -0800
Committer: Andrew Purtell <apurtell@apache.org>
Committed: Mon Mar 2 16:58:45 2015 -0800

----------------------------------------------------------------------
 .../org/apache/hadoop/hbase/client/Connection.java     | 13 ++++++++++---
 1 file changed, 10 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/0c63eeb5/hbase-client/src/main/java/org/apache/hadoop/hbase/client/Connection.java
----------------------------------------------------------------------
diff --git a/hbase-client/src/main/java/org/apache/hadoop/hbase/client/Connection.java b/hbase-client/src/main/java/org/apache/hadoop/hbase/client/Connection.java
index 72f870f..dab4905 100644
--- a/hbase-client/src/main/java/org/apache/hadoop/hbase/client/Connection.java
+++ b/hbase-client/src/main/java/org/apache/hadoop/hbase/client/Connection.java
@@ -74,10 +74,13 @@ public interface Connection extends Abortable, Closeable {
    * The returned Table is not thread safe, a new instance should be created for each using
thread.
    * This is a lightweight operation, pooling or caching of the returned Table
    * is neither required nor desired.
-   * <br>
+   * <p>
    * The caller is responsible for calling {@link Table#close()} on the returned
    * table instance.
-   *
+   * <p>
+   * Since 0.98.1 this method no longer checks table existence. An exception
+   * will be thrown if the table does not exist only when the first operation is
+   * attempted.
    * @param tableName the name of the table
    * @return a Table to use for interactions with this table
    */
@@ -88,9 +91,13 @@ public interface Connection extends Abortable, Closeable {
    * The returned Table is not thread safe, a new instance should be created for each using
thread.
    * This is a lightweight operation, pooling or caching of the returned Table
    * is neither required nor desired.
-   * <br>
+   * <p>
    * The caller is responsible for calling {@link Table#close()} on the returned
    * table instance.
+   * <p>
+   * Since 0.98.1 this method no longer checks table existence. An exception
+   * will be thrown if the table does not exist only when the first operation is
+   * attempted.
    *
    * @param tableName the name of the table
    * @param pool The thread pool to use for batch operations, null to use a default pool.


Mime
View raw message