C++ 如何通过thrift客户端删除Cassandra中的行?

C++ 如何通过thrift客户端删除Cassandra中的行?,c++,cassandra,thrift,C++,Cassandra,Thrift,我试图使用thrift clientC++从列族中删除一个键,但我唯一能做的就是删除一个单元格 有人能帮我吗 这是我尝试过的,但它只删除了一个单元格: string key = "key"; ColumnOrSuperColumn csc; csc.__isset.column = true; ColumnPath cpath; cpath.column_family.assign("users"); cpath.__isset.column = true; cpath.column="id"

我试图使用thrift clientC++从列族中删除一个键,但我唯一能做的就是删除一个单元格

有人能帮我吗

这是我尝试过的,但它只删除了一个单元格:

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);

不要在cpath中指定列名,这样它将删除整行。看一看

到目前为止你尝试了什么?你有一些代码可以给我们看吗?我应该使用哪个时间戳?好的,通常你应该以毫秒为单位显示当前时间,你能给我一个如何修复的示例吗?