Package org.rocksdb
Class AbstractCompactionFilterFactory<T extends AbstractCompactionFilter<?>>
java.lang.Object
org.rocksdb.AbstractNativeReference
org.rocksdb.AbstractImmutableNativeReference
org.rocksdb.RocksCallbackObject
org.rocksdb.AbstractCompactionFilterFactory<T>
- Type Parameters:
T- The concrete type of the compaction filter
- All Implemented Interfaces:
AutoCloseable
public abstract class AbstractCompactionFilterFactory<T extends AbstractCompactionFilter<?>>
extends RocksCallbackObject
Each compaction will create a new
AbstractCompactionFilter
allowing the application to know about different compactions-
Field Summary
Fields inherited from class org.rocksdb.RocksCallbackObject
nativeHandle_Fields inherited from class org.rocksdb.AbstractImmutableNativeReference
owningHandle_ -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract TCreate a new compaction filterprotected voidWe overrideRocksCallbackObject.disposeInternal()as disposing of a rocksdb::AbstractCompactionFilterFactory requires a slightly different approach as it is a std::shared_ptrprotected longinitializeNative(long... nativeParameterHandles) Construct the Native C++ object which will callback to our object methodsabstract Stringname()A name which identifies this compaction filterMethods inherited from class org.rocksdb.AbstractImmutableNativeReference
close, disOwnNativeHandle, isOwningHandle
-
Constructor Details
-
AbstractCompactionFilterFactory
public AbstractCompactionFilterFactory()
-
-
Method Details
-
initializeNative
protected long initializeNative(long... nativeParameterHandles) Description copied from class:RocksCallbackObjectConstruct the Native C++ object which will callback to our object methods- Specified by:
initializeNativein classRocksCallbackObject- Parameters:
nativeParameterHandles- An array of native handles for any parameter objects that are needed during construction- Returns:
- The native handle of the C++ object which will callback to us
-
createCompactionFilter
Create a new compaction filter- Parameters:
context- The context describing the need for a new compaction filter- Returns:
- A new instance of
AbstractCompactionFilter
-
name
A name which identifies this compaction filterThe name will be printed to the LOG file on start up for diagnosis
- Returns:
- name which identifies this compaction filter.
-
disposeInternal
protected void disposeInternal()We overrideRocksCallbackObject.disposeInternal()as disposing of a rocksdb::AbstractCompactionFilterFactory requires a slightly different approach as it is a std::shared_ptr- Overrides:
disposeInternalin classRocksCallbackObject
-