Package org.rocksdb
Class Filter
- java.lang.Object
-
- All Implemented Interfaces:
java.lang.AutoCloseable
- Direct Known Subclasses:
BloomFilter
public abstract class Filter extends RocksObject
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 Modifier Constructor Description protectedFilter(long nativeHandle)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddisposeInternal()Deletes underlying C++ filter pointer.protected voiddisposeInternal(long handle)-
Methods inherited from class org.rocksdb.RocksObject
getNativeHandle
-
Methods inherited from class org.rocksdb.AbstractImmutableNativeReference
close, disOwnNativeHandle, isOwningHandle
-
Methods inherited from class org.rocksdb.AbstractNativeReference
dispose, finalize
-
-
-
-
Method Detail
-
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
-
-