Esempio n. 1
0
        public void Commit(WriteBatch batch)
        {
            switch (State)
            {
            case TrackState.Added:
            case TrackState.Changed:
                batch.Put(prefix, Item.ToArray());
                break;

            case TrackState.Deleted:
                batch.Delete(prefix);
                break;
            }
        }
Esempio n. 2
0
 public static void Delete(this WriteBatch batch, byte prefix, ISerializable key)
 {
     batch.Delete(SliceBuilder.Begin(prefix).Add(key));
 }
Esempio n. 3
0
 public override void DeleteInternal(TKey key)
 {
     batch?.Delete(prefix, key);
 }