Class AddVersion
java.lang.Object
org.apache.avro.specific.SpecificRecordBase
com.linkedin.venice.controller.kafka.protocol.admin.AddVersion
- 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 AddVersion
extends org.apache.avro.specific.SpecificRecordBase
implements org.apache.avro.specific.SpecificRecord
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionintcurrent RT version number that should be used to formulate real time topic name during add versionintintThe push type of the new version, 0 => BATCH, 1 => STREAM_REPROCESSING.intIndicates the source version from which a repush version is createdlongThe overridable rewind time config for this specific version of a hybrid store, and if it is not specified, the new version will use the store-level rewind time configstatic final org.apache.avro.SchemaThe list of regions that is separated by comma for targeted region push.intThe A/A metadata schema version ID that will be used to deserialize metadataPayload.intbooleanIndicates if swapping this version to current version after push completion should be initiated or not -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.AddVersion(CharSequence clusterName, CharSequence storeName, CharSequence pushJobId, Integer versionNum, Integer numberOfPartitions, Integer pushType, CharSequence pushStreamSourceAddress, Long rewindTimeInSecondsOverride, Integer timestampMetadataVersionId, Boolean versionSwapDeferred, List<CharSequence> targetedRegions, Integer repushSourceVersion, Integer currentRTVersionNumber) All-args constructor. -
Method Summary
Modifier and TypeMethodDescriptionget(int field$) static org.apache.avro.SchemaGets the value of the 'clusterName' field.intGets the value of the 'currentRTVersionNumber' field.intGets the value of the 'numberOfPartitions' 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 'repushSourceVersion' field.longGets the value of the 'rewindTimeInSecondsOverride' field.org.apache.avro.Schemaorg.apache.avro.specific.SpecificDataGets the value of the 'storeName' field.Gets the value of the 'targetedRegions' field.intGets the value of the 'timestampMetadataVersionId' field.intGets the value of the 'versionNum' field.booleanGets the value of the 'versionSwapDeferred' field.voidvoidvoidsetClusterName(CharSequence value) Sets the value of the 'clusterName' field.voidsetCurrentRTVersionNumber(int value) Sets the value of the 'currentRTVersionNumber' field.voidsetNumberOfPartitions(int value) Sets the value of the 'numberOfPartitions' 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.voidsetRepushSourceVersion(int value) Sets the value of the 'repushSourceVersion' field.voidsetRewindTimeInSecondsOverride(long value) Sets the value of the 'rewindTimeInSecondsOverride' field.voidsetStoreName(CharSequence value) Sets the value of the 'storeName' field.voidsetTargetedRegions(List<CharSequence> value) Sets the value of the 'targetedRegions' field.voidsetTimestampMetadataVersionId(int value) Sets the value of the 'timestampMetadataVersionId' field.voidsetVersionNum(int value) Sets the value of the 'versionNum' field.voidsetVersionSwapDeferred(boolean value) Sets the value of the 'versionSwapDeferred' 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$ -
clusterName
-
storeName
-
pushJobId
-
versionNum
public int versionNum -
numberOfPartitions
public int numberOfPartitions -
pushType
public int pushTypeThe push type of the new version, 0 => BATCH, 1 => STREAM_REPROCESSING. Previous add version messages will default to BATCH and this is a safe because they were created when BATCH was the only version type -
pushStreamSourceAddress
-
rewindTimeInSecondsOverride
public long rewindTimeInSecondsOverrideThe overridable rewind time config for this specific version of a hybrid store, and if it is not specified, the new version will use the store-level rewind time config -
timestampMetadataVersionId
public int timestampMetadataVersionIdThe A/A metadata schema version ID that will be used to deserialize metadataPayload. -
versionSwapDeferred
public boolean versionSwapDeferredIndicates if swapping this version to current version after push completion should be initiated or not -
targetedRegions
The list of regions that is separated by comma for targeted region push. If set, this admin message should only be consumed by the targeted regions -
repushSourceVersion
public int repushSourceVersionIndicates the source version from which a repush version is created -
currentRTVersionNumber
public int currentRTVersionNumbercurrent RT version number that should be used to formulate real time topic name during add version
-
-
Constructor Details
-
AddVersion
public AddVersion()Default constructor. Note that this does not initialize fields to their default values from the schema. If that is desired then one should usenewBuilder(). -
AddVersion
public AddVersion(CharSequence clusterName, CharSequence storeName, CharSequence pushJobId, Integer versionNum, Integer numberOfPartitions, Integer pushType, CharSequence pushStreamSourceAddress, Long rewindTimeInSecondsOverride, Integer timestampMetadataVersionId, Boolean versionSwapDeferred, List<CharSequence> targetedRegions, Integer repushSourceVersion, Integer currentRTVersionNumber) All-args constructor.- Parameters:
clusterName- The new value for clusterNamestoreName- The new value for storeNamepushJobId- The new value for pushJobIdversionNum- The new value for versionNumnumberOfPartitions- The new value for numberOfPartitionspushType- The push type of the new version, 0 => BATCH, 1 => STREAM_REPROCESSING. Previous add version messages will default to BATCH and this is a safe because they were created when BATCH was the only version typepushStreamSourceAddress- The new value for pushStreamSourceAddressrewindTimeInSecondsOverride- The overridable rewind time config for this specific version of a hybrid store, and if it is not specified, the new version will use the store-level rewind time configtimestampMetadataVersionId- The A/A metadata schema version ID that will be used to deserialize metadataPayload.versionSwapDeferred- Indicates if swapping this version to current version after push completion should be initiated or nottargetedRegions- The list of regions that is separated by comma for targeted region push. If set, this admin message should only be consumed by the targeted regionsrepushSourceVersion- Indicates the source version from which a repush version is createdcurrentRTVersionNumber- current RT version number that should be used to formulate real time topic name during add version
-
-
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
-
getClusterName
Gets the value of the 'clusterName' field.- Returns:
- The value of the 'clusterName' field.
-
setClusterName
Sets the value of the 'clusterName' field.- Parameters:
value- the value to set.
-
getStoreName
Gets the value of the 'storeName' field.- Returns:
- The value of the 'storeName' field.
-
setStoreName
Sets the value of the 'storeName' field.- 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.
-
getVersionNum
public int getVersionNum()Gets the value of the 'versionNum' field.- Returns:
- The value of the 'versionNum' field.
-
setVersionNum
public void setVersionNum(int value) Sets the value of the 'versionNum' field.- Parameters:
value- the value to set.
-
getNumberOfPartitions
public int getNumberOfPartitions()Gets the value of the 'numberOfPartitions' field.- Returns:
- The value of the 'numberOfPartitions' field.
-
setNumberOfPartitions
public void setNumberOfPartitions(int value) Sets the value of the 'numberOfPartitions' field.- Parameters:
value- the value to set.
-
getPushType
public int getPushType()Gets the value of the 'pushType' field.- Returns:
- The push type of the new version, 0 => BATCH, 1 => STREAM_REPROCESSING. Previous add version messages will default to BATCH and this is a safe because they were created when BATCH was the only version type
-
setPushType
public void setPushType(int value) Sets the value of the 'pushType' field. The push type of the new version, 0 => BATCH, 1 => STREAM_REPROCESSING. Previous add version messages will default to BATCH and this is a safe because they were created when BATCH was the only version type- Parameters:
value- the value to set.
-
getPushStreamSourceAddress
Gets the value of the 'pushStreamSourceAddress' field.- Returns:
- The value of the 'pushStreamSourceAddress' field.
-
setPushStreamSourceAddress
Sets the value of the 'pushStreamSourceAddress' field.- Parameters:
value- the value to set.
-
getRewindTimeInSecondsOverride
public long getRewindTimeInSecondsOverride()Gets the value of the 'rewindTimeInSecondsOverride' field.- Returns:
- The overridable rewind time config for this specific version of a hybrid store, and if it is not specified, the new version will use the store-level rewind time config
-
setRewindTimeInSecondsOverride
public void setRewindTimeInSecondsOverride(long value) Sets the value of the 'rewindTimeInSecondsOverride' field. The overridable rewind time config for this specific version of a hybrid store, and if it is not specified, the new version will use the store-level rewind time config- Parameters:
value- the value to set.
-
getTimestampMetadataVersionId
public int getTimestampMetadataVersionId()Gets the value of the 'timestampMetadataVersionId' field.- Returns:
- The A/A 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 metadata schema version ID that will be used to deserialize metadataPayload.- Parameters:
value- the value to set.
-
getVersionSwapDeferred
public boolean getVersionSwapDeferred()Gets the value of the 'versionSwapDeferred' field.- Returns:
- Indicates if swapping this version to current version after push completion should be initiated or not
-
setVersionSwapDeferred
public void setVersionSwapDeferred(boolean value) Sets the value of the 'versionSwapDeferred' field. Indicates if swapping this version to current version after push completion should be initiated or not- Parameters:
value- the value to set.
-
getTargetedRegions
Gets the value of the 'targetedRegions' field.- Returns:
- The list of regions that is separated by comma for targeted region push. If set, this admin message should only be consumed by the targeted regions
-
setTargetedRegions
Sets the value of the 'targetedRegions' field. The list of regions that is separated by comma for targeted region push. If set, this admin message should only be consumed by the targeted regions- Parameters:
value- the value to set.
-
getRepushSourceVersion
public int getRepushSourceVersion()Gets the value of the 'repushSourceVersion' field.- Returns:
- Indicates the source version from which a repush version is created
-
setRepushSourceVersion
public void setRepushSourceVersion(int value) Sets the value of the 'repushSourceVersion' field. Indicates the source version from which a repush version is created- Parameters:
value- the value to set.
-
getCurrentRTVersionNumber
public int getCurrentRTVersionNumber()Gets the value of the 'currentRTVersionNumber' field.- Returns:
- current RT version number that should be used to formulate real time topic name during add version
-
setCurrentRTVersionNumber
public void setCurrentRTVersionNumber(int value) Sets the value of the 'currentRTVersionNumber' field. current RT version number that should be used to formulate real time topic name during add version- 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
-