Class RocksDBStorageEngine
java.lang.Object
com.linkedin.davinci.store.AbstractStorageEngine<RocksDBStoragePartition>
com.linkedin.davinci.store.rocksdb.RocksDBStorageEngine
- All Implemented Interfaces:
Closeable
,AutoCloseable
-
Nested Class Summary
Nested classes/interfaces inherited from class com.linkedin.davinci.store.AbstractStorageEngine
AbstractStorageEngine.StoragePartitionAdjustmentTrigger
-
Field Summary
Fields inherited from class com.linkedin.davinci.store.AbstractStorageEngine
METADATA_PARTITION_ID
-
Constructor Summary
ConstructorDescriptionRocksDBStorageEngine
(VeniceStoreVersionConfig storeConfig, RocksDBStorageEngineFactory factory, String rocksDbPath, RocksDBMemoryStats rocksDBMemoryStats, RocksDBThrottler rocksDbThrottler, RocksDBServerConfig rocksDBServerConfig, InternalAvroSpecificSerializer<StoreVersionState> storeVersionStateSerializer, InternalAvroSpecificSerializer<PartitionState> partitionStateSerializer, boolean replicationMetadataEnabled) -
Method Summary
Modifier and TypeMethodDescriptioncreateStoragePartition
(StoragePartitionConfig storagePartitionConfig) void
drop()
Drop the whole storelong
long
getIterator
(int partitionId) long
long
getType()
boolean
void
setRocksDBServerConfig
(RocksDBServerConfig rocksDBServerConfig) Methods inherited from class com.linkedin.davinci.store.AbstractStorageEngine
addStoragePartition, addStoragePartition, adjustStoragePartition, beginBatchWrite, checkDatabaseIntegrity, clearPartitionOffset, clearStoreVersionState, close, closeMetadataPartition, closePartition, containsPartition, createSnapshot, delete, deleteWithReplicationMetadata, dropMetadataPartition, dropPartition, endBatchWrite, get, get, get, getByKeyPrefix, getCompressionStrategy, getMetadataPartition, getNumberOfPartitions, getPartitionIds, getPartitionOffset, getPartitionOrThrow, getPartitionSizeInBytes, getReplicationMetadata, getRWLockForPartitionOrThrow, getStoreVersionName, getStoreVersionState, isChunked, isClosed, isMetadataPartition, put, put, put, putPartitionOffset, putReplicationMetadata, putStoreVersionState, putWithReplicationMetadata, reopenStoragePartition, restoreStoragePartitions, restoreStoragePartitions, suppressLogs, sync, toString, updateStoreVersionStateCache
-
Field Details
-
SERVER_CONFIG_FILE_NAME
- See Also:
-
-
Constructor Details
-
RocksDBStorageEngine
public RocksDBStorageEngine(VeniceStoreVersionConfig storeConfig, RocksDBStorageEngineFactory factory, String rocksDbPath, RocksDBMemoryStats rocksDBMemoryStats, RocksDBThrottler rocksDbThrottler, RocksDBServerConfig rocksDBServerConfig, InternalAvroSpecificSerializer<StoreVersionState> storeVersionStateSerializer, InternalAvroSpecificSerializer<PartitionState> partitionStateSerializer, boolean replicationMetadataEnabled)
-
-
Method Details
-
getType
- Specified by:
getType
in classAbstractStorageEngine<RocksDBStoragePartition>
-
getPersistedPartitionIds
- Specified by:
getPersistedPartitionIds
in classAbstractStorageEngine<RocksDBStoragePartition>
-
createStoragePartition
public RocksDBStoragePartition createStoragePartition(StoragePartitionConfig storagePartitionConfig) - Specified by:
createStoragePartition
in classAbstractStorageEngine<RocksDBStoragePartition>
-
drop
public void drop()Description copied from class:AbstractStorageEngine
Drop the whole store- Overrides:
drop
in classAbstractStorageEngine<RocksDBStoragePartition>
-
getRMDSizeInBytes
public long getRMDSizeInBytes()- Overrides:
getRMDSizeInBytes
in classAbstractStorageEngine<RocksDBStoragePartition>
-
getCachedRMDSizeInBytes
public long getCachedRMDSizeInBytes()- Overrides:
getCachedRMDSizeInBytes
in classAbstractStorageEngine<RocksDBStoragePartition>
-
getStoreSizeInBytes
public long getStoreSizeInBytes()- Specified by:
getStoreSizeInBytes
in classAbstractStorageEngine<RocksDBStoragePartition>
-
getCachedStoreSizeInBytes
public long getCachedStoreSizeInBytes()- Overrides:
getCachedStoreSizeInBytes
in classAbstractStorageEngine<RocksDBStoragePartition>
-
hasMemorySpaceLeft
public boolean hasMemorySpaceLeft()- Overrides:
hasMemorySpaceLeft
in classAbstractStorageEngine<RocksDBStoragePartition>
-
setRocksDBServerConfig
-
getIterator
- Overrides:
getIterator
in classAbstractStorageEngine<RocksDBStoragePartition>
-