hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ndimi...@apache.org
Subject hbase git commit: HBASE-13247 Change BufferedMutatorExample to use addColumn() since add() is deprecated
Date Tue, 16 Jun 2015 00:55:54 GMT
Repository: hbase
Updated Branches:
  refs/heads/branch-1.0 ec7b67f2e -> dfc3b956c


HBASE-13247 Change BufferedMutatorExample to use addColumn() since add() is deprecated


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

Branch: refs/heads/branch-1.0
Commit: dfc3b956c77178eef580f9a43dd7b3e3f42cf9fe
Parents: ec7b67f
Author: Nick Dimiduk <ndimiduk@apache.org>
Authored: Mon Jun 15 17:48:13 2015 -0700
Committer: Nick Dimiduk <ndimiduk@apache.org>
Committed: Mon Jun 15 17:52:21 2015 -0700

----------------------------------------------------------------------
 .../apache/hadoop/hbase/client/example/BufferedMutatorExample.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/dfc3b956/hbase-examples/src/main/java/org/apache/hadoop/hbase/client/example/BufferedMutatorExample.java
----------------------------------------------------------------------
diff --git a/hbase-examples/src/main/java/org/apache/hadoop/hbase/client/example/BufferedMutatorExample.java
b/hbase-examples/src/main/java/org/apache/hadoop/hbase/client/example/BufferedMutatorExample.java
index ab96741..7b11684 100644
--- a/hbase-examples/src/main/java/org/apache/hadoop/hbase/client/example/BufferedMutatorExample.java
+++ b/hbase-examples/src/main/java/org/apache/hadoop/hbase/client/example/BufferedMutatorExample.java
@@ -89,7 +89,7 @@ public class BufferedMutatorExample extends Configured implements Tool {
             // the same backing buffer, call-back "listener", and RPC executor pool.
             //
             Put p = new Put(Bytes.toBytes("someRow"));
-            p.add(FAMILY, Bytes.toBytes("someQualifier"), Bytes.toBytes("some value"));
+            p.addColumn(FAMILY, Bytes.toBytes("someQualifier"), Bytes.toBytes("some value"));
             mutator.mutate(p);
             // do work... maybe you want to call mutator.flush() after many edits to ensure
any of
             // this worker's edits are sent before exiting the Callable


Mime
View raw message