Package com.linkedin.venice.meta
Class ReadOnlyStore.ReadOnlyVersion
- java.lang.Object
-
- com.linkedin.venice.meta.ReadOnlyStore.ReadOnlyVersion
-
- All Implemented Interfaces:
DataModelBackedStructure<StoreVersion>
,Version
,java.lang.Comparable<Version>
- Enclosing class:
- ReadOnlyStore
public static class ReadOnlyStore.ReadOnlyVersion extends java.lang.Object implements Version
A read-only wrapper ofVersion
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.linkedin.venice.meta.Version
Version.PushType
-
-
Field Summary
-
Fields inherited from interface com.linkedin.venice.meta.Version
REAL_TIME_TOPIC_SUFFIX, REPLICATION_METADATA_VERSION_ID_UNSET, SEPARATE_REAL_TIME_TOPIC_SUFFIX, STREAM_REPROCESSING_TOPIC_SUFFIX, VENICE_RE_PUSH_PUSH_ID_PREFIX, VERSION_SEPARATOR
-
-
Constructor Summary
Constructors Constructor Description ReadOnlyVersion(Version delegate)
-
Method Summary
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.linkedin.venice.meta.Version
getTimestampMetadataVersionId, isLeaderFollowerModelEnabled, setLeaderFollowerModelEnabled, setTimestampMetadataVersionId
-
-
-
-
Constructor Detail
-
ReadOnlyVersion
public ReadOnlyVersion(Version delegate)
-
-
Method Detail
-
getCreatedTime
public long getCreatedTime()
- Specified by:
getCreatedTime
in interfaceVersion
-
getStatus
public VersionStatus getStatus()
-
setStatus
public void setStatus(VersionStatus status)
-
getCompressionStrategy
public CompressionStrategy getCompressionStrategy()
- Specified by:
getCompressionStrategy
in interfaceVersion
-
setCompressionStrategy
public void setCompressionStrategy(CompressionStrategy compressionStrategy)
- Specified by:
setCompressionStrategy
in interfaceVersion
-
isNativeReplicationEnabled
public boolean isNativeReplicationEnabled()
- Specified by:
isNativeReplicationEnabled
in interfaceVersion
-
setNativeReplicationEnabled
public void setNativeReplicationEnabled(boolean nativeReplicationEnabled)
- Specified by:
setNativeReplicationEnabled
in interfaceVersion
-
getPushStreamSourceAddress
public java.lang.String getPushStreamSourceAddress()
- Specified by:
getPushStreamSourceAddress
in interfaceVersion
-
setPushStreamSourceAddress
public void setPushStreamSourceAddress(java.lang.String address)
- Specified by:
setPushStreamSourceAddress
in interfaceVersion
-
setBufferReplayEnabledForHybrid
public void setBufferReplayEnabledForHybrid(boolean bufferReplayEnabledForHybrid)
- Specified by:
setBufferReplayEnabledForHybrid
in interfaceVersion
-
isChunkingEnabled
public boolean isChunkingEnabled()
- Specified by:
isChunkingEnabled
in interfaceVersion
-
setChunkingEnabled
public void setChunkingEnabled(boolean chunkingEnabled)
- Specified by:
setChunkingEnabled
in interfaceVersion
-
isRmdChunkingEnabled
public boolean isRmdChunkingEnabled()
- Specified by:
isRmdChunkingEnabled
in interfaceVersion
-
setRmdChunkingEnabled
public void setRmdChunkingEnabled(boolean rmdChunkingEnabled)
- Specified by:
setRmdChunkingEnabled
in interfaceVersion
-
getStoreName
public java.lang.String getStoreName()
- Specified by:
getStoreName
in interfaceVersion
-
getPushJobId
public java.lang.String getPushJobId()
- Specified by:
getPushJobId
in interfaceVersion
-
setPushJobId
public void setPushJobId(java.lang.String pushJobId)
- Specified by:
setPushJobId
in interfaceVersion
-
getPushType
public Version.PushType getPushType()
- Specified by:
getPushType
in interfaceVersion
-
setPushType
public void setPushType(Version.PushType pushType)
- Specified by:
setPushType
in interfaceVersion
-
setPartitionCount
public void setPartitionCount(int partitionCount)
- Specified by:
setPartitionCount
in interfaceVersion
-
getPartitionCount
public int getPartitionCount()
- Specified by:
getPartitionCount
in interfaceVersion
-
getPartitionerConfig
public PartitionerConfig getPartitionerConfig()
- Specified by:
getPartitionerConfig
in interfaceVersion
-
setPartitionerConfig
public void setPartitionerConfig(PartitionerConfig partitionerConfig)
- Specified by:
setPartitionerConfig
in interfaceVersion
-
isVersionSwapDeferred
public boolean isVersionSwapDeferred()
- Specified by:
isVersionSwapDeferred
in interfaceVersion
-
setVersionSwapDeferred
public void setVersionSwapDeferred(boolean versionSwapDeferred)
- Specified by:
setVersionSwapDeferred
in interfaceVersion
-
getReplicationFactor
public int getReplicationFactor()
- Specified by:
getReplicationFactor
in interfaceVersion
-
setReplicationFactor
public void setReplicationFactor(int replicationFactor)
- Specified by:
setReplicationFactor
in interfaceVersion
-
getMinActiveReplicas
public int getMinActiveReplicas()
- Specified by:
getMinActiveReplicas
in interfaceVersion
-
getNativeReplicationSourceFabric
public java.lang.String getNativeReplicationSourceFabric()
- Specified by:
getNativeReplicationSourceFabric
in interfaceVersion
-
setNativeReplicationSourceFabric
public void setNativeReplicationSourceFabric(java.lang.String nativeReplicationSourceFabric)
- Specified by:
setNativeReplicationSourceFabric
in interfaceVersion
-
isIncrementalPushEnabled
public boolean isIncrementalPushEnabled()
- Specified by:
isIncrementalPushEnabled
in interfaceVersion
-
setIncrementalPushEnabled
public void setIncrementalPushEnabled(boolean incrementalPushEnabled)
- Specified by:
setIncrementalPushEnabled
in interfaceVersion
-
isSeparateRealTimeTopicEnabled
public boolean isSeparateRealTimeTopicEnabled()
- Specified by:
isSeparateRealTimeTopicEnabled
in interfaceVersion
-
setSeparateRealTimeTopicEnabled
public void setSeparateRealTimeTopicEnabled(boolean separateRealTimeTopicEnabled)
- Specified by:
setSeparateRealTimeTopicEnabled
in interfaceVersion
-
isBlobTransferEnabled
public boolean isBlobTransferEnabled()
- Specified by:
isBlobTransferEnabled
in interfaceVersion
-
setBlobTransferEnabled
public void setBlobTransferEnabled(boolean blobTransferEnabled)
- Specified by:
setBlobTransferEnabled
in interfaceVersion
-
isUseVersionLevelIncrementalPushEnabled
public boolean isUseVersionLevelIncrementalPushEnabled()
- Specified by:
isUseVersionLevelIncrementalPushEnabled
in interfaceVersion
-
setUseVersionLevelIncrementalPushEnabled
public void setUseVersionLevelIncrementalPushEnabled(boolean versionLevelIncrementalPushEnabled)
- Specified by:
setUseVersionLevelIncrementalPushEnabled
in interfaceVersion
-
getHybridStoreConfig
public HybridStoreConfig getHybridStoreConfig()
- Specified by:
getHybridStoreConfig
in interfaceVersion
-
setHybridStoreConfig
public void setHybridStoreConfig(HybridStoreConfig hybridConfig)
- Specified by:
setHybridStoreConfig
in interfaceVersion
-
getViewConfigs
public java.util.Map<java.lang.String,ViewConfig> getViewConfigs()
- Specified by:
getViewConfigs
in interfaceVersion
-
setViewConfigs
public void setViewConfigs(java.util.Map<java.lang.String,ViewConfig> viewConfigList)
- Specified by:
setViewConfigs
in interfaceVersion
-
isUseVersionLevelHybridConfig
public boolean isUseVersionLevelHybridConfig()
- Specified by:
isUseVersionLevelHybridConfig
in interfaceVersion
-
setUseVersionLevelHybridConfig
public void setUseVersionLevelHybridConfig(boolean versionLevelHybridConfig)
- Specified by:
setUseVersionLevelHybridConfig
in interfaceVersion
-
isActiveActiveReplicationEnabled
public boolean isActiveActiveReplicationEnabled()
- Specified by:
isActiveActiveReplicationEnabled
in interfaceVersion
-
setActiveActiveReplicationEnabled
public void setActiveActiveReplicationEnabled(boolean activeActiveReplicationEnabled)
- Specified by:
setActiveActiveReplicationEnabled
in interfaceVersion
-
getDataRecoveryVersionConfig
public DataRecoveryVersionConfig getDataRecoveryVersionConfig()
- Specified by:
getDataRecoveryVersionConfig
in interfaceVersion
-
setDataRecoveryVersionConfig
public void setDataRecoveryVersionConfig(DataRecoveryVersionConfig dataRecoveryVersionConfig)
- Specified by:
setDataRecoveryVersionConfig
in interfaceVersion
-
setRepushSourceVersion
public void setRepushSourceVersion(int version)
- Specified by:
setRepushSourceVersion
in interfaceVersion
-
getRepushSourceVersion
public int getRepushSourceVersion()
- Specified by:
getRepushSourceVersion
in interfaceVersion
-
getRmdVersionId
public int getRmdVersionId()
- Specified by:
getRmdVersionId
in interfaceVersion
-
setRmdVersionId
public void setRmdVersionId(int replicationMetadataVersionId)
- Specified by:
setRmdVersionId
in interfaceVersion
-
cloneVersion
public Version cloneVersion()
- Specified by:
cloneVersion
in interfaceVersion
-
kafkaTopicName
public java.lang.String kafkaTopicName()
Description copied from interface:Version
Kafka topic name is composed by store name and version.The Json deserializer will think it should be a field called kafkaTopicName if we use "getKafkaTopicName" here. So use "kafkaTopicName" directly here to avoid error when deserialize.
- Specified by:
kafkaTopicName
in interfaceVersion
- Returns:
- kafka topic name.
-
dataModel
public StoreVersion dataModel()
Description copied from interface:DataModelBackedStructure
Return the backed data model.- Specified by:
dataModel
in interfaceDataModelBackedStructure<StoreVersion>
- Returns:
-
compareTo
public int compareTo(Version o)
- Specified by:
compareTo
in interfacejava.lang.Comparable<Version>
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
-