Пример #1
0
 public KeyValueEntry(MessageInfo mi)
 {
     bucketAndKey = new BucketAndKey(mi.Subject);
     Value        = ExtractValue(mi.Data);
     DataLength   = CalculateLength(Value, mi.Headers);
     Created      = mi.Time;
     Revision     = mi.Sequence;
     Delta        = 0;
     Operation    = KeyValueUtil.GetOperation(mi.Headers, KeyValueOperation.Put);
 }
Пример #2
0
 public KeyValueEntry(Msg m)
 {
     bucketAndKey = new BucketAndKey(m.Subject);
     Value        = ExtractValue(m.Data);
     DataLength   = CalculateLength(Value, m.Header);
     Created      = m.MetaData.Timestamp;
     Revision     = m.MetaData.StreamSequence;
     Delta        = m.MetaData.NumPending;
     Operation    = KeyValueUtil.GetOperation(m.Header, KeyValueOperation.Put);
 }
Пример #3
0
 public bool Equals(BucketAndKey other)
 {
     return(Bucket == other.Bucket && Key == other.Key);
 }