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:39 GMT
Repository: hbase
Updated Branches:
  refs/heads/branch-1 b875cda33 -> 3ebb54291


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/3ebb5429
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/3ebb5429
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/3ebb5429

Branch: refs/heads/branch-1
Commit: 3ebb54291c86f60aac9875b8196331af6585f284
Parents: b875cda
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:48:36 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/3ebb5429/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