Package org.rocksdb
Class RocksObject
java.lang.Object
org.rocksdb.AbstractNativeReference
org.rocksdb.AbstractImmutableNativeReference
org.rocksdb.RocksObject
- All Implemented Interfaces:
AutoCloseable
- Direct Known Subclasses:
AbstractCompactionFilter,AbstractRocksIterator,AbstractWriteBatch,BackupEngine,BackupEngineOptions,Cache,Checkpoint,ColumnFamilyHandle,ColumnFamilyOptions,CompactionJobInfo,CompactionJobStats,CompactionOptions,CompactionOptionsFIFO,CompactionOptionsUniversal,CompactRangeOptions,ComparatorOptions,CompressionOptions,ConcurrentTaskLimiter,ConfigOptions,DBOptions,Env,EnvOptions,ExportImportFilesMetaData,Filter,FlushOptions,ImportColumnFamilyOptions,IngestExternalFileOptions,MergeOperator,OptimisticTransactionOptions,Options,PerfContext,PersistentCache,RateLimiter,ReadOptions,RestoreOptions,RocksDB,Snapshot,SstFileManager,SstFileReader,SstFileWriter,SstPartitionerFactory,Statistics,StdErrLogger,TablePropertiesCollectorFactory,Transaction,TransactionDBOptions,TransactionLogIterator,TransactionOptions,WriteBufferManager,WriteOptions
RocksObject is an implementation of
AbstractNativeReference which
has an immutable and therefore thread-safe reference to the underlying
native C++ RocksDB object.
RocksObject is the base-class of almost all RocksDB classes that have a
pointer to some underlying native C++ rocksdb object.
The use of RocksObject should always be preferred over
RocksMutableObject.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final longAn immutable reference to the value of the C++ pointer pointing to some underlying native RocksDB C++ object.Fields inherited from class org.rocksdb.AbstractImmutableNativeReference
owningHandle_ -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidDeletes underlying C++ object pointer.protected abstract voiddisposeInternal(long handle) longMethods inherited from class org.rocksdb.AbstractImmutableNativeReference
close, disOwnNativeHandle, isOwningHandle
-
Field Details
-
nativeHandle_
protected final long nativeHandle_An immutable reference to the value of the C++ pointer pointing to some underlying native RocksDB C++ object.
-
-
Constructor Details
-
RocksObject
protected RocksObject(long nativeHandle)
-
-
Method Details
-
disposeInternal
protected void disposeInternal()Deletes underlying C++ object pointer.- Specified by:
disposeInternalin classAbstractImmutableNativeReference
-
disposeInternal
protected abstract void disposeInternal(long handle) -
getNativeHandle
public long getNativeHandle()
-