示例#1
0
        public void deleteRow(string keyspace, Object columnFamily, Object key)
        {
            client.set_keyspace(keyspace);
            ColumnPath columnPath = new ColumnPath();

            columnPath.Column_family = columnFamily.ToString();
            client.remove(key.ToByteArray(), columnPath, createTimestamp(), consistencyLevel);
        }
 public override void Execute(Apache.Cassandra.Cassandra.Client cassandraClient, ILog logger)
 {
     cassandraClient.remove(
         PartitionKey,
         new ColumnPath {
         Column_family = columnFamily
     },
         timestamp ?? Timestamp.Now.Ticks,
         consistencyLevel);
 }
示例#3
0
 public override void Execute(Apache.Cassandra.Cassandra.Client cassandraClient)
 {
     cassandraClient.remove(
         PartitionKey,
         new ColumnPath {
         Column_family = columnFamily
     },
         timestamp ?? DateTimeService.UtcNow.Ticks,
         consistencyLevel);
 }