Пример #1
0
 public void MarkCurrentKeyAsUsed(IKeyValueDBTransaction tr)
 {
     Keys = Keys.ResizingAppend(ByteBuffer.NewSync(tr.GetKeyPrefix())).ResizingAppend(tr.GetKey());
     Builder.Append("Used key: ");
     Print(ByteBuffer.NewSync(tr.GetKeyPrefix()));
     Builder.Append('|');
     Print(tr.GetKey());
     Builder.AppendFormat(" Value len:{0}", tr.GetStorageSizeOfCurrentKey().Value);
     Builder.AppendLine();
 }
Пример #2
0
 public void MarkCurrentKeyAsUsed(IKeyValueDBTransaction tr)
 {
     Keys = Keys.ResizingAppend(ByteBuffer.NewSync(tr.GetKeyPrefix())).ResizingAppend(tr.GetKey());
     Builder.Append("Used key: ");
     Print(ByteBuffer.NewSync(tr.GetKeyPrefix()));
     Builder.Append('|');
     Print(tr.GetKey());
     Builder.AppendFormat(" Value len:{0}", tr.GetStorageSizeOfCurrentKey().Value);
     Builder.AppendLine();
 }
Пример #3
0
 void MarkKeyAsUsed(IKeyValueDBTransaction tr)
 {
     _kvtr.SetKeyPrefix(tr.GetKeyPrefix());
     if (_kvtr.Find(tr.GetKey()) == FindResult.Exact)
     {
         _kvtr.EraseCurrent();
     }
 }
Пример #4
0
        public ByteBuffer GetKeyBytes()
        {
            var key = ByteBuffer.NewEmpty();

            return(key.ResizingAppend(ByteBuffer.NewSync(_keyValueTr.GetKeyPrefix())).ResizingAppend(_keyValueTr.GetKey()));
        }
 public byte[] GetKeyPrefix()
 {
     return(_keyValueDBTransaction.GetKeyPrefix());
 }
Пример #6
0
 void MarkKeyAsUsed(IKeyValueDBTransaction tr)
 {
     _kvtr.SetKeyPrefix(tr.GetKeyPrefix());
     if (_kvtr.Find(tr.GetKey())==FindResult.Exact) _kvtr.EraseCurrent();
 }