Class RocksDBStorageEngine
- java.lang.Object
-
- com.linkedin.davinci.store.AbstractStorageEngine<RocksDBStoragePartition>
-
- com.linkedin.davinci.store.rocksdb.RocksDBStorageEngine
-
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable
public class RocksDBStorageEngine extends AbstractStorageEngine<RocksDBStoragePartition>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.linkedin.davinci.store.AbstractStorageEngine
AbstractStorageEngine.StoragePartitionAdjustmentTrigger
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringSERVER_CONFIG_FILE_NAME-
Fields inherited from class com.linkedin.davinci.store.AbstractStorageEngine
METADATA_PARTITION_ID
-
-
Constructor Summary
Constructors Constructor Description RocksDBStorageEngine(VeniceStoreVersionConfig storeConfig, RocksDBStorageEngineFactory factory, java.lang.String rocksDbPath, RocksDBMemoryStats rocksDBMemoryStats, RocksDBThrottler rocksDbThrottler, RocksDBServerConfig rocksDBServerConfig, InternalAvroSpecificSerializer<StoreVersionState> storeVersionStateSerializer, InternalAvroSpecificSerializer<PartitionState> partitionStateSerializer, boolean replicationMetadataEnabled)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RocksDBStoragePartitioncreateStoragePartition(StoragePartitionConfig storagePartitionConfig)voiddrop()Drop the whole storelonggetCachedRMDSizeInBytes()longgetCachedStoreSizeInBytes()AbstractStorageIteratorgetIterator(int partitionId)java.util.Set<java.lang.Integer>getPersistedPartitionIds()longgetRMDSizeInBytes()longgetStoreSizeInBytes()PersistenceTypegetType()booleanhasMemorySpaceLeft()voidsetRocksDBServerConfig(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 Detail
-
SERVER_CONFIG_FILE_NAME
public static final java.lang.String SERVER_CONFIG_FILE_NAME
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
RocksDBStorageEngine
public RocksDBStorageEngine(VeniceStoreVersionConfig storeConfig, RocksDBStorageEngineFactory factory, java.lang.String rocksDbPath, RocksDBMemoryStats rocksDBMemoryStats, RocksDBThrottler rocksDbThrottler, RocksDBServerConfig rocksDBServerConfig, InternalAvroSpecificSerializer<StoreVersionState> storeVersionStateSerializer, InternalAvroSpecificSerializer<PartitionState> partitionStateSerializer, boolean replicationMetadataEnabled)
-
-
Method Detail
-
getType
public PersistenceType getType()
- Specified by:
getTypein classAbstractStorageEngine<RocksDBStoragePartition>
-
getPersistedPartitionIds
public java.util.Set<java.lang.Integer> getPersistedPartitionIds()
- Specified by:
getPersistedPartitionIdsin classAbstractStorageEngine<RocksDBStoragePartition>
-
createStoragePartition
public RocksDBStoragePartition createStoragePartition(StoragePartitionConfig storagePartitionConfig)
- Specified by:
createStoragePartitionin classAbstractStorageEngine<RocksDBStoragePartition>
-
drop
public void drop()
Description copied from class:AbstractStorageEngineDrop the whole store- Overrides:
dropin classAbstractStorageEngine<RocksDBStoragePartition>
-
getRMDSizeInBytes
public long getRMDSizeInBytes()
- Overrides:
getRMDSizeInBytesin classAbstractStorageEngine<RocksDBStoragePartition>
-
getCachedRMDSizeInBytes
public long getCachedRMDSizeInBytes()
- Overrides:
getCachedRMDSizeInBytesin classAbstractStorageEngine<RocksDBStoragePartition>
-
getStoreSizeInBytes
public long getStoreSizeInBytes()
- Specified by:
getStoreSizeInBytesin classAbstractStorageEngine<RocksDBStoragePartition>
-
getCachedStoreSizeInBytes
public long getCachedStoreSizeInBytes()
- Overrides:
getCachedStoreSizeInBytesin classAbstractStorageEngine<RocksDBStoragePartition>
-
hasMemorySpaceLeft
public boolean hasMemorySpaceLeft()
- Overrides:
hasMemorySpaceLeftin classAbstractStorageEngine<RocksDBStoragePartition>
-
setRocksDBServerConfig
public void setRocksDBServerConfig(RocksDBServerConfig rocksDBServerConfig)
-
getIterator
public AbstractStorageIterator getIterator(int partitionId)
- Overrides:
getIteratorin classAbstractStorageEngine<RocksDBStoragePartition>
-
-