Beispiel #1
0
 def delete_log_contents(self):
     for log in self.log:
         if log.name == 'insert':
             cf = pycassa.ColumnFamily(pool=self.pool, column_family=log.column_family)
             b = cf.batch()
             for key in log.keys:
                 b.remove(key, timestamp=pycassa.gm_timestamp())
             b.send(write_consistency_level=pycassa.ConsistencyLevel.ALL)
Beispiel #2
0
 def delete_log_contents(self):
     for log in self.log:
         if log.name == 'insert':
             cp = pycassa.columnfamily.ColumnPath(column_family=log.column_family)
             self.client.remove(log.keyspace, log.keys, cp, pycassa.gm_timestamp(), pycassa.ConsistencyLevel.ALL)