Class RocksDBStorageEngine
java.lang.Object
com.linkedin.davinci.store.AbstractStorageEngine<RocksDBStoragePartition>
com.linkedin.davinci.store.rocksdb.RocksDBStorageEngine
- All Implemented Interfaces:
StorageEngine<RocksDBStoragePartition>,Closeable,AutoCloseable
-
Field Summary
FieldsFields inherited from class com.linkedin.davinci.store.AbstractStorageEngine
METADATA_PARTITION_ID -
Constructor Summary
ConstructorsConstructorDescriptionRocksDBStorageEngine(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) voiddrop()Drop the whole storegetIterator(int partitionId) protected AbstractStoragePartitionRetrieves the IDs of persisted partitions for the store.getStats()getType()voidsetRocksDBServerConfig(RocksDBServerConfig rocksDBServerConfig) Methods inherited from class com.linkedin.davinci.store.AbstractStorageEngine
addStoragePartition, addStoragePartitionIfAbsent, adjustStoragePartition, beginBatchWrite, checkDatabaseIntegrity, clearPartitionOffset, clearStoreVersionState, close, closeMetadataPartition, closePartition, containsPartition, delete, deleteWithReplicationMetadata, dropPartition, dropPartition, endBatchWrite, executeWithSafeGuard, get, get, get, getByKeyPrefix, getNumberOfPartitions, getPartitionIds, getPartitionOffset, getPartitionOrThrow, getPartitions, getReplicationMetadata, getRWLockForPartitionOrThrow, getStoreVersionName, getStoreVersionState, isClosed, 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
-
getMetadataPartition
- Overrides:
getMetadataPartitionin classAbstractStorageEngine<RocksDBStoragePartition>
-
getType
-
getPersistedPartitionIds
Retrieves the IDs of persisted partitions for the store. This method scans the existing store directory to identify the partition IDs that are retained and need to be persisted. Note: For stores with blob transfer enabled, temporary partition directories may exist if the instance previously fails during a transfer. In such cases, temporary directories should be excluded from the returned partition IDs.- Returns:
- A set of IDs representing the persisted partitions.
-
createStoragePartition
public RocksDBStoragePartition createStoragePartition(StoragePartitionConfig storagePartitionConfig) - Specified by:
createStoragePartitionin classAbstractStorageEngine<RocksDBStoragePartition>
-
drop
public void drop()Description copied from class:AbstractStorageEngineDrop the whole store- Specified by:
dropin interfaceStorageEngine<RocksDBStoragePartition>- Overrides:
dropin classAbstractStorageEngine<RocksDBStoragePartition>
-
setRocksDBServerConfig
-
getIterator
- Specified by:
getIteratorin interfaceStorageEngine<RocksDBStoragePartition>- Overrides:
getIteratorin classAbstractStorageEngine<RocksDBStoragePartition>
-
getStats
-