Package org.rocksdb

Class Filter

All Implemented Interfaces:
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.
  • 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:
      disposeInternal in class RocksObject
    • disposeInternal

      protected final void disposeInternal(long handle)
      Specified by:
      disposeInternal in class RocksObject