Class AddVersion
- java.lang.Object
-
- org.apache.avro.specific.SpecificRecordBase
-
- com.linkedin.venice.controller.kafka.protocol.admin.AddVersion
-
- All Implemented Interfaces:
java.io.Externalizable
,java.io.Serializable
,java.lang.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:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description java.lang.CharSequence
clusterName
int
numberOfPartitions
java.lang.CharSequence
pushJobId
java.lang.CharSequence
pushStreamSourceAddress
int
pushType
The push type of the new version, 0 => BATCH, 1 => STREAM_REPROCESSING.int
repushSourceVersion
Indicates the source version from which a repush version is createdlong
rewindTimeInSecondsOverride
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 org.apache.avro.Schema
SCHEMA$
java.lang.CharSequence
storeName
java.util.List<java.lang.CharSequence>
targetedRegions
The list of regions that is separated by comma for targeted region push.int
timestampMetadataVersionId
The A/A metadata schema version ID that will be used to deserialize metadataPayload.int
versionNum
boolean
versionSwapDeferred
Indicates if swapping this version to current version after push completion should be initiated or not
-
Constructor Summary
Constructors Constructor Description AddVersion()
Default constructor.AddVersion(java.lang.CharSequence clusterName, java.lang.CharSequence storeName, java.lang.CharSequence pushJobId, java.lang.Integer versionNum, java.lang.Integer numberOfPartitions, java.lang.Integer pushType, java.lang.CharSequence pushStreamSourceAddress, java.lang.Long rewindTimeInSecondsOverride, java.lang.Integer timestampMetadataVersionId, java.lang.Boolean versionSwapDeferred, java.util.List<java.lang.CharSequence> targetedRegions, java.lang.Integer repushSourceVersion)
All-args constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
get(int field$)
static org.apache.avro.Schema
getClassSchema()
java.lang.CharSequence
getClusterName()
Gets the value of the 'clusterName' field.int
getNumberOfPartitions()
Gets the value of the 'numberOfPartitions' field.java.lang.CharSequence
getPushJobId()
Gets the value of the 'pushJobId' field.java.lang.CharSequence
getPushStreamSourceAddress()
Gets the value of the 'pushStreamSourceAddress' field.int
getPushType()
Gets the value of the 'pushType' field.int
getRepushSourceVersion()
Gets the value of the 'repushSourceVersion' field.long
getRewindTimeInSecondsOverride()
Gets the value of the 'rewindTimeInSecondsOverride' field.org.apache.avro.Schema
getSchema()
org.apache.avro.specific.SpecificData
getSpecificData()
java.lang.CharSequence
getStoreName()
Gets the value of the 'storeName' field.java.util.List<java.lang.CharSequence>
getTargetedRegions()
Gets the value of the 'targetedRegions' field.int
getTimestampMetadataVersionId()
Gets the value of the 'timestampMetadataVersionId' field.int
getVersionNum()
Gets the value of the 'versionNum' field.boolean
getVersionSwapDeferred()
Gets the value of the 'versionSwapDeferred' field.void
put(int field$, java.lang.Object value$)
void
readExternal(java.io.ObjectInput in)
void
setClusterName(java.lang.CharSequence value)
Sets the value of the 'clusterName' field.void
setNumberOfPartitions(int value)
Sets the value of the 'numberOfPartitions' field.void
setPushJobId(java.lang.CharSequence value)
Sets the value of the 'pushJobId' field.void
setPushStreamSourceAddress(java.lang.CharSequence value)
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(java.lang.CharSequence value)
Sets the value of the 'storeName' field.void
setTargetedRegions(java.util.List<java.lang.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
writeExternal(java.io.ObjectOutput out)
-
Methods inherited from class org.apache.avro.specific.SpecificRecordBase
compareTo, customDecode, customEncode, equals, get, getConversion, getConversion, hasCustomCoders, hashCode, put, toString
-
-
-
-
Field Detail
-
SCHEMA$
public static final org.apache.avro.Schema SCHEMA$
-
clusterName
public java.lang.CharSequence clusterName
-
storeName
public java.lang.CharSequence storeName
-
pushJobId
public java.lang.CharSequence pushJobId
-
versionNum
public int versionNum
-
numberOfPartitions
public int numberOfPartitions
-
pushType
public int pushType
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
-
pushStreamSourceAddress
public java.lang.CharSequence pushStreamSourceAddress
-
rewindTimeInSecondsOverride
public long rewindTimeInSecondsOverride
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
-
timestampMetadataVersionId
public int timestampMetadataVersionId
The A/A metadata schema version ID that will be used to deserialize metadataPayload.
-
versionSwapDeferred
public boolean versionSwapDeferred
Indicates if swapping this version to current version after push completion should be initiated or not
-
targetedRegions
public java.util.List<java.lang.CharSequence> 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 repushSourceVersion
Indicates the source version from which a repush version is created
-
-
Constructor Detail
-
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(java.lang.CharSequence clusterName, java.lang.CharSequence storeName, java.lang.CharSequence pushJobId, java.lang.Integer versionNum, java.lang.Integer numberOfPartitions, java.lang.Integer pushType, java.lang.CharSequence pushStreamSourceAddress, java.lang.Long rewindTimeInSecondsOverride, java.lang.Integer timestampMetadataVersionId, java.lang.Boolean versionSwapDeferred, java.util.List<java.lang.CharSequence> targetedRegions, java.lang.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 Detail
-
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
public java.lang.Object get(int field$)
- Specified by:
get
in interfaceorg.apache.avro.generic.IndexedRecord
- Specified by:
get
in classorg.apache.avro.specific.SpecificRecordBase
-
put
public void put(int field$, java.lang.Object value$)
- Specified by:
put
in interfaceorg.apache.avro.generic.IndexedRecord
- Specified by:
put
in classorg.apache.avro.specific.SpecificRecordBase
-
getClusterName
public java.lang.CharSequence getClusterName()
Gets the value of the 'clusterName' field.- Returns:
- The value of the 'clusterName' field.
-
setClusterName
public void setClusterName(java.lang.CharSequence value)
Sets the value of the 'clusterName' field.- Parameters:
value
- the value to set.
-
getStoreName
public java.lang.CharSequence getStoreName()
Gets the value of the 'storeName' field.- Returns:
- The value of the 'storeName' field.
-
setStoreName
public void setStoreName(java.lang.CharSequence value)
Sets the value of the 'storeName' field.- Parameters:
value
- the value to set.
-
getPushJobId
public java.lang.CharSequence getPushJobId()
Gets the value of the 'pushJobId' field.- Returns:
- The value of the 'pushJobId' field.
-
setPushJobId
public void setPushJobId(java.lang.CharSequence value)
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
public java.lang.CharSequence getPushStreamSourceAddress()
Gets the value of the 'pushStreamSourceAddress' field.- Returns:
- The value of the 'pushStreamSourceAddress' field.
-
setPushStreamSourceAddress
public void setPushStreamSourceAddress(java.lang.CharSequence value)
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
public java.util.List<java.lang.CharSequence> 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
public void setTargetedRegions(java.util.List<java.lang.CharSequence> value)
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
public void writeExternal(java.io.ObjectOutput out) throws java.io.IOException
- Specified by:
writeExternal
in interfacejava.io.Externalizable
- Overrides:
writeExternal
in classorg.apache.avro.specific.SpecificRecordBase
- Throws:
java.io.IOException
-
readExternal
public void readExternal(java.io.ObjectInput in) throws java.io.IOException
- Specified by:
readExternal
in interfacejava.io.Externalizable
- Overrides:
readExternal
in classorg.apache.avro.specific.SpecificRecordBase
- Throws:
java.io.IOException
-
-