Class StoreVersion
java.lang.Object
org.apache.avro.specific.SpecificRecordBase
com.linkedin.venice.systemstore.schemas.StoreVersion
- All Implemented Interfaces:
Externalizable
,Serializable
,Comparable<org.apache.avro.specific.SpecificRecord>
,org.apache.avro.generic.GenericContainer
,org.apache.avro.generic.GenericRecord
,org.apache.avro.generic.IndexedRecord
,org.apache.avro.specific.SpecificRecord
public class StoreVersion
extends org.apache.avro.specific.SpecificRecordBase
implements org.apache.avro.specific.SpecificRecord
Type describes all the version attributes
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionboolean
Whether or not active/active replication is enabled for hybrid stores; eventually this config will replace native replication flag, when all stores are on A/Aboolean
Flag to indicate if the blob transfer is allowed or notboolean
Whether or not to enable buffer replay for hybrid.boolean
Whether or not large values are supported (via chunking).int
strategies used to compress/decompress Record's value, and default is 'NO_OP'long
Time when this version was created.Properties related to data recovery mode behavior for this version.boolean
flag that informs venice controller to defer marking this version as the serving version after instances report ready to serve.Properties related to Hybrid Store behavior.boolean
Flag to see if the store supports incremental push or notint
Incremental Push Policy to reconcile with real time pushes., and default is 'PUSH_TO_VERSION_TOPIC'boolean
Flag to indicate whether DVC is bootstrapping and sending heartbeatsboolean
Whether or not to use leader follower state transition.boolean
Whether or not native replication is enabled.The source fabric name to be uses in native replication.int
Version number.int
Partition count of this version.Config for custom partitioning.Address to the kafka broker which holds the source of truth topic for this store version.int
Producer type for this version, and default is 'BATCH'int
The number of replica this store version is keeping.int
For store version created from repush, indicates the source store version its created from.boolean
Whether or not large replication metadata are supported (via chunking).static final org.apache.avro.Schema
boolean
Flag to see if the store supports separate real-time topic for incremental push.int
Status of version, and default is 'STARTED'Name of the store which this version belong to.Controls what region to swap in the current version during target colo pushint
Controls how long to wait in minutes before swapping the version on the regionsint
The A/A timestamp metadata schema version ID that will be used to deserialize metadataPayload.boolean
Flag to see if hybridConfig at StoreVersion should be used.boolean
Flag to see if incrementalPushEnabled config at StoreVersion should be used.A list of views which describe and configure a downstream view of a venice store. -
Constructor Summary
ConstructorDescriptionDefault constructor.StoreVersion
(CharSequence storeName, Integer number, Long createdTime, Integer status, CharSequence pushJobId, Integer compressionStrategy, Boolean leaderFollowerModelEnabled, Boolean nativeReplicationEnabled, CharSequence pushStreamSourceAddress, Boolean bufferReplayEnabledForHybrid, Boolean chunkingEnabled, Boolean rmdChunkingEnabled, Integer pushType, Integer partitionCount, StorePartitionerConfig partitionerConfig, Integer incrementalPushPolicy, Integer replicationFactor, CharSequence nativeReplicationSourceFabric, Boolean incrementalPushEnabled, Boolean separateRealTimeTopicEnabled, Boolean blobTransferEnabled, Boolean useVersionLevelIncrementalPushEnabled, StoreHybridConfig hybridConfig, Boolean useVersionLevelHybridConfig, Boolean activeActiveReplicationEnabled, Integer timestampMetadataVersionId, DataRecoveryConfig dataRecoveryConfig, Boolean deferVersionSwap, Map<String, StoreViewConfig> views, Integer repushSourceVersion, CharSequence targetSwapRegion, Integer targetSwapRegionWaitTime, Boolean isDaVinciHeartBeatReported) All-args constructor. -
Method Summary
Modifier and TypeMethodDescriptionget
(int field$) boolean
Gets the value of the 'activeActiveReplicationEnabled' field.boolean
Gets the value of the 'blobTransferEnabled' field.boolean
Gets the value of the 'bufferReplayEnabledForHybrid' field.boolean
Gets the value of the 'chunkingEnabled' field.static org.apache.avro.Schema
int
Gets the value of the 'compressionStrategy' field.long
Gets the value of the 'createdTime' field.Gets the value of the 'dataRecoveryConfig' field.boolean
Gets the value of the 'deferVersionSwap' field.Gets the value of the 'hybridConfig' field.boolean
Gets the value of the 'incrementalPushEnabled' field.int
Gets the value of the 'incrementalPushPolicy' field.boolean
Gets the value of the 'isDaVinciHeartBeatReported' field.boolean
Gets the value of the 'leaderFollowerModelEnabled' field.boolean
Gets the value of the 'nativeReplicationEnabled' field.Gets the value of the 'nativeReplicationSourceFabric' field.int
Gets the value of the 'number' field.int
Gets the value of the 'partitionCount' field.Gets the value of the 'partitionerConfig' field.Gets the value of the 'pushJobId' field.Gets the value of the 'pushStreamSourceAddress' field.int
Gets the value of the 'pushType' field.int
Gets the value of the 'replicationFactor' field.int
Gets the value of the 'repushSourceVersion' field.boolean
Gets the value of the 'rmdChunkingEnabled' field.org.apache.avro.Schema
boolean
Gets the value of the 'separateRealTimeTopicEnabled' field.org.apache.avro.specific.SpecificData
int
Gets the value of the 'status' field.Gets the value of the 'storeName' field.Gets the value of the 'targetSwapRegion' field.int
Gets the value of the 'targetSwapRegionWaitTime' field.int
Gets the value of the 'timestampMetadataVersionId' field.boolean
Gets the value of the 'useVersionLevelHybridConfig' field.boolean
Gets the value of the 'useVersionLevelIncrementalPushEnabled' field.getViews()
Gets the value of the 'views' field.void
void
void
setActiveActiveReplicationEnabled
(boolean value) Sets the value of the 'activeActiveReplicationEnabled' field.void
setBlobTransferEnabled
(boolean value) Sets the value of the 'blobTransferEnabled' field.void
setBufferReplayEnabledForHybrid
(boolean value) Sets the value of the 'bufferReplayEnabledForHybrid' field.void
setChunkingEnabled
(boolean value) Sets the value of the 'chunkingEnabled' field.void
setCompressionStrategy
(int value) Sets the value of the 'compressionStrategy' field.void
setCreatedTime
(long value) Sets the value of the 'createdTime' field.void
Sets the value of the 'dataRecoveryConfig' field.void
setDeferVersionSwap
(boolean value) Sets the value of the 'deferVersionSwap' field.void
setHybridConfig
(StoreHybridConfig value) Sets the value of the 'hybridConfig' field.void
setIncrementalPushEnabled
(boolean value) Sets the value of the 'incrementalPushEnabled' field.void
setIncrementalPushPolicy
(int value) Sets the value of the 'incrementalPushPolicy' field.void
setIsDaVinciHeartBeatReported
(boolean value) Sets the value of the 'isDaVinciHeartBeatReported' field.void
setLeaderFollowerModelEnabled
(boolean value) Sets the value of the 'leaderFollowerModelEnabled' field.void
setNativeReplicationEnabled
(boolean value) Sets the value of the 'nativeReplicationEnabled' field.void
Sets the value of the 'nativeReplicationSourceFabric' field.void
setNumber
(int value) Sets the value of the 'number' field.void
setPartitionCount
(int value) Sets the value of the 'partitionCount' field.void
Sets the value of the 'partitionerConfig' field.void
setPushJobId
(CharSequence value) Sets the value of the 'pushJobId' field.void
Sets the value of the 'pushStreamSourceAddress' field.void
setPushType
(int value) Sets the value of the 'pushType' field.void
setReplicationFactor
(int value) Sets the value of the 'replicationFactor' field.void
setRepushSourceVersion
(int value) Sets the value of the 'repushSourceVersion' field.void
setRmdChunkingEnabled
(boolean value) Sets the value of the 'rmdChunkingEnabled' field.void
setSeparateRealTimeTopicEnabled
(boolean value) Sets the value of the 'separateRealTimeTopicEnabled' field.void
setStatus
(int value) Sets the value of the 'status' field.void
setStoreName
(CharSequence value) Sets the value of the 'storeName' field.void
setTargetSwapRegion
(CharSequence value) Sets the value of the 'targetSwapRegion' field.void
setTargetSwapRegionWaitTime
(int value) Sets the value of the 'targetSwapRegionWaitTime' field.void
setTimestampMetadataVersionId
(int value) Sets the value of the 'timestampMetadataVersionId' field.void
setUseVersionLevelHybridConfig
(boolean value) Sets the value of the 'useVersionLevelHybridConfig' field.void
setUseVersionLevelIncrementalPushEnabled
(boolean value) Sets the value of the 'useVersionLevelIncrementalPushEnabled' field.void
setViews
(Map<String, StoreViewConfig> value) Sets the value of the 'views' field.void
Methods inherited from class org.apache.avro.specific.SpecificRecordBase
compareTo, customDecode, customEncode, equals, get, getConversion, getConversion, hasCustomCoders, hashCode, put, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.apache.avro.generic.GenericRecord
hasField
-
Field Details
-
SCHEMA$
public static final org.apache.avro.Schema SCHEMA$ -
storeName
Name of the store which this version belong to. -
number
public int numberVersion number. -
createdTime
public long createdTimeTime when this version was created. -
status
public int statusStatus of version, and default is 'STARTED' -
pushJobId
-
compressionStrategy
public int compressionStrategystrategies used to compress/decompress Record's value, and default is 'NO_OP' -
leaderFollowerModelEnabled
public boolean leaderFollowerModelEnabledWhether or not to use leader follower state transition. -
nativeReplicationEnabled
public boolean nativeReplicationEnabledWhether or not native replication is enabled. -
pushStreamSourceAddress
Address to the kafka broker which holds the source of truth topic for this store version. -
bufferReplayEnabledForHybrid
public boolean bufferReplayEnabledForHybridWhether or not to enable buffer replay for hybrid. -
chunkingEnabled
public boolean chunkingEnabledWhether or not large values are supported (via chunking). -
rmdChunkingEnabled
public boolean rmdChunkingEnabledWhether or not large replication metadata are supported (via chunking). -
pushType
public int pushTypeProducer type for this version, and default is 'BATCH' -
partitionCount
public int partitionCountPartition count of this version. -
partitionerConfig
Config for custom partitioning. -
incrementalPushPolicy
public int incrementalPushPolicyIncremental Push Policy to reconcile with real time pushes., and default is 'PUSH_TO_VERSION_TOPIC' -
replicationFactor
public int replicationFactorThe number of replica this store version is keeping. -
nativeReplicationSourceFabric
The source fabric name to be uses in native replication. Remote consumption will happen from kafka in this fabric. -
incrementalPushEnabled
public boolean incrementalPushEnabledFlag to see if the store supports incremental push or not -
separateRealTimeTopicEnabled
public boolean separateRealTimeTopicEnabledFlag to see if the store supports separate real-time topic for incremental push. -
blobTransferEnabled
public boolean blobTransferEnabledFlag to indicate if the blob transfer is allowed or not -
useVersionLevelIncrementalPushEnabled
public boolean useVersionLevelIncrementalPushEnabledFlag to see if incrementalPushEnabled config at StoreVersion should be used. This is needed during migration of this config from Store level to Version level. We can deprecate this field later. -
hybridConfig
Properties related to Hybrid Store behavior. If absent (null), then the store is not hybrid. -
useVersionLevelHybridConfig
public boolean useVersionLevelHybridConfigFlag to see if hybridConfig at StoreVersion should be used. This is needed during migration of this config from Store level to Version level. We can deprecate this field later. -
activeActiveReplicationEnabled
public boolean activeActiveReplicationEnabledWhether or not active/active replication is enabled for hybrid stores; eventually this config will replace native replication flag, when all stores are on A/A -
timestampMetadataVersionId
public int timestampMetadataVersionIdThe A/A timestamp metadata schema version ID that will be used to deserialize metadataPayload. -
dataRecoveryConfig
Properties related to data recovery mode behavior for this version. If absent (null), then the version never went go through data recovery. -
deferVersionSwap
public boolean deferVersionSwapflag that informs venice controller to defer marking this version as the serving version after instances report ready to serve. This version must be marked manually as the current version in order to serve traffic from it. -
views
A list of views which describe and configure a downstream view of a venice store. -
repushSourceVersion
public int repushSourceVersionFor store version created from repush, indicates the source store version its created from. -
targetSwapRegion
Controls what region to swap in the current version during target colo push -
targetSwapRegionWaitTime
public int targetSwapRegionWaitTimeControls how long to wait in minutes before swapping the version on the regions -
isDaVinciHeartBeatReported
public boolean isDaVinciHeartBeatReportedFlag to indicate whether DVC is bootstrapping and sending heartbeats
-
-
Constructor Details
-
StoreVersion
public StoreVersion()Default constructor. Note that this does not initialize fields to their default values from the schema. If that is desired then one should usenewBuilder()
. -
StoreVersion
public StoreVersion(CharSequence storeName, Integer number, Long createdTime, Integer status, CharSequence pushJobId, Integer compressionStrategy, Boolean leaderFollowerModelEnabled, Boolean nativeReplicationEnabled, CharSequence pushStreamSourceAddress, Boolean bufferReplayEnabledForHybrid, Boolean chunkingEnabled, Boolean rmdChunkingEnabled, Integer pushType, Integer partitionCount, StorePartitionerConfig partitionerConfig, Integer incrementalPushPolicy, Integer replicationFactor, CharSequence nativeReplicationSourceFabric, Boolean incrementalPushEnabled, Boolean separateRealTimeTopicEnabled, Boolean blobTransferEnabled, Boolean useVersionLevelIncrementalPushEnabled, StoreHybridConfig hybridConfig, Boolean useVersionLevelHybridConfig, Boolean activeActiveReplicationEnabled, Integer timestampMetadataVersionId, DataRecoveryConfig dataRecoveryConfig, Boolean deferVersionSwap, Map<String, StoreViewConfig> views, Integer repushSourceVersion, CharSequence targetSwapRegion, Integer targetSwapRegionWaitTime, Boolean isDaVinciHeartBeatReported) All-args constructor.- Parameters:
storeName
- Name of the store which this version belong to.number
- Version number.createdTime
- Time when this version was created.status
- Status of version, and default is 'STARTED'pushJobId
- The new value for pushJobIdcompressionStrategy
- strategies used to compress/decompress Record's value, and default is 'NO_OP'leaderFollowerModelEnabled
- Whether or not to use leader follower state transition.nativeReplicationEnabled
- Whether or not native replication is enabled.pushStreamSourceAddress
- Address to the kafka broker which holds the source of truth topic for this store version.bufferReplayEnabledForHybrid
- Whether or not to enable buffer replay for hybrid.chunkingEnabled
- Whether or not large values are supported (via chunking).rmdChunkingEnabled
- Whether or not large replication metadata are supported (via chunking).pushType
- Producer type for this version, and default is 'BATCH'partitionCount
- Partition count of this version.partitionerConfig
- Config for custom partitioning.incrementalPushPolicy
- Incremental Push Policy to reconcile with real time pushes., and default is 'PUSH_TO_VERSION_TOPIC'replicationFactor
- The number of replica this store version is keeping.nativeReplicationSourceFabric
- The source fabric name to be uses in native replication. Remote consumption will happen from kafka in this fabric.incrementalPushEnabled
- Flag to see if the store supports incremental push or notseparateRealTimeTopicEnabled
- Flag to see if the store supports separate real-time topic for incremental push.blobTransferEnabled
- Flag to indicate if the blob transfer is allowed or notuseVersionLevelIncrementalPushEnabled
- Flag to see if incrementalPushEnabled config at StoreVersion should be used. This is needed during migration of this config from Store level to Version level. We can deprecate this field later.hybridConfig
- Properties related to Hybrid Store behavior. If absent (null), then the store is not hybrid.useVersionLevelHybridConfig
- Flag to see if hybridConfig at StoreVersion should be used. This is needed during migration of this config from Store level to Version level. We can deprecate this field later.activeActiveReplicationEnabled
- Whether or not active/active replication is enabled for hybrid stores; eventually this config will replace native replication flag, when all stores are on A/AtimestampMetadataVersionId
- The A/A timestamp metadata schema version ID that will be used to deserialize metadataPayload.dataRecoveryConfig
- Properties related to data recovery mode behavior for this version. If absent (null), then the version never went go through data recovery.deferVersionSwap
- flag that informs venice controller to defer marking this version as the serving version after instances report ready to serve. This version must be marked manually as the current version in order to serve traffic from it.views
- A list of views which describe and configure a downstream view of a venice store.repushSourceVersion
- For store version created from repush, indicates the source store version its created from.targetSwapRegion
- Controls what region to swap in the current version during target colo pushtargetSwapRegionWaitTime
- Controls how long to wait in minutes before swapping the version on the regionsisDaVinciHeartBeatReported
- Flag to indicate whether DVC is bootstrapping and sending heartbeats
-
-
Method Details
-
getClassSchema
public static org.apache.avro.Schema getClassSchema() -
getSpecificData
public org.apache.avro.specific.SpecificData getSpecificData()- Overrides:
getSpecificData
in classorg.apache.avro.specific.SpecificRecordBase
-
getSchema
public org.apache.avro.Schema getSchema()- Specified by:
getSchema
in interfaceorg.apache.avro.generic.GenericContainer
- Specified by:
getSchema
in classorg.apache.avro.specific.SpecificRecordBase
-
get
- Specified by:
get
in interfaceorg.apache.avro.generic.IndexedRecord
- Specified by:
get
in classorg.apache.avro.specific.SpecificRecordBase
-
put
- Specified by:
put
in interfaceorg.apache.avro.generic.IndexedRecord
- Specified by:
put
in classorg.apache.avro.specific.SpecificRecordBase
-
getStoreName
Gets the value of the 'storeName' field.- Returns:
- Name of the store which this version belong to.
-
setStoreName
Sets the value of the 'storeName' field. Name of the store which this version belong to.- Parameters:
value
- the value to set.
-
getNumber
public int getNumber()Gets the value of the 'number' field.- Returns:
- Version number.
-
setNumber
public void setNumber(int value) Sets the value of the 'number' field. Version number.- Parameters:
value
- the value to set.
-
getCreatedTime
public long getCreatedTime()Gets the value of the 'createdTime' field.- Returns:
- Time when this version was created.
-
setCreatedTime
public void setCreatedTime(long value) Sets the value of the 'createdTime' field. Time when this version was created.- Parameters:
value
- the value to set.
-
getStatus
public int getStatus()Gets the value of the 'status' field.- Returns:
- Status of version, and default is 'STARTED'
-
setStatus
public void setStatus(int value) Sets the value of the 'status' field. Status of version, and default is 'STARTED'- Parameters:
value
- the value to set.
-
getPushJobId
Gets the value of the 'pushJobId' field.- Returns:
- The value of the 'pushJobId' field.
-
setPushJobId
Sets the value of the 'pushJobId' field.- Parameters:
value
- the value to set.
-
getCompressionStrategy
public int getCompressionStrategy()Gets the value of the 'compressionStrategy' field.- Returns:
- strategies used to compress/decompress Record's value, and default is 'NO_OP'
-
setCompressionStrategy
public void setCompressionStrategy(int value) Sets the value of the 'compressionStrategy' field. strategies used to compress/decompress Record's value, and default is 'NO_OP'- Parameters:
value
- the value to set.
-
getLeaderFollowerModelEnabled
public boolean getLeaderFollowerModelEnabled()Gets the value of the 'leaderFollowerModelEnabled' field.- Returns:
- Whether or not to use leader follower state transition.
-
setLeaderFollowerModelEnabled
public void setLeaderFollowerModelEnabled(boolean value) Sets the value of the 'leaderFollowerModelEnabled' field. Whether or not to use leader follower state transition.- Parameters:
value
- the value to set.
-
getNativeReplicationEnabled
public boolean getNativeReplicationEnabled()Gets the value of the 'nativeReplicationEnabled' field.- Returns:
- Whether or not native replication is enabled.
-
setNativeReplicationEnabled
public void setNativeReplicationEnabled(boolean value) Sets the value of the 'nativeReplicationEnabled' field. Whether or not native replication is enabled.- Parameters:
value
- the value to set.
-
getPushStreamSourceAddress
Gets the value of the 'pushStreamSourceAddress' field.- Returns:
- Address to the kafka broker which holds the source of truth topic for this store version.
-
setPushStreamSourceAddress
Sets the value of the 'pushStreamSourceAddress' field. Address to the kafka broker which holds the source of truth topic for this store version.- Parameters:
value
- the value to set.
-
getBufferReplayEnabledForHybrid
public boolean getBufferReplayEnabledForHybrid()Gets the value of the 'bufferReplayEnabledForHybrid' field.- Returns:
- Whether or not to enable buffer replay for hybrid.
-
setBufferReplayEnabledForHybrid
public void setBufferReplayEnabledForHybrid(boolean value) Sets the value of the 'bufferReplayEnabledForHybrid' field. Whether or not to enable buffer replay for hybrid.- Parameters:
value
- the value to set.
-
getChunkingEnabled
public boolean getChunkingEnabled()Gets the value of the 'chunkingEnabled' field.- Returns:
- Whether or not large values are supported (via chunking).
-
setChunkingEnabled
public void setChunkingEnabled(boolean value) Sets the value of the 'chunkingEnabled' field. Whether or not large values are supported (via chunking).- Parameters:
value
- the value to set.
-
getRmdChunkingEnabled
public boolean getRmdChunkingEnabled()Gets the value of the 'rmdChunkingEnabled' field.- Returns:
- Whether or not large replication metadata are supported (via chunking).
-
setRmdChunkingEnabled
public void setRmdChunkingEnabled(boolean value) Sets the value of the 'rmdChunkingEnabled' field. Whether or not large replication metadata are supported (via chunking).- Parameters:
value
- the value to set.
-
getPushType
public int getPushType()Gets the value of the 'pushType' field.- Returns:
- Producer type for this version, and default is 'BATCH'
-
setPushType
public void setPushType(int value) Sets the value of the 'pushType' field. Producer type for this version, and default is 'BATCH'- Parameters:
value
- the value to set.
-
getPartitionCount
public int getPartitionCount()Gets the value of the 'partitionCount' field.- Returns:
- Partition count of this version.
-
setPartitionCount
public void setPartitionCount(int value) Sets the value of the 'partitionCount' field. Partition count of this version.- Parameters:
value
- the value to set.
-
getPartitionerConfig
Gets the value of the 'partitionerConfig' field.- Returns:
- Config for custom partitioning.
-
setPartitionerConfig
Sets the value of the 'partitionerConfig' field. Config for custom partitioning.- Parameters:
value
- the value to set.
-
getIncrementalPushPolicy
public int getIncrementalPushPolicy()Gets the value of the 'incrementalPushPolicy' field.- Returns:
- Incremental Push Policy to reconcile with real time pushes., and default is 'PUSH_TO_VERSION_TOPIC'
-
setIncrementalPushPolicy
public void setIncrementalPushPolicy(int value) Sets the value of the 'incrementalPushPolicy' field. Incremental Push Policy to reconcile with real time pushes., and default is 'PUSH_TO_VERSION_TOPIC'- Parameters:
value
- the value to set.
-
getReplicationFactor
public int getReplicationFactor()Gets the value of the 'replicationFactor' field.- Returns:
- The number of replica this store version is keeping.
-
setReplicationFactor
public void setReplicationFactor(int value) Sets the value of the 'replicationFactor' field. The number of replica this store version is keeping.- Parameters:
value
- the value to set.
-
getNativeReplicationSourceFabric
Gets the value of the 'nativeReplicationSourceFabric' field.- Returns:
- The source fabric name to be uses in native replication. Remote consumption will happen from kafka in this fabric.
-
setNativeReplicationSourceFabric
Sets the value of the 'nativeReplicationSourceFabric' field. The source fabric name to be uses in native replication. Remote consumption will happen from kafka in this fabric.- Parameters:
value
- the value to set.
-
getIncrementalPushEnabled
public boolean getIncrementalPushEnabled()Gets the value of the 'incrementalPushEnabled' field.- Returns:
- Flag to see if the store supports incremental push or not
-
setIncrementalPushEnabled
public void setIncrementalPushEnabled(boolean value) Sets the value of the 'incrementalPushEnabled' field. Flag to see if the store supports incremental push or not- Parameters:
value
- the value to set.
-
getSeparateRealTimeTopicEnabled
public boolean getSeparateRealTimeTopicEnabled()Gets the value of the 'separateRealTimeTopicEnabled' field.- Returns:
- Flag to see if the store supports separate real-time topic for incremental push.
-
setSeparateRealTimeTopicEnabled
public void setSeparateRealTimeTopicEnabled(boolean value) Sets the value of the 'separateRealTimeTopicEnabled' field. Flag to see if the store supports separate real-time topic for incremental push.- Parameters:
value
- the value to set.
-
getBlobTransferEnabled
public boolean getBlobTransferEnabled()Gets the value of the 'blobTransferEnabled' field.- Returns:
- Flag to indicate if the blob transfer is allowed or not
-
setBlobTransferEnabled
public void setBlobTransferEnabled(boolean value) Sets the value of the 'blobTransferEnabled' field. Flag to indicate if the blob transfer is allowed or not- Parameters:
value
- the value to set.
-
getUseVersionLevelIncrementalPushEnabled
public boolean getUseVersionLevelIncrementalPushEnabled()Gets the value of the 'useVersionLevelIncrementalPushEnabled' field.- Returns:
- Flag to see if incrementalPushEnabled config at StoreVersion should be used. This is needed during migration of this config from Store level to Version level. We can deprecate this field later.
-
setUseVersionLevelIncrementalPushEnabled
public void setUseVersionLevelIncrementalPushEnabled(boolean value) Sets the value of the 'useVersionLevelIncrementalPushEnabled' field. Flag to see if incrementalPushEnabled config at StoreVersion should be used. This is needed during migration of this config from Store level to Version level. We can deprecate this field later.- Parameters:
value
- the value to set.
-
getHybridConfig
Gets the value of the 'hybridConfig' field.- Returns:
- Properties related to Hybrid Store behavior. If absent (null), then the store is not hybrid.
-
setHybridConfig
Sets the value of the 'hybridConfig' field. Properties related to Hybrid Store behavior. If absent (null), then the store is not hybrid.- Parameters:
value
- the value to set.
-
getUseVersionLevelHybridConfig
public boolean getUseVersionLevelHybridConfig()Gets the value of the 'useVersionLevelHybridConfig' field.- Returns:
- Flag to see if hybridConfig at StoreVersion should be used. This is needed during migration of this config from Store level to Version level. We can deprecate this field later.
-
setUseVersionLevelHybridConfig
public void setUseVersionLevelHybridConfig(boolean value) Sets the value of the 'useVersionLevelHybridConfig' field. Flag to see if hybridConfig at StoreVersion should be used. This is needed during migration of this config from Store level to Version level. We can deprecate this field later.- Parameters:
value
- the value to set.
-
getActiveActiveReplicationEnabled
public boolean getActiveActiveReplicationEnabled()Gets the value of the 'activeActiveReplicationEnabled' field.- Returns:
- Whether or not active/active replication is enabled for hybrid stores; eventually this config will replace native replication flag, when all stores are on A/A
-
setActiveActiveReplicationEnabled
public void setActiveActiveReplicationEnabled(boolean value) Sets the value of the 'activeActiveReplicationEnabled' field. Whether or not active/active replication is enabled for hybrid stores; eventually this config will replace native replication flag, when all stores are on A/A- Parameters:
value
- the value to set.
-
getTimestampMetadataVersionId
public int getTimestampMetadataVersionId()Gets the value of the 'timestampMetadataVersionId' field.- Returns:
- The A/A timestamp metadata schema version ID that will be used to deserialize metadataPayload.
-
setTimestampMetadataVersionId
public void setTimestampMetadataVersionId(int value) Sets the value of the 'timestampMetadataVersionId' field. The A/A timestamp metadata schema version ID that will be used to deserialize metadataPayload.- Parameters:
value
- the value to set.
-
getDataRecoveryConfig
Gets the value of the 'dataRecoveryConfig' field.- Returns:
- Properties related to data recovery mode behavior for this version. If absent (null), then the version never went go through data recovery.
-
setDataRecoveryConfig
Sets the value of the 'dataRecoveryConfig' field. Properties related to data recovery mode behavior for this version. If absent (null), then the version never went go through data recovery.- Parameters:
value
- the value to set.
-
getDeferVersionSwap
public boolean getDeferVersionSwap()Gets the value of the 'deferVersionSwap' field.- Returns:
- flag that informs venice controller to defer marking this version as the serving version after instances report ready to serve. This version must be marked manually as the current version in order to serve traffic from it.
-
setDeferVersionSwap
public void setDeferVersionSwap(boolean value) Sets the value of the 'deferVersionSwap' field. flag that informs venice controller to defer marking this version as the serving version after instances report ready to serve. This version must be marked manually as the current version in order to serve traffic from it.- Parameters:
value
- the value to set.
-
getViews
Gets the value of the 'views' field.- Returns:
- A list of views which describe and configure a downstream view of a venice store.
-
setViews
Sets the value of the 'views' field. A list of views which describe and configure a downstream view of a venice store.- Parameters:
value
- the value to set.
-
getRepushSourceVersion
public int getRepushSourceVersion()Gets the value of the 'repushSourceVersion' field.- Returns:
- For store version created from repush, indicates the source store version its created from.
-
setRepushSourceVersion
public void setRepushSourceVersion(int value) Sets the value of the 'repushSourceVersion' field. For store version created from repush, indicates the source store version its created from.- Parameters:
value
- the value to set.
-
getTargetSwapRegion
Gets the value of the 'targetSwapRegion' field.- Returns:
- Controls what region to swap in the current version during target colo push
-
setTargetSwapRegion
Sets the value of the 'targetSwapRegion' field. Controls what region to swap in the current version during target colo push- Parameters:
value
- the value to set.
-
getTargetSwapRegionWaitTime
public int getTargetSwapRegionWaitTime()Gets the value of the 'targetSwapRegionWaitTime' field.- Returns:
- Controls how long to wait in minutes before swapping the version on the regions
-
setTargetSwapRegionWaitTime
public void setTargetSwapRegionWaitTime(int value) Sets the value of the 'targetSwapRegionWaitTime' field. Controls how long to wait in minutes before swapping the version on the regions- Parameters:
value
- the value to set.
-
getIsDaVinciHeartBeatReported
public boolean getIsDaVinciHeartBeatReported()Gets the value of the 'isDaVinciHeartBeatReported' field.- Returns:
- Flag to indicate whether DVC is bootstrapping and sending heartbeats
-
setIsDaVinciHeartBeatReported
public void setIsDaVinciHeartBeatReported(boolean value) Sets the value of the 'isDaVinciHeartBeatReported' field. Flag to indicate whether DVC is bootstrapping and sending heartbeats- Parameters:
value
- the value to set.
-
writeExternal
- Specified by:
writeExternal
in interfaceExternalizable
- Overrides:
writeExternal
in classorg.apache.avro.specific.SpecificRecordBase
- Throws:
IOException
-
readExternal
- Specified by:
readExternal
in interfaceExternalizable
- Overrides:
readExternal
in classorg.apache.avro.specific.SpecificRecordBase
- Throws:
IOException
-