Package com.linkedin.venice.meta
Interface Store
- All Known Implementing Classes:
AbstractStore
,ReadOnlyStore
,SystemStore
,ZKStore
public interface Store
This interface defines all the public APIs, and if you need to add accessors to
some new fields, this interface needs to be changed accordingly.
IMPORTANT: getter functions must start with `is` for boolean result and `get` for other types, and setter functions
must start with `set`!
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
static final int
static final long
static final int
static final int
Special version number indicates none of version is available to read.static final int
Default value of numVersionPreserve, by default we should use cluster level config instead of store level config.static final String
static final String
static final long
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addVersion
(Version version) void
addVersion
(Version version, boolean isClonedVersion) void
checkDisableStoreWrite
(String action, int version) boolean
containsVersion
(int versionNumber) deleteVersion
(int versionNumber) void
void
forceAddVersion
(Version version, boolean isClonedVersion) long
int
int
boolean
long
int
boolean
int
int
long
long
long
int
int
long
getName()
int
int
getOwner()
int
long
int
long
int
long
int
getVersion
(int versionNumber) getVersionOrThrow
(int versionNumber) getVersionStatus
(int versionNumber) boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
isHybrid()
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
static boolean
isSystemStore
(String storeName) boolean
boolean
void
putSystemStore
(VeniceSystemStoreType systemStoreType, SystemStoreAttributes systemStoreAttributes) retrieveVersionsToDelete
(int clusterNumVersionsToPreserve) void
setAccessControlled
(boolean accessControlled) void
setActiveActiveReplicationEnabled
(boolean activeActiveReplicationEnabled) void
setBackupStrategy
(BackupStrategy value) void
setBackupVersionRetentionMs
(long backupVersionRetentionMs) void
setBatchGetLimit
(int batchGetLimit) void
setBlobTransferEnabled
(boolean blobTransferEnabled) void
setBootstrapToOnlineTimeoutInHours
(int bootstrapToOnlineTimeoutInHours) void
setChunkingEnabled
(boolean chunkingEnabled) void
setClientDecompressionEnabled
(boolean clientDecompressionEnabled) void
setCompressionStrategy
(CompressionStrategy compressionStrategy) void
setCurrentVersion
(int currentVersion) void
setCurrentVersionWithoutCheck
(int currentVersion) void
setDaVinciPushStatusStoreEnabled
(boolean daVinciPushStatusStoreEnabled) void
setEnableReads
(boolean enableReads) void
setEnableWrites
(boolean enableWrites) void
setEtlStoreConfig
(ETLStoreConfig etlStoreConfig) void
setHybridStoreConfig
(HybridStoreConfig hybridStoreConfig) void
setHybridStoreDiskQuotaEnabled
(boolean enabled) void
setIncrementalPushEnabled
(boolean incrementalPushEnabled) void
setIsDavinciHeartbeatReported
(boolean isReported) void
setLargestUsedVersionNumber
(int largestUsedVersionNumber) void
setLatestSuperSetValueSchemaId
(int valueSchemaId) void
setLatestVersionPromoteToCurrentTimestamp
(long latestVersionPromoteToCurrentTimestamp) void
setLowWatermark
(long lowWatermark) void
setMaxCompactionLagSeconds
(long maxCompactionLagSeconds) void
setMaxNearlineRecordSizeBytes
(int maxNearlineRecordSizeBytes) void
setMaxRecordSizeBytes
(int maxRecordSizeBytes) void
setMigrating
(boolean migrating) void
setMigrationDuplicateStore
(boolean migrationDuplicateStore) void
setMinCompactionLagSeconds
(long minCompactionLagSeconds) void
setNativeReplicationEnabled
(boolean nativeReplicationEnabled) void
setNativeReplicationSourceFabric
(String nativeReplicationSourceFabric) void
setNearlineProducerCompressionEnabled
(boolean compressionEnabled) void
setNearlineProducerCountPerWriter
(int producerCnt) void
setNumVersionsToPreserve
(int numVersionsToPreserve) void
void
setPartitionCount
(int partitionCount) void
void
setPersistenceType
(PersistenceType persistenceType) void
setPushStreamSourceAddress
(String sourceAddress) void
setReadComputationEnabled
(boolean readComputationEnabled) void
setReadQuotaInCU
(long readQuotaInCU) void
setReplicationFactor
(int replicationFactor) void
setRmdChunkingEnabled
(boolean rmdChunkingEnabled) void
setRmdVersion
(int rmdVersion) void
setSchemaAutoRegisterFromPushJobEnabled
(boolean value) void
setSeparateRealTimeTopicEnabled
(boolean separateRealTimeTopicEnabled) void
setStorageNodeReadQuotaEnabled
(boolean storageNodeReadQuotaEnabled) void
setStorageQuotaInByte
(long storageQuotaInByte) void
setStoreMetadataSystemStoreEnabled
(boolean storeMetadataSystemStoreEnabled) void
setStoreMetaSystemStoreEnabled
(boolean storeMetaSystemStoreEnabled) void
setSystemStores
(Map<String, SystemStoreAttributes> systemStores) void
setTargetSwapRegion
(String targetRegion) void
setTargetSwapRegionWaitTime
(int waitTime) void
setUnusedSchemaDeletionEnabled
(boolean unusedSchemaDeletionEnabled) void
setVersions
(List<Version> versions) void
setViewConfigs
(Map<String, ViewConfig> viewConfigMap) void
setWriteComputationEnabled
(boolean writeComputationEnabled) void
updateVersionForDaVinciHeartbeat
(int versionNumber, boolean reported) void
updateVersionStatus
(int versionNumber, VersionStatus status)
-
Field Details
-
NON_EXISTING_VERSION
static final int NON_EXISTING_VERSIONSpecial version number indicates none of version is available to read.- See Also:
-
NUM_VERSION_PRESERVE_NOT_SET
static final int NUM_VERSION_PRESERVE_NOT_SETDefault value of numVersionPreserve, by default we should use cluster level config instead of store level config.- See Also:
-
SYSTEM_STORE_NAME_PREFIX
- See Also:
-
SYSTEM_STORE_FORMAT
- See Also:
-
UNLIMITED_STORAGE_QUOTA
static final long UNLIMITED_STORAGE_QUOTA- See Also:
-
IGNORE_VERSION
static final int IGNORE_VERSION- See Also:
-
BOOTSTRAP_TO_ONLINE_TIMEOUT_IN_HOURS
static final int BOOTSTRAP_TO_ONLINE_TIMEOUT_IN_HOURS- See Also:
-
DEFAULT_RT_RETENTION_TIME
static final long DEFAULT_RT_RETENTION_TIME -
DEFAULT_BATCH_GET_LIMIT
static final int DEFAULT_BATCH_GET_LIMIT- See Also:
-
-
Method Details
-
isSystemStore
-
getName
String getName() -
getOwner
String getOwner() -
setOwner
-
getCreatedTime
long getCreatedTime() -
getCurrentVersion
int getCurrentVersion() -
setCurrentVersion
void setCurrentVersion(int currentVersion) -
setCurrentVersionWithoutCheck
void setCurrentVersionWithoutCheck(int currentVersion) -
getLowWatermark
long getLowWatermark() -
setLowWatermark
void setLowWatermark(long lowWatermark) -
getPersistenceType
PersistenceType getPersistenceType() -
setPersistenceType
-
getRoutingStrategy
RoutingStrategy getRoutingStrategy() -
getReadStrategy
ReadStrategy getReadStrategy() -
getOffLinePushStrategy
OfflinePushStrategy getOffLinePushStrategy() -
getLargestUsedVersionNumber
int getLargestUsedVersionNumber() -
setLargestUsedVersionNumber
void setLargestUsedVersionNumber(int largestUsedVersionNumber) -
getStorageQuotaInByte
long getStorageQuotaInByte() -
setStorageQuotaInByte
void setStorageQuotaInByte(long storageQuotaInByte) -
getPartitionCount
int getPartitionCount() -
setPartitionCount
void setPartitionCount(int partitionCount) -
getPartitionerConfig
PartitionerConfig getPartitionerConfig() -
setPartitionerConfig
-
isEnableWrites
boolean isEnableWrites() -
setEnableWrites
void setEnableWrites(boolean enableWrites) -
isEnableReads
boolean isEnableReads() -
setEnableReads
void setEnableReads(boolean enableReads) -
getReadQuotaInCU
long getReadQuotaInCU() -
setReadQuotaInCU
void setReadQuotaInCU(long readQuotaInCU) -
getHybridStoreConfig
HybridStoreConfig getHybridStoreConfig() -
setHybridStoreConfig
-
getViewConfigs
Map<String,ViewConfig> getViewConfigs() -
setViewConfigs
-
isHybrid
boolean isHybrid() -
getCompressionStrategy
CompressionStrategy getCompressionStrategy() -
setCompressionStrategy
-
getClientDecompressionEnabled
boolean getClientDecompressionEnabled() -
setClientDecompressionEnabled
void setClientDecompressionEnabled(boolean clientDecompressionEnabled) -
isChunkingEnabled
boolean isChunkingEnabled() -
setChunkingEnabled
void setChunkingEnabled(boolean chunkingEnabled) -
isRmdChunkingEnabled
boolean isRmdChunkingEnabled() -
setRmdChunkingEnabled
void setRmdChunkingEnabled(boolean rmdChunkingEnabled) -
getBatchGetLimit
int getBatchGetLimit() -
setBatchGetLimit
void setBatchGetLimit(int batchGetLimit) -
isIncrementalPushEnabled
boolean isIncrementalPushEnabled() -
setIncrementalPushEnabled
void setIncrementalPushEnabled(boolean incrementalPushEnabled) -
isSeparateRealTimeTopicEnabled
boolean isSeparateRealTimeTopicEnabled() -
setSeparateRealTimeTopicEnabled
void setSeparateRealTimeTopicEnabled(boolean separateRealTimeTopicEnabled) -
isAccessControlled
boolean isAccessControlled() -
setAccessControlled
void setAccessControlled(boolean accessControlled) -
isMigrating
boolean isMigrating() -
setMigrating
void setMigrating(boolean migrating) -
getNumVersionsToPreserve
int getNumVersionsToPreserve() -
setNumVersionsToPreserve
void setNumVersionsToPreserve(int numVersionsToPreserve) -
isWriteComputationEnabled
boolean isWriteComputationEnabled() -
setWriteComputationEnabled
void setWriteComputationEnabled(boolean writeComputationEnabled) -
isReadComputationEnabled
boolean isReadComputationEnabled() -
setReadComputationEnabled
void setReadComputationEnabled(boolean readComputationEnabled) -
getBootstrapToOnlineTimeoutInHours
int getBootstrapToOnlineTimeoutInHours() -
setBootstrapToOnlineTimeoutInHours
void setBootstrapToOnlineTimeoutInHours(int bootstrapToOnlineTimeoutInHours) -
getPushStreamSourceAddress
String getPushStreamSourceAddress() -
setPushStreamSourceAddress
-
isNativeReplicationEnabled
boolean isNativeReplicationEnabled() -
getRmdVersion
int getRmdVersion() -
setRmdVersion
void setRmdVersion(int rmdVersion) -
setNativeReplicationEnabled
void setNativeReplicationEnabled(boolean nativeReplicationEnabled) -
getBackupStrategy
BackupStrategy getBackupStrategy() -
setBackupStrategy
-
isSchemaAutoRegisterFromPushJobEnabled
boolean isSchemaAutoRegisterFromPushJobEnabled() -
setSchemaAutoRegisterFromPushJobEnabled
void setSchemaAutoRegisterFromPushJobEnabled(boolean value) -
getLatestSuperSetValueSchemaId
int getLatestSuperSetValueSchemaId() -
setLatestSuperSetValueSchemaId
void setLatestSuperSetValueSchemaId(int valueSchemaId) -
isHybridStoreDiskQuotaEnabled
boolean isHybridStoreDiskQuotaEnabled() -
setHybridStoreDiskQuotaEnabled
void setHybridStoreDiskQuotaEnabled(boolean enabled) -
getEtlStoreConfig
ETLStoreConfig getEtlStoreConfig() -
setEtlStoreConfig
-
isStoreMetadataSystemStoreEnabled
boolean isStoreMetadataSystemStoreEnabled() -
setStoreMetadataSystemStoreEnabled
void setStoreMetadataSystemStoreEnabled(boolean storeMetadataSystemStoreEnabled) -
isStoreMetaSystemStoreEnabled
boolean isStoreMetaSystemStoreEnabled() -
setStoreMetaSystemStoreEnabled
void setStoreMetaSystemStoreEnabled(boolean storeMetaSystemStoreEnabled) -
getLatestVersionPromoteToCurrentTimestamp
long getLatestVersionPromoteToCurrentTimestamp() -
setLatestVersionPromoteToCurrentTimestamp
void setLatestVersionPromoteToCurrentTimestamp(long latestVersionPromoteToCurrentTimestamp) -
getBackupVersionRetentionMs
long getBackupVersionRetentionMs() -
setBackupVersionRetentionMs
void setBackupVersionRetentionMs(long backupVersionRetentionMs) -
getRetentionTime
long getRetentionTime() -
getReplicationFactor
int getReplicationFactor() -
setReplicationFactor
void setReplicationFactor(int replicationFactor) -
isMigrationDuplicateStore
boolean isMigrationDuplicateStore() -
setMigrationDuplicateStore
void setMigrationDuplicateStore(boolean migrationDuplicateStore) -
getNativeReplicationSourceFabric
String getNativeReplicationSourceFabric() -
setNativeReplicationSourceFabric
-
isActiveActiveReplicationEnabled
boolean isActiveActiveReplicationEnabled() -
setActiveActiveReplicationEnabled
void setActiveActiveReplicationEnabled(boolean activeActiveReplicationEnabled) -
getSystemStores
Map<String,SystemStoreAttributes> getSystemStores() -
setSystemStores
-
putSystemStore
void putSystemStore(VeniceSystemStoreType systemStoreType, SystemStoreAttributes systemStoreAttributes) -
isDaVinciPushStatusStoreEnabled
boolean isDaVinciPushStatusStoreEnabled() -
setDaVinciPushStatusStoreEnabled
void setDaVinciPushStatusStoreEnabled(boolean daVinciPushStatusStoreEnabled) -
cloneStore
Store cloneStore() -
getVersions
-
setVersions
-
addVersion
-
addVersion
-
forceAddVersion
-
checkDisableStoreWrite
-
deleteVersion
-
containsVersion
boolean containsVersion(int versionNumber) -
updateVersionStatus
-
peekNextVersion
Version peekNextVersion() -
getVersion
-
getVersionOrThrow
- Throws:
StoreVersionNotFoundException
-
getVersionStatus
-
retrieveVersionsToDelete
-
isSystemStore
boolean isSystemStore() -
fixMissingFields
void fixMissingFields() -
isStorageNodeReadQuotaEnabled
boolean isStorageNodeReadQuotaEnabled() -
setStorageNodeReadQuotaEnabled
void setStorageNodeReadQuotaEnabled(boolean storageNodeReadQuotaEnabled) -
getMinCompactionLagSeconds
long getMinCompactionLagSeconds() -
setMinCompactionLagSeconds
void setMinCompactionLagSeconds(long minCompactionLagSeconds) -
getMaxCompactionLagSeconds
long getMaxCompactionLagSeconds() -
setMaxCompactionLagSeconds
void setMaxCompactionLagSeconds(long maxCompactionLagSeconds) -
getMaxRecordSizeBytes
int getMaxRecordSizeBytes() -
setMaxRecordSizeBytes
void setMaxRecordSizeBytes(int maxRecordSizeBytes) -
getMaxNearlineRecordSizeBytes
int getMaxNearlineRecordSizeBytes() -
setMaxNearlineRecordSizeBytes
void setMaxNearlineRecordSizeBytes(int maxNearlineRecordSizeBytes) -
setUnusedSchemaDeletionEnabled
void setUnusedSchemaDeletionEnabled(boolean unusedSchemaDeletionEnabled) -
isUnusedSchemaDeletionEnabled
boolean isUnusedSchemaDeletionEnabled() -
isBlobTransferEnabled
boolean isBlobTransferEnabled() -
setBlobTransferEnabled
void setBlobTransferEnabled(boolean blobTransferEnabled) -
isNearlineProducerCompressionEnabled
boolean isNearlineProducerCompressionEnabled() -
setNearlineProducerCompressionEnabled
void setNearlineProducerCompressionEnabled(boolean compressionEnabled) -
getNearlineProducerCountPerWriter
int getNearlineProducerCountPerWriter() -
setNearlineProducerCountPerWriter
void setNearlineProducerCountPerWriter(int producerCnt) -
getTargetSwapRegion
String getTargetSwapRegion() -
getTargetSwapRegionWaitTime
int getTargetSwapRegionWaitTime() -
setTargetSwapRegion
-
setTargetSwapRegionWaitTime
void setTargetSwapRegionWaitTime(int waitTime) -
setIsDavinciHeartbeatReported
void setIsDavinciHeartbeatReported(boolean isReported) -
getIsDavinciHeartbeatReported
boolean getIsDavinciHeartbeatReported() -
updateVersionForDaVinciHeartbeat
void updateVersionForDaVinciHeartbeat(int versionNumber, boolean reported)
-