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:
java.lang.AutoCloseable
public abstract class AbstractCompactionFilterFactory<T extends AbstractCompactionFilter<?>> extends RocksCallbackObject
Each compaction will create a newAbstractCompactionFilterallowing 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 Constructor Description AbstractCompactionFilterFactory()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract TcreateCompactionFilter(AbstractCompactionFilter.Context context)Create a new compaction filterprotected voiddisposeInternal()We 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 java.lang.Stringname()A name which identifies this compaction filter The name will be printed to the LOG file on start up for diagnosis-
Methods inherited from class org.rocksdb.AbstractImmutableNativeReference
close, disOwnNativeHandle, isOwningHandle
-
Methods inherited from class org.rocksdb.AbstractNativeReference
dispose, finalize
-
-
-
-
Method Detail
-
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
public abstract T createCompactionFilter(AbstractCompactionFilter.Context context)
Create a new compaction filter- Parameters:
context- The context describing the need for a new compaction filter- Returns:
- A new instance of
AbstractCompactionFilter
-
name
public abstract java.lang.String name()
A name which identifies this compaction filter The 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
-
-