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
FieldsModifier and TypeFieldDescriptionbooleanWhether or not active/active replication is enabled for hybrid stores; eventually this config will replace native replication flag, when all stores are on A/AbooleanFlag to indicate if the blob transfer is allowed or notFlag to indicate if the blob transfer is allowed or not in server.booleanWhether or not to enable buffer replay for hybrid.booleanWhether or not large values are supported (via chunking).intstrategies used to compress/decompress Record's value, and default is 'NO_OP'longTime when this version was created.Properties related to data recovery mode behavior for this version.booleanflag that informs venice controller to defer marking this version as the serving version after instances report ready to serve.booleanFlag to indicate whether the Global RT DIV feature is on.Properties related to Hybrid Store behavior.booleanFlag to see if the store supports incremental push or notintIncremental Push Policy to reconcile with real time pushes., and default is 'PUSH_TO_VERSION_TOPIC'booleanFlag to indicate whether DVC is bootstrapping and sending heartbeatsbooleanFlag to control whether the key urn compression is enabled or notList of fields in the key schema that will be eligible for key urn compressionbooleanWhether or not to use leader follower state transition.booleanWhether or not native replication is enabled.The source fabric name to be uses in native replication.intVersion number.intPartition count of this version.Config for custom partitioning.Address to the kafka broker which holds the source of truth topic for this store version.intProducer type for this version, and default is 'BATCH'intThe number of replica this store version is keeping.intFor store version created from repush, indicates the source store version its created from.booleanWhether or not large replication metadata are supported (via chunking).static final org.apache.avro.SchemabooleanFlag to see if the store supports separate real-time topic for incremental push.intStatus 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 pushintControls how long to wait in minutes before swapping the version on the regionsintThe A/A timestamp metadata schema version ID that will be used to deserialize metadataPayload.booleanFlag to see if hybridConfig at StoreVersion should be used.booleanFlag 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
ConstructorsConstructorDescriptionDefault 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, Boolean globalRtDivEnabled, CharSequence blobTransferInServerEnabled, Boolean keyUrnCompressionEnabled, List<CharSequence> keyUrnFields) All-args constructor. -
Method Summary
Modifier and TypeMethodDescriptionget(int field$) booleanGets the value of the 'activeActiveReplicationEnabled' field.booleanGets the value of the 'blobTransferEnabled' field.Gets the value of the 'blobTransferInServerEnabled' field.booleanGets the value of the 'bufferReplayEnabledForHybrid' field.booleanGets the value of the 'chunkingEnabled' field.static org.apache.avro.SchemaintGets the value of the 'compressionStrategy' field.longGets the value of the 'createdTime' field.Gets the value of the 'dataRecoveryConfig' field.booleanGets the value of the 'deferVersionSwap' field.booleanGets the value of the 'globalRtDivEnabled' field.Gets the value of the 'hybridConfig' field.booleanGets the value of the 'incrementalPushEnabled' field.intGets the value of the 'incrementalPushPolicy' field.booleanGets the value of the 'isDaVinciHeartBeatReported' field.booleanGets the value of the 'keyUrnCompressionEnabled' field.Gets the value of the 'keyUrnFields' field.booleanGets the value of the 'leaderFollowerModelEnabled' field.booleanGets the value of the 'nativeReplicationEnabled' field.Gets the value of the 'nativeReplicationSourceFabric' field.intGets the value of the 'number' field.intGets 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.intGets the value of the 'pushType' field.intGets the value of the 'replicationFactor' field.intGets the value of the 'repushSourceVersion' field.booleanGets the value of the 'rmdChunkingEnabled' field.org.apache.avro.SchemabooleanGets the value of the 'separateRealTimeTopicEnabled' field.org.apache.avro.specific.SpecificDataintGets the value of the 'status' field.Gets the value of the 'storeName' field.Gets the value of the 'targetSwapRegion' field.intGets the value of the 'targetSwapRegionWaitTime' field.intGets the value of the 'timestampMetadataVersionId' field.booleanGets the value of the 'useVersionLevelHybridConfig' field.booleanGets the value of the 'useVersionLevelIncrementalPushEnabled' field.getViews()Gets the value of the 'views' field.voidvoidvoidsetActiveActiveReplicationEnabled(boolean value) Sets the value of the 'activeActiveReplicationEnabled' field.voidsetBlobTransferEnabled(boolean value) Sets the value of the 'blobTransferEnabled' field.voidSets the value of the 'blobTransferInServerEnabled' field.voidsetBufferReplayEnabledForHybrid(boolean value) Sets the value of the 'bufferReplayEnabledForHybrid' field.voidsetChunkingEnabled(boolean value) Sets the value of the 'chunkingEnabled' field.voidsetCompressionStrategy(int value) Sets the value of the 'compressionStrategy' field.voidsetCreatedTime(long value) Sets the value of the 'createdTime' field.voidSets the value of the 'dataRecoveryConfig' field.voidsetDeferVersionSwap(boolean value) Sets the value of the 'deferVersionSwap' field.voidsetGlobalRtDivEnabled(boolean value) Sets the value of the 'globalRtDivEnabled' field.voidsetHybridConfig(StoreHybridConfig value) Sets the value of the 'hybridConfig' field.voidsetIncrementalPushEnabled(boolean value) Sets the value of the 'incrementalPushEnabled' field.voidsetIncrementalPushPolicy(int value) Sets the value of the 'incrementalPushPolicy' field.voidsetIsDaVinciHeartBeatReported(boolean value) Sets the value of the 'isDaVinciHeartBeatReported' field.voidsetKeyUrnCompressionEnabled(boolean value) Sets the value of the 'keyUrnCompressionEnabled' field.voidsetKeyUrnFields(List<CharSequence> value) Sets the value of the 'keyUrnFields' field.voidsetLeaderFollowerModelEnabled(boolean value) Sets the value of the 'leaderFollowerModelEnabled' field.voidsetNativeReplicationEnabled(boolean value) Sets the value of the 'nativeReplicationEnabled' field.voidSets the value of the 'nativeReplicationSourceFabric' field.voidsetNumber(int value) Sets the value of the 'number' field.voidsetPartitionCount(int value) Sets the value of the 'partitionCount' field.voidSets the value of the 'partitionerConfig' field.voidsetPushJobId(CharSequence value) Sets the value of the 'pushJobId' field.voidSets the value of the 'pushStreamSourceAddress' field.voidsetPushType(int value) Sets the value of the 'pushType' field.voidsetReplicationFactor(int value) Sets the value of the 'replicationFactor' field.voidsetRepushSourceVersion(int value) Sets the value of the 'repushSourceVersion' field.voidsetRmdChunkingEnabled(boolean value) Sets the value of the 'rmdChunkingEnabled' field.voidsetSeparateRealTimeTopicEnabled(boolean value) Sets the value of the 'separateRealTimeTopicEnabled' field.voidsetStatus(int value) Sets the value of the 'status' field.voidsetStoreName(CharSequence value) Sets the value of the 'storeName' field.voidsetTargetSwapRegion(CharSequence value) Sets the value of the 'targetSwapRegion' field.voidsetTargetSwapRegionWaitTime(int value) Sets the value of the 'targetSwapRegionWaitTime' field.voidsetTimestampMetadataVersionId(int value) Sets the value of the 'timestampMetadataVersionId' field.voidsetUseVersionLevelHybridConfig(boolean value) Sets the value of the 'useVersionLevelHybridConfig' field.voidsetUseVersionLevelIncrementalPushEnabled(boolean value) Sets the value of the 'useVersionLevelIncrementalPushEnabled' field.voidsetViews(Map<String, StoreViewConfig> value) Sets the value of the 'views' field.voidMethods inherited from class org.apache.avro.specific.SpecificRecordBase
compareTo, customDecode, customEncode, equals, get, getConversion, getConversion, hasCustomCoders, hashCode, put, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods 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 -
globalRtDivEnabled
public boolean globalRtDivEnabledFlag to indicate whether the Global RT DIV feature is on. The DIV will be centralized in the ConsumptionTask, and leaders will periodically replicate the RT DIV to followers via VT. -
blobTransferInServerEnabled
Flag to indicate if the blob transfer is allowed or not in server. Values can be 'NOT_SPECIFIED' as default, 'ENABLED', or 'DISABLED'. -
keyUrnCompressionEnabled
public boolean keyUrnCompressionEnabledFlag to control whether the key urn compression is enabled or not -
keyUrnFields
List of fields in the key schema that will be eligible for key urn compression
-
-
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, Boolean globalRtDivEnabled, CharSequence blobTransferInServerEnabled, Boolean keyUrnCompressionEnabled, List<CharSequence> keyUrnFields) 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 heartbeatsglobalRtDivEnabled- Flag to indicate whether the Global RT DIV feature is on. The DIV will be centralized in the ConsumptionTask, and leaders will periodically replicate the RT DIV to followers via VT.blobTransferInServerEnabled- Flag to indicate if the blob transfer is allowed or not in server. Values can be 'NOT_SPECIFIED' as default, 'ENABLED', or 'DISABLED'.keyUrnCompressionEnabled- Flag to control whether the key urn compression is enabled or notkeyUrnFields- List of fields in the key schema that will be eligible for key urn compression
-
-
Method Details
-
getClassSchema
public static org.apache.avro.Schema getClassSchema() -
getSpecificData
public org.apache.avro.specific.SpecificData getSpecificData()- Overrides:
getSpecificDatain classorg.apache.avro.specific.SpecificRecordBase
-
getSchema
public org.apache.avro.Schema getSchema()- Specified by:
getSchemain interfaceorg.apache.avro.generic.GenericContainer- Specified by:
getSchemain classorg.apache.avro.specific.SpecificRecordBase
-
get
- Specified by:
getin interfaceorg.apache.avro.generic.IndexedRecord- Specified by:
getin classorg.apache.avro.specific.SpecificRecordBase
-
put
- Specified by:
putin interfaceorg.apache.avro.generic.IndexedRecord- Specified by:
putin 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.
-
getGlobalRtDivEnabled
public boolean getGlobalRtDivEnabled()Gets the value of the 'globalRtDivEnabled' field.- Returns:
- Flag to indicate whether the Global RT DIV feature is on. The DIV will be centralized in the ConsumptionTask, and leaders will periodically replicate the RT DIV to followers via VT.
-
setGlobalRtDivEnabled
public void setGlobalRtDivEnabled(boolean value) Sets the value of the 'globalRtDivEnabled' field. Flag to indicate whether the Global RT DIV feature is on. The DIV will be centralized in the ConsumptionTask, and leaders will periodically replicate the RT DIV to followers via VT.- Parameters:
value- the value to set.
-
getBlobTransferInServerEnabled
Gets the value of the 'blobTransferInServerEnabled' field.- Returns:
- Flag to indicate if the blob transfer is allowed or not in server. Values can be 'NOT_SPECIFIED' as default, 'ENABLED', or 'DISABLED'.
-
setBlobTransferInServerEnabled
Sets the value of the 'blobTransferInServerEnabled' field. Flag to indicate if the blob transfer is allowed or not in server. Values can be 'NOT_SPECIFIED' as default, 'ENABLED', or 'DISABLED'.- Parameters:
value- the value to set.
-
getKeyUrnCompressionEnabled
public boolean getKeyUrnCompressionEnabled()Gets the value of the 'keyUrnCompressionEnabled' field.- Returns:
- Flag to control whether the key urn compression is enabled or not
-
setKeyUrnCompressionEnabled
public void setKeyUrnCompressionEnabled(boolean value) Sets the value of the 'keyUrnCompressionEnabled' field. Flag to control whether the key urn compression is enabled or not- Parameters:
value- the value to set.
-
getKeyUrnFields
Gets the value of the 'keyUrnFields' field.- Returns:
- List of fields in the key schema that will be eligible for key urn compression
-
setKeyUrnFields
Sets the value of the 'keyUrnFields' field. List of fields in the key schema that will be eligible for key urn compression- Parameters:
value- the value to set.
-
writeExternal
- Specified by:
writeExternalin interfaceExternalizable- Overrides:
writeExternalin classorg.apache.avro.specific.SpecificRecordBase- Throws:
IOException
-
readExternal
- Specified by:
readExternalin interfaceExternalizable- Overrides:
readExternalin classorg.apache.avro.specific.SpecificRecordBase- Throws:
IOException
-