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 b875cda33e
commit 3ebb54291c
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. // the same backing buffer, call-back "listener", and RPC executor pool.
// //
Put p = new Put(Bytes.toBytes("someRow")); 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); mutator.mutate(p);
// do work... maybe you want to call mutator.flush() after many edits to ensure any of // 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 // this worker's edits are sent before exiting the Callable