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.String
SERVER_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 RocksDBStoragePartition
createStoragePartition(StoragePartitionConfig storagePartitionConfig)
void
drop()
Drop the whole storelong
getCachedRMDSizeInBytes()
long
getCachedStoreSizeInBytes()
AbstractStorageIterator
getIterator(int partitionId)
java.util.Set<java.lang.Integer>
getPersistedPartitionIds()
long
getRMDSizeInBytes()
long
getStoreSizeInBytes()
PersistenceType
getType()
boolean
hasMemorySpaceLeft()
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 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:
getType
in classAbstractStorageEngine<RocksDBStoragePartition>
-
getPersistedPartitionIds
public java.util.Set<java.lang.Integer> 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
public void setRocksDBServerConfig(RocksDBServerConfig rocksDBServerConfig)
-
getIterator
public AbstractStorageIterator getIterator(int partitionId)
- Overrides:
getIterator
in classAbstractStorageEngine<RocksDBStoragePartition>
-
-