3

我在列族标签上有复合列

RowKey: A
=> (column=B:C, value=432b442b492b4b2b552b582b592b7465787433, timestamp=1338402672044003)
=> (column=C:D, value=442b492b4b2b552b582b592b7465787433, timestamp=1338402672044004)
=> (column=E:T, value=492b582b592b5a2b5a5a2b5a5a5a2b7465787434, timestamp=1338402672049002)

例如,我如何在 A 行、列 (C:D) 中删除

它似乎:

Mutator<String> mutator = HFactory.createMutator(ks, se);
mutator.addDeletion(..

行和 CF 只需要 2 个参数

4

1 回答 1

0

对于感兴趣的人来说,这就像他们的创作一样容易;

CompositeSerializer ce = new CompositeSerializer();
Composite c = new Composite();
c.add(0, "John");
c.add(1, "Connor");
mutator.addDeletion("key", "MyCF", c, ce);
于 2012-06-05T19:42:48.323 回答