Exemplo n.º 1
0
 public void Put(byte[] key, long keyLength, byte[] value, long valueLength, ColumnFamilyHandle cf = null, WriteOptions writeOptions = null)
 {
     Native.Instance.rocksdb_put(Handle, (writeOptions ?? DefaultWriteOptions).Handle, key, keyLength, value, valueLength, cf);
 }
Exemplo n.º 2
0
 public void Put(byte[] key, byte[] value, ColumnFamilyHandle cf = null, WriteOptions writeOptions = null)
 {
     Put(key, key.GetLongLength(0), value, value.GetLongLength(0), cf, writeOptions);
 }
Exemplo n.º 3
0
 public void Put(Span <byte> key, Span <byte> value, ColumnFamilyHandle cf = null, WriteOptions writeOptions = null)
 {
     Put(key, key.Length, value, value.Length, cf, writeOptions);
 }
Exemplo n.º 4
0
 public void Remove(byte[] key, ColumnFamilyHandle cf = null, WriteOptions writeOptions = null)
 {
     Remove(key, key.Length, cf, writeOptions);
 }
Exemplo n.º 5
0
 public void Put(string key, string value, ColumnFamilyHandle cf = null, WriteOptions writeOptions = null, Encoding encoding = null)
 {
     Native.Instance.rocksdb_put(Handle, (writeOptions ?? DefaultWriteOptions).Handle, key, value, cf, encoding ?? DefaultEncoding);
 }
Exemplo n.º 6
0
 public void Remove(string key, ColumnFamilyHandle cf = null, WriteOptions writeOptions = null)
 {
     Native.Instance.rocksdb_delete(Handle, (writeOptions ?? DefaultWriteOptions).Handle, key, cf);
 }
Exemplo n.º 7
0
 public void Write(WriteBatchWithIndex writeBatch, WriteOptions writeOptions = null)
 {
     Native.Instance.rocksdb_write_writebatch_wi(Handle, (writeOptions ?? DefaultWriteOptions).Handle, writeBatch.Handle);
 }
Exemplo n.º 8
0
 public Transaction NewTransaction(WriteOptions wop, TransactionOptions txnOptions)
 {
     return(new Transaction(this, wop, txnOptions));
 }
Exemplo n.º 9
0
 public void Remove(byte[] key, long keyLength, ColumnFamilyHandle cf = null, WriteOptions writeOptions = null)
 {
     Native.Instance.rocksdb_delete(Handle, (writeOptions ?? DefaultWriteOptions).Handle, key, keyLength);
 }
Exemplo n.º 10
0
 public void Write(WriteBatch writeBatch, WriteOptions writeOptions = null)
 {
     Native.Instance.rocksdb_write(Handle, (writeOptions ?? defaultWriteOptions).Handle, writeBatch.Handle);
 }