Package org.rocksdb

Class Filter

  • 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.
    • Constructor Detail

      • Filter

        protected Filter​(long nativeHandle)
    • 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:
        disposeInternal in class RocksObject