示例#1
0
 public Mutation ToCassandraMutation()
 {
     return(new Mutation
     {
         Deletion = new Deletion
         {
             Predicate = SlicePredicate.ToCassandraSlicePredicate(),
             Timestamp = Timestamp ?? PreciseTimestamp.Now.Ticks
         }
     });
 }
 internal static Apache.Cassandra.SlicePredicate ToCassandraSlicePredicate(this SlicePredicate slicePredicate)
 {
     if (slicePredicate == null)
     {
         return(null);
     }
     return(new Apache.Cassandra.SlicePredicate
     {
         Column_names = slicePredicate.Columns,
         Slice_range = slicePredicate.SliceRange.ToCassandraSliceRange()
     });
 }
 public GetKeyRangeSliceCommand(string keyspace, string columnFamily, ConsistencyLevel consistencyLevel, KeyRange keyRange, SlicePredicate predicate)
     : base(keyspace, columnFamily)
 {
     this.consistencyLevel = consistencyLevel;
     this.keyRange         = keyRange;
     this.predicate        = predicate;
 }
 public MultiGetSliceCommand(string keyspace, string columnFamily, ConsistencyLevel consistencyLevel, List <byte[]> keys, SlicePredicate predicate)
     : base(keyspace, columnFamily)
 {
     this.consistencyLevel = consistencyLevel;
     this.keys             = keys;
     this.predicate        = predicate;
 }
 public GetSliceCommand(string keyspace, string columnFamily, byte[] rowKey, ConsistencyLevel consistencyLevel, SlicePredicate predicate)
     : base(keyspace, columnFamily)
 {
     PartitionKey          = rowKey;
     this.consistencyLevel = consistencyLevel;
     this.predicate        = predicate;
 }