我在列族标签上有复合列

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(..


仅接受2个参数的行和CF

最佳答案

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

CompositeSerializer ce = new CompositeSerializer();
Composite c = new Composite();
c.add(0, "John");
c.add(1, "Connor");
mutator.addDeletion("key", "MyCF", c, ce);

10-04 17:51