我想使用thrift-client(C ++)删除列族中的键,但我唯一能做的就是删除一个单元格。
是的,有人可以帮帮我吗?这就是我尝试过但它只删除了一个单元格:
string key = "key";
ColumnOrSuperColumn csc;
csc.__isset.column = true;
ColumnPath cpath;
cpath.column_family.assign("users");
cpath.__isset.column = true;
cpath.column="id";
//_client is org::apache::cassandra::CassandraClient
_client->get(csc, key, cpath, org::apache::cassandra::ConsistencyLevel::ONE);
_client->remove(key, cpath, csc.column.timestamp,org::apache::cassandra::ConsistencyLevel::ONE);