hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From st...@apache.org
Subject svn commit: r1552152 - in /hbase/branches/0.98: hbase-client/src/main/java/org/apache/hadoop/hbase/client/ hbase-server/src/main/java/org/apache/hadoop/hbase/coprocessor/
Date Wed, 18 Dec 2013 23:02:45 GMT
Author: stack
Date: Wed Dec 18 23:02:44 2013
New Revision: 1552152

URL: http://svn.apache.org/r1552152
Log:
HBASE-8112 Deprecate HTable#batch(final List<? extends Row>)

Modified:
    hbase/branches/0.98/hbase-client/src/main/java/org/apache/hadoop/hbase/client/HTable.java
    hbase/branches/0.98/hbase-client/src/main/java/org/apache/hadoop/hbase/client/HTableInterface.java
    hbase/branches/0.98/hbase-client/src/main/java/org/apache/hadoop/hbase/client/HTablePool.java
    hbase/branches/0.98/hbase-server/src/main/java/org/apache/hadoop/hbase/coprocessor/CoprocessorHost.java

Modified: hbase/branches/0.98/hbase-client/src/main/java/org/apache/hadoop/hbase/client/HTable.java
URL: http://svn.apache.org/viewvc/hbase/branches/0.98/hbase-client/src/main/java/org/apache/hadoop/hbase/client/HTable.java?rev=1552152&r1=1552151&r2=1552152&view=diff
==============================================================================
--- hbase/branches/0.98/hbase-client/src/main/java/org/apache/hadoop/hbase/client/HTable.java
(original)
+++ hbase/branches/0.98/hbase-client/src/main/java/org/apache/hadoop/hbase/client/HTable.java
Wed Dec 18 23:02:44 2013
@@ -784,18 +784,29 @@ public class HTable implements HTableInt
     }
   }
 
+  /**
+   * {@inheritDoc}
+   */
   @Override
   public void batch(final List<?extends Row> actions, final Object[] results)
       throws InterruptedException, IOException {
     batchCallback(actions, results, null);
   }
 
+  /**
+   * {@inheritDoc}
+   * @deprecated If any exception is thrown by one of the actions, there is no way to
+   * retrieve the partially executed results. Use {@link #batch(List, Object[])} instead.
+   */
   @Override
   public Object[] batch(final List<? extends Row> actions)
      throws InterruptedException, IOException {
     return batchCallback(actions, null);
   }
 
+  /**
+   * {@inheritDoc}
+   */
   @Override
   public <R> void batchCallback(
       final List<? extends Row> actions, final Object[] results, final Batch.Callback<R>
callback)
@@ -803,6 +814,13 @@ public class HTable implements HTableInt
     connection.processBatchCallback(actions, tableName, pool, results, callback);
   }
 
+  /**
+   * {@inheritDoc}
+   * @deprecated If any exception is thrown by one of the actions, there is no way to
+   * retrieve the partially executed results. Use
+   * {@link #batchCallback(List, Object[], org.apache.hadoop.hbase.client.coprocessor.Batch.Callback)}
+   * instead.
+   */
   @Override
   public <R> Object[] batchCallback(
     final List<? extends Row> actions, final Batch.Callback<R> callback) throws
IOException,

Modified: hbase/branches/0.98/hbase-client/src/main/java/org/apache/hadoop/hbase/client/HTableInterface.java
URL: http://svn.apache.org/viewvc/hbase/branches/0.98/hbase-client/src/main/java/org/apache/hadoop/hbase/client/HTableInterface.java?rev=1552152&r1=1552151&r2=1552152&view=diff
==============================================================================
--- hbase/branches/0.98/hbase-client/src/main/java/org/apache/hadoop/hbase/client/HTableInterface.java
(original)
+++ hbase/branches/0.98/hbase-client/src/main/java/org/apache/hadoop/hbase/client/HTableInterface.java
Wed Dec 18 23:02:44 2013
@@ -128,6 +128,8 @@ public interface HTableInterface extends
    *         the call for that action failed, even after retries
    * @throws IOException
    * @since 0.90.0
+   * @deprecated If any exception is thrown by one of the actions, there is no way to
+   * retrieve the partially executed results. Use {@link #batch(List, Object[])} instead.
    */
   Object[] batch(final List<? extends Row> actions) throws IOException, InterruptedException;
 
@@ -144,6 +146,10 @@ public interface HTableInterface extends
   /**
    * Same as {@link #batch(List)}, but with a callback.
    * @since 0.96.0
+   * @deprecated If any exception is thrown by one of the actions, there is no way to
+   * retrieve the partially executed results. Use
+   * {@link #batchCallback(List, Object[], org.apache.hadoop.hbase.client.coprocessor.Batch.Callback)}
+   * instead.
    */
   <R> Object[] batchCallback(
     List<? extends Row> actions, Batch.Callback<R> callback

Modified: hbase/branches/0.98/hbase-client/src/main/java/org/apache/hadoop/hbase/client/HTablePool.java
URL: http://svn.apache.org/viewvc/hbase/branches/0.98/hbase-client/src/main/java/org/apache/hadoop/hbase/client/HTablePool.java?rev=1552152&r1=1552151&r2=1552152&view=diff
==============================================================================
--- hbase/branches/0.98/hbase-client/src/main/java/org/apache/hadoop/hbase/client/HTablePool.java
(original)
+++ hbase/branches/0.98/hbase-client/src/main/java/org/apache/hadoop/hbase/client/HTablePool.java
Wed Dec 18 23:02:44 2013
@@ -376,6 +376,11 @@ public class HTablePool implements Close
       table.batch(actions, results);
     }
 
+    /**
+     * {@inheritDoc}
+     * @deprecated If any exception is thrown by one of the actions, there is no way to
+     * retrieve the partially executed results. Use {@link #batch(List, Object[])} instead.
+     */
     @Override
     public Object[] batch(List<? extends Row> actions) throws IOException,
         InterruptedException {
@@ -547,6 +552,13 @@ public class HTablePool implements Close
       table.batchCallback(actions, results, callback);
     }
 
+    /**
+     * {@inheritDoc}
+     * @deprecated If any exception is thrown by one of the actions, there is no way to
+     * retrieve the partially executed results. Use
+     * {@link #batchCallback(List, Object[], org.apache.hadoop.hbase.client.coprocessor.Batch.Callback)}
+     * instead.
+     */
     @Override
     public <R> Object[] batchCallback(List<? extends Row> actions,
         Callback<R> callback) throws IOException, InterruptedException {

Modified: hbase/branches/0.98/hbase-server/src/main/java/org/apache/hadoop/hbase/coprocessor/CoprocessorHost.java
URL: http://svn.apache.org/viewvc/hbase/branches/0.98/hbase-server/src/main/java/org/apache/hadoop/hbase/coprocessor/CoprocessorHost.java?rev=1552152&r1=1552151&r2=1552152&view=diff
==============================================================================
--- hbase/branches/0.98/hbase-server/src/main/java/org/apache/hadoop/hbase/coprocessor/CoprocessorHost.java
(original)
+++ hbase/branches/0.98/hbase-server/src/main/java/org/apache/hadoop/hbase/coprocessor/CoprocessorHost.java
Wed Dec 18 23:02:44 2013
@@ -523,6 +523,11 @@ public abstract class CoprocessorHost<E 
         table.batch(actions, results);
       }
 
+      /**
+       * {@inheritDoc}
+       * @deprecated If any exception is thrown by one of the actions, there is no way to
+       * retrieve the partially executed results. Use {@link #batch(List, Object[])} instead.
+       */
       @Override
       public Object[] batch(List<? extends Row> actions)
           throws IOException, InterruptedException {
@@ -535,6 +540,13 @@ public abstract class CoprocessorHost<E 
         table.batchCallback(actions, results, callback);
       }
 
+      /**
+       * {@inheritDoc}
+       * @deprecated If any exception is thrown by one of the actions, there is no way to
+       * retrieve the partially executed results. Use 
+       * {@link #batchCallback(List, Object[], org.apache.hadoop.hbase.client.coprocessor.Batch.Callback)}
+       * instead.
+       */
       @Override
       public <R> Object[] batchCallback(List<? extends Row> actions,
           Batch.Callback<R> callback) throws IOException, InterruptedException {



Mime
View raw message