Esempio n. 1
0
 public Mutation ToCassandraMutation()
 {
     return(new Mutation
     {
         Deletion = new Deletion
         {
             Predicate = SlicePredicate.ToCassandraSlicePredicate(),
             Timestamp = Timestamp.HasValue ? Timestamp.Value : DateTimeService.UtcNow.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()
     });
 }
Esempio n. 3
0
 public GetSliceCommand(string keyspace, string columnFamily, byte[] rowKey, ConsistencyLevel consistencyLevel, SlicePredicate predicate)
     : base(keyspace, columnFamily)
 {
     PartitionKey          = rowKey;
     this.consistencyLevel = consistencyLevel;
     this.predicate        = predicate;
 }
 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;
 }