You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by nd...@apache.org on 2015/06/16 02:55:32 UTC
hbase git commit: HBASE-13247 Change BufferedMutatorExample to use
addColumn() since add() is deprecated
Repository: hbase
Updated Branches:
refs/heads/master 35a9c509f -> 8d1d6c16d
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/8d1d6c16
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/8d1d6c16
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/8d1d6c16
Branch: refs/heads/master
Commit: 8d1d6c16da98fbb0eb21bfb63e9c887f76c4e31b
Parents: 35a9c50
Author: Nick Dimiduk <nd...@apache.org>
Authored: Mon Jun 15 17:48:13 2015 -0700
Committer: Nick Dimiduk <nd...@apache.org>
Committed: Mon Jun 15 17:48:13 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/8d1d6c16/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