Package org.rocksdb

Class AbstractCompactionFilter<T extends AbstractSlice<?>>

  • All Implemented Interfaces:
    java.lang.AutoCloseable
    Direct Known Subclasses:
    CassandraCompactionFilter, RemoveEmptyValueCompactionFilter

    public abstract class AbstractCompactionFilter<T extends AbstractSlice<?>>
    extends RocksObject
    A CompactionFilter allows an application to modify/delete a key-value at the time of compaction. At present we just permit an overriding Java class to wrap a C++ implementation
    • Constructor Detail

      • AbstractCompactionFilter

        protected AbstractCompactionFilter​(long nativeHandle)
    • Method Detail

      • disposeInternal

        protected final void disposeInternal​(long handle)
        Deletes underlying C++ compaction pointer. Note that this function should be called only after all RocksDB instances referencing the compaction filter are closed. Otherwise an undefined behavior will occur.
        Specified by:
        disposeInternal in class RocksObject