在Cassandra中插入多列
Inserting multiple columns in Cassandra
如何在C++中使用一个insert()为一行插入多个列?我使用的是节俭生成的cpp代码。
我注意到Java实现似乎有一个batch_insert(),它不存在于cpp生成的代码中。这是否意味着我必须为每一列调用insert(),或者有更好的方法吗?
Thrift接口有一个batch_mutate()
调用,允许您传入突变映射——突变是任何插入或删除。
来自Thrift规范:
/**
Mutate many columns or super columns for many row keys. See also: Mutation.
mutation_map maps key to column family to a list of Mutation objects to take place at that scope.
**/
void batch_mutate(1:required map<binary, map<string, list<Mutation>>> mutation_map,
2:required ConsistencyLevel consistency_level=ConsistencyLevel.ONE)
throws (1:InvalidRequestException ire, 2:UnavailableException ue, 3:TimedOutException te)
相关文章:
- 使用C++库在Android项目中修改gradle中的cmake参数,用于插入指令的测试
- 有关插入适配器的错误。[错误]请求从 'back_insert_iterator<vector<>>' 类型转换为非标量类型
- 预处理器:插入结构名称中的前一个行号
- 在未初始化映射的情况下,将值插入到映射的映射中
- 如何在c++中只将键插入到bimap的一侧
- 如何将结构插入到集合中并打印集合的成员
- C++json插入数组
- Visual Studio 2019:插入多个C++风格的单行注释
- nlohmann-json将一个数组插入到另一个数组中
- 有效地使用std::unordered_map来插入或增加键的值
- 为字符串中每 N 个字符插入空格的函数没有按照我认为的方式工作?
- 正在插入动态数组
- 插入或删除时获取usb的dos_name
- 叮叮当当在修复时插入多个"覆盖"说明符
- 链表c++插入,所有情况都已检查,但没有任何工作
- 将重物插入std::map
- C++17 - 使用自定义分配器的节点提取/重新插入 - 适用于 clang++/libc++,但不适用于 libstd
- 在Cassandra中插入多列
- 使用datastax c++驱动程序将大型二进制文件或数组(超过64MB)插入Cassandra
- 使用datastax CPP驱动程序改进在Cassandra数据库中的插入时间