Package com.linkedin.davinci.store.cache
Class VeniceStoreCacheStorageEngine
java.lang.Object
com.linkedin.davinci.store.AbstractStorageEngine<VeniceStoreCacheStoragePartition>
com.linkedin.davinci.store.cache.VeniceStoreCacheStorageEngine
- All Implemented Interfaces:
Closeable
,AutoCloseable
public class VeniceStoreCacheStorageEngine
extends AbstractStorageEngine<VeniceStoreCacheStoragePartition>
-
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
ConstructorDescriptionVeniceStoreCacheStorageEngine
(String storeVersionName, ObjectCacheConfig config, org.apache.avro.Schema keySchema, com.github.benmanes.caffeine.cache.AsyncCacheLoader asyncCacheLoader) -
Method Summary
Modifier and TypeMethodDescriptioncreateStoragePartition
(StoragePartitionConfig partitionConfig) getCache()
getPartitionOrThrow
(int partitionId) getRWLockForPartitionOrThrow
(int partitionId) Making it public is for testing purpose.long
getType()
<K,
V> void putDeserializedValue
(K key, V value) Methods inherited from class com.linkedin.davinci.store.AbstractStorageEngine
addStoragePartition, addStoragePartition, adjustStoragePartition, beginBatchWrite, checkDatabaseIntegrity, clearPartitionOffset, clearStoreVersionState, close, closeMetadataPartition, closePartition, containsPartition, createSnapshot, delete, deleteWithReplicationMetadata, drop, dropMetadataPartition, dropPartition, endBatchWrite, get, get, get, getByKeyPrefix, getCachedRMDSizeInBytes, getCachedStoreSizeInBytes, getCompressionStrategy, getIterator, getMetadataPartition, getNumberOfPartitions, getPartitionIds, getPartitionOffset, getPartitionSizeInBytes, getReplicationMetadata, getRMDSizeInBytes, getStoreVersionName, getStoreVersionState, hasMemorySpaceLeft, isChunked, isClosed, isMetadataPartition, put, put, put, putPartitionOffset, putReplicationMetadata, putStoreVersionState, putWithReplicationMetadata, reopenStoragePartition, restoreStoragePartitions, restoreStoragePartitions, suppressLogs, sync, toString, updateStoreVersionStateCache
-
Constructor Details
-
VeniceStoreCacheStorageEngine
public VeniceStoreCacheStorageEngine(String storeVersionName, ObjectCacheConfig config, org.apache.avro.Schema keySchema, com.github.benmanes.caffeine.cache.AsyncCacheLoader asyncCacheLoader)
-
-
Method Details
-
getType
- Specified by:
getType
in classAbstractStorageEngine<VeniceStoreCacheStoragePartition>
-
getStoreSizeInBytes
public long getStoreSizeInBytes()- Specified by:
getStoreSizeInBytes
in classAbstractStorageEngine<VeniceStoreCacheStoragePartition>
-
getPersistedPartitionIds
- Specified by:
getPersistedPartitionIds
in classAbstractStorageEngine<VeniceStoreCacheStoragePartition>
-
createStoragePartition
public VeniceStoreCacheStoragePartition createStoragePartition(StoragePartitionConfig partitionConfig) - Specified by:
createStoragePartition
in classAbstractStorageEngine<VeniceStoreCacheStoragePartition>
-
getPartitionOrThrow
- Overrides:
getPartitionOrThrow
in classAbstractStorageEngine<VeniceStoreCacheStoragePartition>
-
getRWLockForPartitionOrThrow
Description copied from class:AbstractStorageEngine
Making it public is for testing purpose.- Overrides:
getRWLockForPartitionOrThrow
in classAbstractStorageEngine<VeniceStoreCacheStoragePartition>
-
putDeserializedValue
public <K,V> void putDeserializedValue(K key, V value) -
getCache
-