使用hector api删除cassandra中的列时出现问题

时间:2014-06-30 12:58:40

标签: cassandra hector

嗨,我是新的cassandra和hector api我尝试crud操作,而我试图删除特定的列,它不删除仍然存在于表(后端java)。请帮帮我。

Cluster  cluster =  HFactory.getOrCreateCluster("TestCluster", new CassandraHostConfigurator("localhost:9160")); 
         Keyspace keyspace  = HFactory.createKeyspace("sometext", cluster);
         Mutator<String> mutator  = HFactory.createMutator(keyspace, StringSerializer.get()); 
         mutator.delete(key, "user2", "first", StringSerializer.get());
         mutator.execute();

0 个答案:

没有答案