Class StoreVersionState
java.lang.Object
org.apache.avro.specific.SpecificRecordBase
com.linkedin.venice.meta.systemstore.schemas.StoreVersionState
- 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 StoreVersionState
extends org.apache.avro.specific.SpecificRecordBase
implements org.apache.avro.specific.SpecificRecord
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionboolean
boolean
long
boolean
boolean
int
static final org.apache.avro.Schema
int
-
Constructor Summary
ConstructorDescriptionDefault constructor.StoreVersionState
(Integer versionNumber, CharSequence pushJobId, Integer partitionCount, Long creationTime, Boolean chunkingEnabled, CharSequence compressionStrategy, Boolean leaderFollowerModelEnabled, Boolean bufferReplayEnabledForHybrid, CharSequence pushType, Boolean nativeReplicationEnabled, CharSequence status, CharSequence pushStreamSourceAddress, PartitionerConfig partitionerConfig) All-args constructor. -
Method Summary
Modifier and TypeMethodDescriptionget
(int field$) boolean
Gets the value of the 'bufferReplayEnabledForHybrid' field.boolean
Gets the value of the 'chunkingEnabled' field.static org.apache.avro.Schema
Gets the value of the 'compressionStrategy' field.long
Gets the value of the 'creationTime' field.boolean
Gets the value of the 'leaderFollowerModelEnabled' field.boolean
Gets the value of the 'nativeReplicationEnabled' 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.Gets the value of the 'pushType' field.org.apache.avro.Schema
org.apache.avro.specific.SpecificData
Gets the value of the 'status' field.int
Gets the value of the 'versionNumber' field.void
void
void
setBufferReplayEnabledForHybrid
(boolean value) Sets the value of the 'bufferReplayEnabledForHybrid' field.void
setChunkingEnabled
(boolean value) Sets the value of the 'chunkingEnabled' field.void
Sets the value of the 'compressionStrategy' field.void
setCreationTime
(long value) Sets the value of the 'creationTime' field.void
setLeaderFollowerModelEnabled
(boolean value) Sets the value of the 'leaderFollowerModelEnabled' field.void
setNativeReplicationEnabled
(boolean value) Sets the value of the 'nativeReplicationEnabled' 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
(CharSequence value) Sets the value of the 'pushType' field.void
setStatus
(CharSequence value) Sets the value of the 'status' field.void
setVersionNumber
(int value) Sets the value of the 'versionNumber' 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$ -
versionNumber
public int versionNumber -
pushJobId
-
partitionCount
public int partitionCount -
creationTime
public long creationTime -
chunkingEnabled
public boolean chunkingEnabled -
compressionStrategy
-
leaderFollowerModelEnabled
public boolean leaderFollowerModelEnabled -
bufferReplayEnabledForHybrid
public boolean bufferReplayEnabledForHybrid -
pushType
-
nativeReplicationEnabled
public boolean nativeReplicationEnabled -
status
-
pushStreamSourceAddress
-
partitionerConfig
-
-
Constructor Details
-
StoreVersionState
public StoreVersionState()Default constructor. Note that this does not initialize fields to their default values from the schema. If that is desired then one should usenewBuilder()
. -
StoreVersionState
public StoreVersionState(Integer versionNumber, CharSequence pushJobId, Integer partitionCount, Long creationTime, Boolean chunkingEnabled, CharSequence compressionStrategy, Boolean leaderFollowerModelEnabled, Boolean bufferReplayEnabledForHybrid, CharSequence pushType, Boolean nativeReplicationEnabled, CharSequence status, CharSequence pushStreamSourceAddress, PartitionerConfig partitionerConfig) All-args constructor.- Parameters:
versionNumber
- The new value for versionNumberpushJobId
- The new value for pushJobIdpartitionCount
- The new value for partitionCountcreationTime
- The new value for creationTimechunkingEnabled
- The new value for chunkingEnabledcompressionStrategy
- The new value for compressionStrategyleaderFollowerModelEnabled
- The new value for leaderFollowerModelEnabledbufferReplayEnabledForHybrid
- The new value for bufferReplayEnabledForHybridpushType
- The new value for pushTypenativeReplicationEnabled
- The new value for nativeReplicationEnabledstatus
- The new value for statuspushStreamSourceAddress
- The new value for pushStreamSourceAddresspartitionerConfig
- The new value for partitionerConfig
-
-
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
-
getVersionNumber
public int getVersionNumber()Gets the value of the 'versionNumber' field.- Returns:
- The value of the 'versionNumber' field.
-
setVersionNumber
public void setVersionNumber(int value) Sets the value of the 'versionNumber' 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.
-
getPartitionCount
public int getPartitionCount()Gets the value of the 'partitionCount' field.- Returns:
- The value of the 'partitionCount' field.
-
setPartitionCount
public void setPartitionCount(int value) Sets the value of the 'partitionCount' field.- Parameters:
value
- the value to set.
-
getCreationTime
public long getCreationTime()Gets the value of the 'creationTime' field.- Returns:
- The value of the 'creationTime' field.
-
setCreationTime
public void setCreationTime(long value) Sets the value of the 'creationTime' field.- Parameters:
value
- the value to set.
-
getChunkingEnabled
public boolean getChunkingEnabled()Gets the value of the 'chunkingEnabled' field.- Returns:
- The value of the 'chunkingEnabled' field.
-
setChunkingEnabled
public void setChunkingEnabled(boolean value) Sets the value of the 'chunkingEnabled' field.- Parameters:
value
- the value to set.
-
getCompressionStrategy
Gets the value of the 'compressionStrategy' field.- Returns:
- The value of the 'compressionStrategy' field.
-
setCompressionStrategy
Sets the value of the 'compressionStrategy' field.- Parameters:
value
- the value to set.
-
getLeaderFollowerModelEnabled
public boolean getLeaderFollowerModelEnabled()Gets the value of the 'leaderFollowerModelEnabled' field.- Returns:
- The value of the 'leaderFollowerModelEnabled' field.
-
setLeaderFollowerModelEnabled
public void setLeaderFollowerModelEnabled(boolean value) Sets the value of the 'leaderFollowerModelEnabled' field.- Parameters:
value
- the value to set.
-
getBufferReplayEnabledForHybrid
public boolean getBufferReplayEnabledForHybrid()Gets the value of the 'bufferReplayEnabledForHybrid' field.- Returns:
- The value of the 'bufferReplayEnabledForHybrid' field.
-
setBufferReplayEnabledForHybrid
public void setBufferReplayEnabledForHybrid(boolean value) Sets the value of the 'bufferReplayEnabledForHybrid' field.- Parameters:
value
- the value to set.
-
getPushType
Gets the value of the 'pushType' field.- Returns:
- The value of the 'pushType' field.
-
setPushType
Sets the value of the 'pushType' field.- Parameters:
value
- the value to set.
-
getNativeReplicationEnabled
public boolean getNativeReplicationEnabled()Gets the value of the 'nativeReplicationEnabled' field.- Returns:
- The value of the 'nativeReplicationEnabled' field.
-
setNativeReplicationEnabled
public void setNativeReplicationEnabled(boolean value) Sets the value of the 'nativeReplicationEnabled' field.- Parameters:
value
- the value to set.
-
getStatus
Gets the value of the 'status' field.- Returns:
- The value of the 'status' field.
-
setStatus
Sets the value of the 'status' field.- 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.
-
getPartitionerConfig
Gets the value of the 'partitionerConfig' field.- Returns:
- The value of the 'partitionerConfig' field.
-
setPartitionerConfig
Sets the value of the 'partitionerConfig' field.- 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
-