Class SliceTransform
- Namespace
- RocksDbNet
- Assembly
- RocksDb.Net.dll
A slice transform (prefix extractor) used with prefix bloom filters.
Maps to rocksdb_slicetransform_t.
public sealed class SliceTransform : RocksDbHandle, IDisposable
- Inheritance
-
SliceTransform
- Implements
- Inherited Members
Methods
CreateFixedPrefix(ulong)
Creates a fixed-length prefix extractor.
public static SliceTransform CreateFixedPrefix(ulong prefixLength)
Parameters
prefixLengthulong
Returns
CreateNoop()
Creates a no-op slice transform.
public static SliceTransform CreateNoop()
Returns
DisposeHandle()
Releases the native handle. Called during disposal.
protected override void DisposeHandle()
Remarks
Protected rather than public: it destroys the native object without marking this instance disposed or clearing the handle, so calling it from outside and then disposing normally would free the same pointer twice. It was the most Dispose-looking member on the type. Callers want Dispose().