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
Modifier and TypeFieldDescriptionint
int
The push type of the new version, 0 => BATCH, 1 => STREAM_REPROCESSING.int
Indicates the source version from which a repush version is createdlong
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 configstatic final org.apache.avro.Schema
The list of regions that is separated by comma for targeted region push.int
The A/A metadata schema version ID that will be used to deserialize metadataPayload.int
boolean
Indicates if swapping this version to current version after push completion should be initiated or not -
Constructor Summary
ConstructorDescriptionDefault 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) All-args constructor. -
Method Summary
Modifier and TypeMethodDescriptionget
(int field$) static org.apache.avro.Schema
Gets the value of the 'clusterName' field.int
Gets the value of the 'numberOfPartitions' 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 'repushSourceVersion' field.long
Gets the value of the 'rewindTimeInSecondsOverride' field.org.apache.avro.Schema
org.apache.avro.specific.SpecificData
Gets the value of the 'storeName' field.Gets the value of the 'targetedRegions' field.int
Gets the value of the 'timestampMetadataVersionId' field.int
Gets the value of the 'versionNum' field.boolean
Gets the value of the 'versionSwapDeferred' field.void
void
void
setClusterName
(CharSequence value) Sets the value of the 'clusterName' field.void
setNumberOfPartitions
(int value) Sets the value of the 'numberOfPartitions' 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
setRepushSourceVersion
(int value) Sets the value of the 'repushSourceVersion' field.void
setRewindTimeInSecondsOverride
(long value) Sets the value of the 'rewindTimeInSecondsOverride' field.void
setStoreName
(CharSequence value) Sets the value of the 'storeName' field.void
setTargetedRegions
(List<CharSequence> value) Sets the value of the 'targetedRegions' field.void
setTimestampMetadataVersionId
(int value) Sets the value of the 'timestampMetadataVersionId' field.void
setVersionNum
(int value) Sets the value of the 'versionNum' field.void
setVersionSwapDeferred
(boolean value) Sets the value of the 'versionSwapDeferred' 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$ -
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
-
-
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) 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 created
-
-
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
-
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.
-
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
-