Package org.rocksdb
Class Filter
- All Implemented Interfaces:
AutoCloseable
- Direct Known Subclasses:
BloomFilter
Filters are stored in rocksdb and are consulted automatically
by rocksdb to decide whether or not to read some
information from disk. In many cases, a filter can cut down the
number of disk seeks form a handful to a single disk seek per
DB::Get() call.
-
Field Summary
Fields inherited from class org.rocksdb.RocksObject
nativeHandle_Fields inherited from class org.rocksdb.AbstractImmutableNativeReference
owningHandle_ -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidDeletes underlying C++ filter pointer.protected final voiddisposeInternal(long handle) Methods inherited from class org.rocksdb.RocksObject
getNativeHandleMethods inherited from class org.rocksdb.AbstractImmutableNativeReference
close, disOwnNativeHandle, isOwningHandle
-
Constructor Details
-
Filter
protected Filter(long nativeHandle)
-
-
Method Details
-
disposeInternal
protected void disposeInternal()Deletes underlying C++ filter pointer. Note that this function should be called only after all RocksDB instances referencing the filter are closed. Otherwise an undefined behavior will occur.- Overrides:
disposeInternalin classRocksObject
-
disposeInternal
protected final void disposeInternal(long handle) - Specified by:
disposeInternalin classRocksObject
-