Package com.linkedin.venice.meta
Class AbstractStore
java.lang.Object
com.linkedin.venice.meta.AbstractStore
- All Implemented Interfaces:
Store
- Direct Known Subclasses:
SystemStore,ZKStore
This is an abstraction of metadata maintained per Store.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final longDefault read quota 1800 QPS per nodestatic final intstatic final longDefault storage quota 20GBFields inherited from interface com.linkedin.venice.meta.Store
BOOTSTRAP_TO_ONLINE_TIMEOUT_IN_HOURS, DEFAULT_BATCH_GET_LIMIT, DEFAULT_RT_RETENTION_TIME, IGNORE_VERSION, NON_EXISTING_VERSION, NUM_VERSION_PRESERVE_NOT_SET, SYSTEM_STORE_FORMAT, SYSTEM_STORE_NAME_PREFIX, UNLIMITED_STORAGE_QUOTA -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddVersion(Version version) voidaddVersion(Version version, boolean isClonedVersion, int currentRTVersionNumber) voidcheckDisableStoreWrite(String action, int version) booleancontainsVersion(int versionNumber) deleteVersion(int versionNumber) voidvoidforceAddVersion(Version version, boolean isClonedVersion) getVersion(int versionNumber) getVersionOrThrow(int versionNumber) getVersionStatus(int versionNumber) booleanintretrieveVersionsToDelete(int clusterNumVersionsToPreserve) protected voidsetupVersionSupplier(AbstractStore.StoreVersionSupplier versionsSupplier) This function should be invoked only once.voidsetVersions(List<Version> versions) voidupdateVersionForDaVinciHeartbeat(int versionNumber, boolean reported) voidupdateVersionStatus(int versionNumber, VersionStatus status) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.linkedin.venice.meta.Store
cloneStore, getBackupStrategy, getBackupVersionRetentionMs, getBatchGetLimit, getBlobTransferInServerEnabled, getBootstrapToOnlineTimeoutInHours, getClientDecompressionEnabled, getCompactionThresholdMilliseconds, getCompressionStrategy, getCreatedTime, getCurrentVersion, getEtlStoreConfig, getHybridStoreConfig, getIsDavinciHeartbeatReported, getKeyUrnFields, getLargestUsedRTVersionNumber, getLargestUsedVersionNumber, getLatestSuperSetValueSchemaId, getLatestVersionPromoteToCurrentTimestamp, getLowWatermark, getMaxCompactionLagSeconds, getMaxNearlineRecordSizeBytes, getMaxRecordSizeBytes, getMinCompactionLagSeconds, getName, getNativeReplicationSourceFabric, getNearlineProducerCountPerWriter, getNumVersionsToPreserve, getOffLinePushStrategy, getOwner, getPartitionCount, getPartitionerConfig, getPersistenceType, getPushStreamSourceAddress, getReadQuotaInCU, getReadStrategy, getReplicationFactor, getRetentionTime, getRmdVersion, getRoutingStrategy, getStorageQuotaInByte, getStoreLifecycleHooks, getSystemStores, getTargetSwapRegion, getTargetSwapRegionWaitTime, getVersionNumbers, getViewConfigs, isAccessControlled, isActiveActiveReplicationEnabled, isBlobTransferEnabled, isChunkingEnabled, isCompactionEnabled, isDaVinciPushStatusStoreEnabled, isEnableReads, isEnableWrites, isEnumSchemaEvolutionAllowed, isGlobalRtDivEnabled, isHybrid, isHybridStoreDiskQuotaEnabled, isIncrementalPushEnabled, isKeyUrnCompressionEnabled, isMigrating, isMigrationDuplicateStore, isNativeReplicationEnabled, isNearlineProducerCompressionEnabled, isReadComputationEnabled, isRmdChunkingEnabled, isSchemaAutoRegisterFromPushJobEnabled, isSeparateRealTimeTopicEnabled, isStorageNodeReadQuotaEnabled, isStoreMetadataSystemStoreEnabled, isStoreMetaSystemStoreEnabled, isTTLRepushEnabled, isUnusedSchemaDeletionEnabled, isWriteComputationEnabled, putSystemStore, setAccessControlled, setActiveActiveReplicationEnabled, setBackupStrategy, setBackupVersionRetentionMs, setBatchGetLimit, setBlobTransferEnabled, setBlobTransferInServerEnabled, setBootstrapToOnlineTimeoutInHours, setChunkingEnabled, setClientDecompressionEnabled, setCompactionEnabled, setCompactionThresholdMilliseconds, setCompressionStrategy, setCurrentVersion, setCurrentVersionWithoutCheck, setDaVinciPushStatusStoreEnabled, setEnableReads, setEnableWrites, setEnumSchemaEvolutionAllowed, setEtlStoreConfig, setGlobalRtDivEnabled, setHybridStoreConfig, setHybridStoreDiskQuotaEnabled, setIncrementalPushEnabled, setIsDavinciHeartbeatReported, setKeyUrnCompressionEnabled, setKeyUrnFields, setLargestUsedRTVersionNumber, setLargestUsedVersionNumber, setLatestSuperSetValueSchemaId, setLatestVersionPromoteToCurrentTimestamp, setLowWatermark, setMaxCompactionLagSeconds, setMaxNearlineRecordSizeBytes, setMaxRecordSizeBytes, setMigrating, setMigrationDuplicateStore, setMinCompactionLagSeconds, setNativeReplicationEnabled, setNativeReplicationSourceFabric, setNearlineProducerCompressionEnabled, setNearlineProducerCountPerWriter, setNumVersionsToPreserve, setOwner, setPartitionCount, setPartitionerConfig, setPersistenceType, setPushStreamSourceAddress, setReadComputationEnabled, setReadQuotaInCU, setReplicationFactor, setRmdChunkingEnabled, setRmdVersion, setSchemaAutoRegisterFromPushJobEnabled, setSeparateRealTimeTopicEnabled, setStorageNodeReadQuotaEnabled, setStorageQuotaInByte, setStoreLifecycleHooks, setStoreMetadataSystemStoreEnabled, setStoreMetaSystemStoreEnabled, setSystemStores, setTargetSwapRegion, setTargetSwapRegionWaitTime, setTTLRepushEnabled, setUnusedSchemaDeletionEnabled, setViewConfigs, setWriteComputationEnabled
-
Field Details
-
DEFAULT_REPLICATION_FACTOR
public static final int DEFAULT_REPLICATION_FACTOR- See Also:
-
DEFAULT_STORAGE_QUOTA
public static final long DEFAULT_STORAGE_QUOTADefault storage quota 20GB- See Also:
-
DEFAULT_READ_QUOTA
public static final long DEFAULT_READ_QUOTADefault read quota 1800 QPS per node- See Also:
-
-
Constructor Details
-
AbstractStore
public AbstractStore()
-
-
Method Details
-
setupVersionSupplier
This function should be invoked only once. -
getVersions
- Specified by:
getVersionsin interfaceStore
-
setVersions
- Specified by:
setVersionsin interfaceStore
-
addVersion
- Specified by:
addVersionin interfaceStore
-
addVersion
- Specified by:
addVersionin interfaceStore
-
forceAddVersion
- Specified by:
forceAddVersionin interfaceStore
-
checkDisableStoreWrite
- Specified by:
checkDisableStoreWritein interfaceStore
-
deleteVersion
- Specified by:
deleteVersionin interfaceStore
-
containsVersion
public boolean containsVersion(int versionNumber) - Specified by:
containsVersionin interfaceStore
-
updateVersionStatus
- Specified by:
updateVersionStatusin interfaceStore
-
peekNextVersionNumber
public int peekNextVersionNumber()- Specified by:
peekNextVersionNumberin interfaceStore
-
getVersion
- Specified by:
getVersionin interfaceStore- Parameters:
versionNumber- for which to get theVersion- Returns:
- the
Versioncorresponding to the provided , or null if no such version exists
-
getVersionOrThrow
- Specified by:
getVersionOrThrowin interfaceStore- Throws:
StoreVersionNotFoundException
-
getVersionStatus
- Specified by:
getVersionStatusin interfaceStore
-
retrieveVersionsToDelete
- Specified by:
retrieveVersionsToDeletein interfaceStore
-
isSystemStore
public boolean isSystemStore()- Specified by:
isSystemStorein interfaceStore
-
fixMissingFields
public void fixMissingFields()- Specified by:
fixMissingFieldsin interfaceStore
-
updateVersionForDaVinciHeartbeat
public void updateVersionForDaVinciHeartbeat(int versionNumber, boolean reported) - Specified by:
updateVersionForDaVinciHeartbeatin interfaceStore
-