gpt4 book ai didi

cassandra - Hector:如何删除行内的复合列

转载 作者:行者123 更新时间:2023-12-02 22:18:03 26 4
gpt4 key购买 nike

我在列族标签上有复合列

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 个参数

最佳答案

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

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

关于cassandra - Hector:如何删除行内的复合列,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10822521/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com