Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如果我需要将数据(而不是插入)附加到特定的超级列中,我该怎么办?
例如:考虑下面描述的现有记录
Kespace : test columFamily: testColum SuperColumn : testSuper column_name : email value : urssujith@gmail.com
在这里,如果我想将我的电话号码添加到超级列“testSuper”。我应该怎么办?
做一个简单的插入(使用相同的键),你的 ColumnParent 表示正确的 SCF 和 SC
(Java 示例)
client.insert( keyspace, key, parent, new Column("phoneNumber".getBytes("UTF-8"), "555-14921911".getBytes("UTF-8"), timestamp), ConsistencyLevel.ONE );