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

This commit is contained in:
Nick Dimiduk 2015-06-15 17:48:13 -07:00
parent 35a9c509fb
commit 8d1d6c16da
1 changed files with 1 additions and 1 deletions

View File

@ -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