Class PartitionState
java.lang.Object
org.apache.avro.specific.SpecificRecordBase
com.linkedin.venice.kafka.protocol.state.PartitionState
- 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 PartitionState
extends org.apache.avro.specific.SpecificRecordBase
implements org.apache.avro.specific.SpecificRecord
This record holds the state necessary for a consumer to checkpoint its progress when consuming a Venice partition. When provided the state in this record, a consumer should thus be able to resume consuming midway through a stream.
- See Also:
- 
Field SummaryFieldsModifier and TypeFieldDescriptionThe pubsub position marking the start of the current leader's term in the version topic.A map of string -> string to store database related info, which is necessary to checkpointbooleanWhether the EndOfPush control message was consumed in this partition.longThe most stale heartbeat timestamp among all the regions in this partition for fast online transition during server restart.metadata of ongoing incremental push in the partitionWhen key compression is enabled, this field keeps all the related information for key URN compression.longThe most recent checkpoint timestamp for fast online transition during server restart.longThe last offset consumed successfully in this partition from the version topic.The last PubSub position consumed successfully in this partition from the version topic.The last PubSub position processed successfully in this partition from version topiclongThe last time this PartitionState was updated.longThe most recent termId observed by this replica.This field is deprecated since GUID is no longer able to identify the split-brain issue once 'pass-through' mode is enabled in venice writer.An unique identifier (such as host name) that stands for each host.longThe last Kafka offset consumed successfully in this partition from the leader topic.The topic that leader is consuming from; for leader, leaderTopic can be different from the version topic; for follower, leaderTopic is the same as version topic.longThe last Kafka offset processed successfully in this partition from version topic.longThe last Kafka offset lag in this partition for fast online transition in server restart.A list of string which stands for incremental push versions which have received EOIP but not yet reported prior to lag caught up, they will be reported in batchA map of string -> string which stands for previous PartitionStatusA map of producer GUID -> producer state.A map that maps upstream Kafka bootstrap server url -> to a map of producer GUID -> producer state for real-time data.An integer hash code used by the DaVinciRecordTransformer to detect changes to the user's class during bootstrapping.static final org.apache.avro.SchemaThis is the offset at which the StartOfBufferReplay control message was consumed in the current partition of the destination topic.A map of upstream Kafka bootstrap server url -> the last Kafka offset consumed from upstream topic.A map of upstream PubSub bootstrap server url -> the last PubSub position consumed from upstream topic.longThe last upstream version topic offset persisted to disk; if the batch native-replication source is the same as local region, this value will always be -1The last upstream version topic PubSub position persisted to disk; if the batch native-replication source is the same as local region, this value will always be null
- 
Constructor SummaryConstructorsConstructorDescriptionDefault constructor.PartitionState(Long offset, Long offsetLag, Boolean endOfPush, Long lastUpdate, Long startOfBufferReplayDestinationOffset, Map<CharSequence, CharSequence> databaseInfo, IncrementalPush incrementalPushInfo, CharSequence leaderTopic, Long leaderOffset, Map<String, Long> upstreamOffsetMap, Map<String, ByteBuffer> upstreamRealTimeTopicPubSubPositionMap, Long upstreamVersionTopicOffset, ByteBuffer upstreamVersionTopicPubSubPosition, GUID leaderGUID, CharSequence leaderHostId, Map<CharSequence, ProducerPartitionState> producerStates, Map<CharSequence, CharSequence> previousStatuses, List<CharSequence> pendingReportIncrementalPushVersions, Map<String, Map<CharSequence, ProducerPartitionState>> realtimeTopicProducerStates, Integer recordTransformerClassHash, ByteBuffer lastProcessedVersionTopicPubSubPosition, ByteBuffer lastConsumedVersionTopicPubSubPosition, Long latestObservedTermId, ByteBuffer currentTermStartPubSubPosition, Long lastConsumedVersionTopicOffset, Long heartbeatTimestamp, Long lastCheckpointTimestamp, KeyUrnCompressionDict keyUrnCompressionDict) All-args constructor.
- 
Method SummaryModifier and TypeMethodDescriptionget(int field$) static org.apache.avro.SchemaGets the value of the 'currentTermStartPubSubPosition' field.Gets the value of the 'databaseInfo' field.booleanGets the value of the 'endOfPush' field.longGets the value of the 'heartbeatTimestamp' field.Gets the value of the 'incrementalPushInfo' field.Gets the value of the 'keyUrnCompressionDict' field.longGets the value of the 'lastCheckpointTimestamp' field.longGets the value of the 'lastConsumedVersionTopicOffset' field.Gets the value of the 'lastConsumedVersionTopicPubSubPosition' field.Gets the value of the 'lastProcessedVersionTopicPubSubPosition' field.longGets the value of the 'lastUpdate' field.longGets the value of the 'latestObservedTermId' field.Gets the value of the 'leaderGUID' field.Gets the value of the 'leaderHostId' field.longGets the value of the 'leaderOffset' field.Gets the value of the 'leaderTopic' field.longGets the value of the 'offset' field.longGets the value of the 'offsetLag' field.Gets the value of the 'pendingReportIncrementalPushVersions' field.Gets the value of the 'previousStatuses' field.Gets the value of the 'producerStates' field.Gets the value of the 'realtimeTopicProducerStates' field.Gets the value of the 'recordTransformerClassHash' field.org.apache.avro.Schemaorg.apache.avro.specific.SpecificDataGets the value of the 'startOfBufferReplayDestinationOffset' field.Gets the value of the 'upstreamOffsetMap' field.Gets the value of the 'upstreamRealTimeTopicPubSubPositionMap' field.longGets the value of the 'upstreamVersionTopicOffset' field.Gets the value of the 'upstreamVersionTopicPubSubPosition' field.voidvoidvoidSets the value of the 'currentTermStartPubSubPosition' field.voidsetDatabaseInfo(Map<CharSequence, CharSequence> value) Sets the value of the 'databaseInfo' field.voidsetEndOfPush(boolean value) Sets the value of the 'endOfPush' field.voidsetHeartbeatTimestamp(long value) Sets the value of the 'heartbeatTimestamp' field.voidSets the value of the 'incrementalPushInfo' field.voidSets the value of the 'keyUrnCompressionDict' field.voidsetLastCheckpointTimestamp(long value) Sets the value of the 'lastCheckpointTimestamp' field.voidsetLastConsumedVersionTopicOffset(long value) Sets the value of the 'lastConsumedVersionTopicOffset' field.voidSets the value of the 'lastConsumedVersionTopicPubSubPosition' field.voidSets the value of the 'lastProcessedVersionTopicPubSubPosition' field.voidsetLastUpdate(long value) Sets the value of the 'lastUpdate' field.voidsetLatestObservedTermId(long value) Sets the value of the 'latestObservedTermId' field.voidsetLeaderGUID(GUID value) Sets the value of the 'leaderGUID' field.voidsetLeaderHostId(CharSequence value) Sets the value of the 'leaderHostId' field.voidsetLeaderOffset(long value) Sets the value of the 'leaderOffset' field.voidsetLeaderTopic(CharSequence value) Sets the value of the 'leaderTopic' field.voidsetOffset(long value) Sets the value of the 'offset' field.voidsetOffsetLag(long value) Sets the value of the 'offsetLag' field.voidSets the value of the 'pendingReportIncrementalPushVersions' field.voidSets the value of the 'previousStatuses' field.voidSets the value of the 'producerStates' field.voidSets the value of the 'realtimeTopicProducerStates' field.voidSets the value of the 'recordTransformerClassHash' field.voidSets the value of the 'startOfBufferReplayDestinationOffset' field.voidsetUpstreamOffsetMap(Map<String, Long> value) Sets the value of the 'upstreamOffsetMap' field.voidSets the value of the 'upstreamRealTimeTopicPubSubPositionMap' field.voidsetUpstreamVersionTopicOffset(long value) Sets the value of the 'upstreamVersionTopicOffset' field.voidSets the value of the 'upstreamVersionTopicPubSubPosition' field.voidMethods inherited from class org.apache.avro.specific.SpecificRecordBasecompareTo, customDecode, customEncode, equals, get, getConversion, getConversion, hasCustomCoders, hashCode, put, toStringMethods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.avro.generic.GenericRecordhasField
- 
Field Details- 
SCHEMA$public static final org.apache.avro.Schema SCHEMA$
- 
offsetpublic long offsetThe last Kafka offset processed successfully in this partition from version topic.
- 
offsetLagpublic long offsetLagThe last Kafka offset lag in this partition for fast online transition in server restart.
- 
endOfPushpublic boolean endOfPushWhether the EndOfPush control message was consumed in this partition.
- 
lastUpdatepublic long lastUpdateThe last time this PartitionState was updated. Can be compared against the various messageTimestamp in ProducerPartitionState in order to infer lag time between producers and the consumer maintaining this PartitionState.
- 
startOfBufferReplayDestinationOffsetThis is the offset at which the StartOfBufferReplay control message was consumed in the current partition of the destination topic. This is not the same value as the source offsets contained in the StartOfBufferReplay control message itself. The source and destination offsets act together as a synchronization marker. N.B.: null means that the SOBR control message was not received yet.
- 
databaseInfoA map of string -> string to store database related info, which is necessary to checkpoint
- 
incrementalPushInfometadata of ongoing incremental push in the partition
- 
leaderTopicThe topic that leader is consuming from; for leader, leaderTopic can be different from the version topic; for follower, leaderTopic is the same as version topic.
- 
leaderOffsetpublic long leaderOffsetThe last Kafka offset consumed successfully in this partition from the leader topic. TODO: remove this field once upstreamOffsetMap is used everywhere.
- 
upstreamOffsetMapA map of upstream Kafka bootstrap server url -> the last Kafka offset consumed from upstream topic.
- 
upstreamRealTimeTopicPubSubPositionMapA map of upstream PubSub bootstrap server url -> the last PubSub position consumed from upstream topic.
- 
upstreamVersionTopicOffsetpublic long upstreamVersionTopicOffsetThe last upstream version topic offset persisted to disk; if the batch native-replication source is the same as local region, this value will always be -1
- 
upstreamVersionTopicPubSubPositionThe last upstream version topic PubSub position persisted to disk; if the batch native-replication source is the same as local region, this value will always be null
- 
leaderGUIDThis field is deprecated since GUID is no longer able to identify the split-brain issue once 'pass-through' mode is enabled in venice writer. The field is superseded by leaderHostId and will be removed in the future
- 
leaderHostIdAn unique identifier (such as host name) that stands for each host. It's used to identify if there is a split-brain happened while the leader(s) re-produce records
- 
producerStatesA map of producer GUID -> producer state.
- 
previousStatusesA map of string -> string which stands for previous PartitionStatus
- 
pendingReportIncrementalPushVersionsA list of string which stands for incremental push versions which have received EOIP but not yet reported prior to lag caught up, they will be reported in batch
- 
realtimeTopicProducerStatesA map that maps upstream Kafka bootstrap server url -> to a map of producer GUID -> producer state for real-time data.
- 
recordTransformerClassHashAn integer hash code used by the DaVinciRecordTransformer to detect changes to the user's class during bootstrapping.
- 
lastProcessedVersionTopicPubSubPositionThe last PubSub position processed successfully in this partition from version topic
- 
lastConsumedVersionTopicPubSubPositionThe last PubSub position consumed successfully in this partition from the version topic. This is used during resubscription when the Global RT DIV feature is enabled.
- 
latestObservedTermIdpublic long latestObservedTermIdThe most recent termId observed by this replica.
- 
currentTermStartPubSubPositionThe pubsub position marking the start of the current leader's term in the version topic.
- 
lastConsumedVersionTopicOffsetpublic long lastConsumedVersionTopicOffsetThe last offset consumed successfully in this partition from the version topic. This is used during resubscription when the Global RT DIV feature is enabled.
- 
heartbeatTimestamppublic long heartbeatTimestampThe most stale heartbeat timestamp among all the regions in this partition for fast online transition during server restart.
- 
lastCheckpointTimestamppublic long lastCheckpointTimestampThe most recent checkpoint timestamp for fast online transition during server restart.
- 
keyUrnCompressionDictWhen key compression is enabled, this field keeps all the related information for key URN compression.
 
- 
- 
Constructor Details- 
PartitionStatepublic PartitionState()Default constructor. Note that this does not initialize fields to their default values from the schema. If that is desired then one should usenewBuilder().
- 
PartitionStatepublic PartitionState(Long offset, Long offsetLag, Boolean endOfPush, Long lastUpdate, Long startOfBufferReplayDestinationOffset, Map<CharSequence, CharSequence> databaseInfo, IncrementalPush incrementalPushInfo, CharSequence leaderTopic, Long leaderOffset, Map<String, Long> upstreamOffsetMap, Map<String, ByteBuffer> upstreamRealTimeTopicPubSubPositionMap, Long upstreamVersionTopicOffset, ByteBuffer upstreamVersionTopicPubSubPosition, GUID leaderGUID, CharSequence leaderHostId, Map<CharSequence, ProducerPartitionState> producerStates, Map<CharSequence, CharSequence> previousStatuses, List<CharSequence> pendingReportIncrementalPushVersions, Map<String, Map<CharSequence, ProducerPartitionState>> realtimeTopicProducerStates, Integer recordTransformerClassHash, ByteBuffer lastProcessedVersionTopicPubSubPosition, ByteBuffer lastConsumedVersionTopicPubSubPosition, Long latestObservedTermId, ByteBuffer currentTermStartPubSubPosition, Long lastConsumedVersionTopicOffset, Long heartbeatTimestamp, Long lastCheckpointTimestamp, KeyUrnCompressionDict keyUrnCompressionDict) All-args constructor.- Parameters:
- offset- The last Kafka offset processed successfully in this partition from version topic.
- offsetLag- The last Kafka offset lag in this partition for fast online transition in server restart.
- endOfPush- Whether the EndOfPush control message was consumed in this partition.
- lastUpdate- The last time this PartitionState was updated. Can be compared against the various messageTimestamp in ProducerPartitionState in order to infer lag time between producers and the consumer maintaining this PartitionState.
- startOfBufferReplayDestinationOffset- This is the offset at which the StartOfBufferReplay control message was consumed in the current partition of the destination topic. This is not the same value as the source offsets contained in the StartOfBufferReplay control message itself. The source and destination offsets act together as a synchronization marker. N.B.: null means that the SOBR control message was not received yet.
- databaseInfo- A map of string -> string to store database related info, which is necessary to checkpoint
- incrementalPushInfo- metadata of ongoing incremental push in the partition
- leaderTopic- The topic that leader is consuming from; for leader, leaderTopic can be different from the version topic; for follower, leaderTopic is the same as version topic.
- leaderOffset- The last Kafka offset consumed successfully in this partition from the leader topic. TODO: remove this field once upstreamOffsetMap is used everywhere.
- upstreamOffsetMap- A map of upstream Kafka bootstrap server url -> the last Kafka offset consumed from upstream topic.
- upstreamRealTimeTopicPubSubPositionMap- A map of upstream PubSub bootstrap server url -> the last PubSub position consumed from upstream topic.
- upstreamVersionTopicOffset- The last upstream version topic offset persisted to disk; if the batch native-replication source is the same as local region, this value will always be -1
- upstreamVersionTopicPubSubPosition- The last upstream version topic PubSub position persisted to disk; if the batch native-replication source is the same as local region, this value will always be null
- leaderGUID- This field is deprecated since GUID is no longer able to identify the split-brain issue once 'pass-through' mode is enabled in venice writer. The field is superseded by leaderHostId and will be removed in the future
- leaderHostId- An unique identifier (such as host name) that stands for each host. It's used to identify if there is a split-brain happened while the leader(s) re-produce records
- producerStates- A map of producer GUID -> producer state.
- previousStatuses- A map of string -> string which stands for previous PartitionStatus
- pendingReportIncrementalPushVersions- A list of string which stands for incremental push versions which have received EOIP but not yet reported prior to lag caught up, they will be reported in batch
- realtimeTopicProducerStates- A map that maps upstream Kafka bootstrap server url -> to a map of producer GUID -> producer state for real-time data.
- recordTransformerClassHash- An integer hash code used by the DaVinciRecordTransformer to detect changes to the user's class during bootstrapping.
- lastProcessedVersionTopicPubSubPosition- The last PubSub position processed successfully in this partition from version topic
- lastConsumedVersionTopicPubSubPosition- The last PubSub position consumed successfully in this partition from the version topic. This is used during resubscription when the Global RT DIV feature is enabled.
- latestObservedTermId- The most recent termId observed by this replica.
- currentTermStartPubSubPosition- The pubsub position marking the start of the current leader's term in the version topic.
- lastConsumedVersionTopicOffset- The last offset consumed successfully in this partition from the version topic. This is used during resubscription when the Global RT DIV feature is enabled.
- heartbeatTimestamp- The most stale heartbeat timestamp among all the regions in this partition for fast online transition during server restart.
- lastCheckpointTimestamp- The most recent checkpoint timestamp for fast online transition during server restart.
- keyUrnCompressionDict- When key compression is enabled, this field keeps all the related information for key URN compression.
 
 
- 
- 
Method Details- 
getClassSchemapublic static org.apache.avro.Schema getClassSchema()
- 
getSpecificDatapublic org.apache.avro.specific.SpecificData getSpecificData()- Overrides:
- getSpecificDatain class- org.apache.avro.specific.SpecificRecordBase
 
- 
getSchemapublic org.apache.avro.Schema getSchema()- Specified by:
- getSchemain interface- org.apache.avro.generic.GenericContainer
- Specified by:
- getSchemain class- org.apache.avro.specific.SpecificRecordBase
 
- 
get- Specified by:
- getin interface- org.apache.avro.generic.IndexedRecord
- Specified by:
- getin class- org.apache.avro.specific.SpecificRecordBase
 
- 
put- Specified by:
- putin interface- org.apache.avro.generic.IndexedRecord
- Specified by:
- putin class- org.apache.avro.specific.SpecificRecordBase
 
- 
getOffsetpublic long getOffset()Gets the value of the 'offset' field.- Returns:
- The last Kafka offset processed successfully in this partition from version topic.
 
- 
setOffsetpublic void setOffset(long value) Sets the value of the 'offset' field. The last Kafka offset processed successfully in this partition from version topic.- Parameters:
- value- the value to set.
 
- 
getOffsetLagpublic long getOffsetLag()Gets the value of the 'offsetLag' field.- Returns:
- The last Kafka offset lag in this partition for fast online transition in server restart.
 
- 
setOffsetLagpublic void setOffsetLag(long value) Sets the value of the 'offsetLag' field. The last Kafka offset lag in this partition for fast online transition in server restart.- Parameters:
- value- the value to set.
 
- 
getEndOfPushpublic boolean getEndOfPush()Gets the value of the 'endOfPush' field.- Returns:
- Whether the EndOfPush control message was consumed in this partition.
 
- 
setEndOfPushpublic void setEndOfPush(boolean value) Sets the value of the 'endOfPush' field. Whether the EndOfPush control message was consumed in this partition.- Parameters:
- value- the value to set.
 
- 
getLastUpdatepublic long getLastUpdate()Gets the value of the 'lastUpdate' field.- Returns:
- The last time this PartitionState was updated. Can be compared against the various messageTimestamp in ProducerPartitionState in order to infer lag time between producers and the consumer maintaining this PartitionState.
 
- 
setLastUpdatepublic void setLastUpdate(long value) Sets the value of the 'lastUpdate' field. The last time this PartitionState was updated. Can be compared against the various messageTimestamp in ProducerPartitionState in order to infer lag time between producers and the consumer maintaining this PartitionState.- Parameters:
- value- the value to set.
 
- 
getStartOfBufferReplayDestinationOffsetGets the value of the 'startOfBufferReplayDestinationOffset' field.- Returns:
- This is the offset at which the StartOfBufferReplay control message was consumed in the current partition of the destination topic. This is not the same value as the source offsets contained in the StartOfBufferReplay control message itself. The source and destination offsets act together as a synchronization marker. N.B.: null means that the SOBR control message was not received yet.
 
- 
setStartOfBufferReplayDestinationOffsetSets the value of the 'startOfBufferReplayDestinationOffset' field. This is the offset at which the StartOfBufferReplay control message was consumed in the current partition of the destination topic. This is not the same value as the source offsets contained in the StartOfBufferReplay control message itself. The source and destination offsets act together as a synchronization marker. N.B.: null means that the SOBR control message was not received yet.- Parameters:
- value- the value to set.
 
- 
getDatabaseInfoGets the value of the 'databaseInfo' field.- Returns:
- A map of string -> string to store database related info, which is necessary to checkpoint
 
- 
setDatabaseInfoSets the value of the 'databaseInfo' field. A map of string -> string to store database related info, which is necessary to checkpoint- Parameters:
- value- the value to set.
 
- 
getIncrementalPushInfoGets the value of the 'incrementalPushInfo' field.- Returns:
- metadata of ongoing incremental push in the partition
 
- 
setIncrementalPushInfoSets the value of the 'incrementalPushInfo' field. metadata of ongoing incremental push in the partition- Parameters:
- value- the value to set.
 
- 
getLeaderTopicGets the value of the 'leaderTopic' field.- Returns:
- The topic that leader is consuming from; for leader, leaderTopic can be different from the version topic; for follower, leaderTopic is the same as version topic.
 
- 
setLeaderTopicSets the value of the 'leaderTopic' field. The topic that leader is consuming from; for leader, leaderTopic can be different from the version topic; for follower, leaderTopic is the same as version topic.- Parameters:
- value- the value to set.
 
- 
getLeaderOffsetpublic long getLeaderOffset()Gets the value of the 'leaderOffset' field.- Returns:
- The last Kafka offset consumed successfully in this partition from the leader topic. TODO: remove this field once upstreamOffsetMap is used everywhere.
 
- 
setLeaderOffsetpublic void setLeaderOffset(long value) Sets the value of the 'leaderOffset' field. The last Kafka offset consumed successfully in this partition from the leader topic. TODO: remove this field once upstreamOffsetMap is used everywhere.- Parameters:
- value- the value to set.
 
- 
getUpstreamOffsetMapGets the value of the 'upstreamOffsetMap' field.- Returns:
- A map of upstream Kafka bootstrap server url -> the last Kafka offset consumed from upstream topic.
 
- 
setUpstreamOffsetMapSets the value of the 'upstreamOffsetMap' field. A map of upstream Kafka bootstrap server url -> the last Kafka offset consumed from upstream topic.- Parameters:
- value- the value to set.
 
- 
getUpstreamRealTimeTopicPubSubPositionMapGets the value of the 'upstreamRealTimeTopicPubSubPositionMap' field.- Returns:
- A map of upstream PubSub bootstrap server url -> the last PubSub position consumed from upstream topic.
 
- 
setUpstreamRealTimeTopicPubSubPositionMapSets the value of the 'upstreamRealTimeTopicPubSubPositionMap' field. A map of upstream PubSub bootstrap server url -> the last PubSub position consumed from upstream topic.- Parameters:
- value- the value to set.
 
- 
getUpstreamVersionTopicOffsetpublic long getUpstreamVersionTopicOffset()Gets the value of the 'upstreamVersionTopicOffset' field.- Returns:
- The last upstream version topic offset persisted to disk; if the batch native-replication source is the same as local region, this value will always be -1
 
- 
setUpstreamVersionTopicOffsetpublic void setUpstreamVersionTopicOffset(long value) Sets the value of the 'upstreamVersionTopicOffset' field. The last upstream version topic offset persisted to disk; if the batch native-replication source is the same as local region, this value will always be -1- Parameters:
- value- the value to set.
 
- 
getUpstreamVersionTopicPubSubPositionGets the value of the 'upstreamVersionTopicPubSubPosition' field.- Returns:
- The last upstream version topic PubSub position persisted to disk; if the batch native-replication source is the same as local region, this value will always be null
 
- 
setUpstreamVersionTopicPubSubPositionSets the value of the 'upstreamVersionTopicPubSubPosition' field. The last upstream version topic PubSub position persisted to disk; if the batch native-replication source is the same as local region, this value will always be null- Parameters:
- value- the value to set.
 
- 
getLeaderGUIDGets the value of the 'leaderGUID' field.- Returns:
- This field is deprecated since GUID is no longer able to identify the split-brain issue once 'pass-through' mode is enabled in venice writer. The field is superseded by leaderHostId and will be removed in the future
 
- 
setLeaderGUIDSets the value of the 'leaderGUID' field. This field is deprecated since GUID is no longer able to identify the split-brain issue once 'pass-through' mode is enabled in venice writer. The field is superseded by leaderHostId and will be removed in the future- Parameters:
- value- the value to set.
 
- 
getLeaderHostIdGets the value of the 'leaderHostId' field.- Returns:
- An unique identifier (such as host name) that stands for each host. It's used to identify if there is a split-brain happened while the leader(s) re-produce records
 
- 
setLeaderHostIdSets the value of the 'leaderHostId' field. An unique identifier (such as host name) that stands for each host. It's used to identify if there is a split-brain happened while the leader(s) re-produce records- Parameters:
- value- the value to set.
 
- 
getProducerStatesGets the value of the 'producerStates' field.- Returns:
- A map of producer GUID -> producer state.
 
- 
setProducerStatesSets the value of the 'producerStates' field. A map of producer GUID -> producer state.- Parameters:
- value- the value to set.
 
- 
getPreviousStatusesGets the value of the 'previousStatuses' field.- Returns:
- A map of string -> string which stands for previous PartitionStatus
 
- 
setPreviousStatusesSets the value of the 'previousStatuses' field. A map of string -> string which stands for previous PartitionStatus- Parameters:
- value- the value to set.
 
- 
getPendingReportIncrementalPushVersionsGets the value of the 'pendingReportIncrementalPushVersions' field.- Returns:
- A list of string which stands for incremental push versions which have received EOIP but not yet reported prior to lag caught up, they will be reported in batch
 
- 
setPendingReportIncrementalPushVersionsSets the value of the 'pendingReportIncrementalPushVersions' field. A list of string which stands for incremental push versions which have received EOIP but not yet reported prior to lag caught up, they will be reported in batch- Parameters:
- value- the value to set.
 
- 
getRealtimeTopicProducerStatesGets the value of the 'realtimeTopicProducerStates' field.- Returns:
- A map that maps upstream Kafka bootstrap server url -> to a map of producer GUID -> producer state for real-time data.
 
- 
setRealtimeTopicProducerStatespublic void setRealtimeTopicProducerStates(Map<String, Map<CharSequence, ProducerPartitionState>> value) Sets the value of the 'realtimeTopicProducerStates' field. A map that maps upstream Kafka bootstrap server url -> to a map of producer GUID -> producer state for real-time data.- Parameters:
- value- the value to set.
 
- 
getRecordTransformerClassHashGets the value of the 'recordTransformerClassHash' field.- Returns:
- An integer hash code used by the DaVinciRecordTransformer to detect changes to the user's class during bootstrapping.
 
- 
setRecordTransformerClassHashSets the value of the 'recordTransformerClassHash' field. An integer hash code used by the DaVinciRecordTransformer to detect changes to the user's class during bootstrapping.- Parameters:
- value- the value to set.
 
- 
getLastProcessedVersionTopicPubSubPositionGets the value of the 'lastProcessedVersionTopicPubSubPosition' field.- Returns:
- The last PubSub position processed successfully in this partition from version topic
 
- 
setLastProcessedVersionTopicPubSubPositionSets the value of the 'lastProcessedVersionTopicPubSubPosition' field. The last PubSub position processed successfully in this partition from version topic- Parameters:
- value- the value to set.
 
- 
getLastConsumedVersionTopicPubSubPositionGets the value of the 'lastConsumedVersionTopicPubSubPosition' field.- Returns:
- The last PubSub position consumed successfully in this partition from the version topic. This is used during resubscription when the Global RT DIV feature is enabled.
 
- 
setLastConsumedVersionTopicPubSubPositionSets the value of the 'lastConsumedVersionTopicPubSubPosition' field. The last PubSub position consumed successfully in this partition from the version topic. This is used during resubscription when the Global RT DIV feature is enabled.- Parameters:
- value- the value to set.
 
- 
getLatestObservedTermIdpublic long getLatestObservedTermId()Gets the value of the 'latestObservedTermId' field.- Returns:
- The most recent termId observed by this replica.
 
- 
setLatestObservedTermIdpublic void setLatestObservedTermId(long value) Sets the value of the 'latestObservedTermId' field. The most recent termId observed by this replica.- Parameters:
- value- the value to set.
 
- 
getCurrentTermStartPubSubPositionGets the value of the 'currentTermStartPubSubPosition' field.- Returns:
- The pubsub position marking the start of the current leader's term in the version topic.
 
- 
setCurrentTermStartPubSubPositionSets the value of the 'currentTermStartPubSubPosition' field. The pubsub position marking the start of the current leader's term in the version topic.- Parameters:
- value- the value to set.
 
- 
getLastConsumedVersionTopicOffsetpublic long getLastConsumedVersionTopicOffset()Gets the value of the 'lastConsumedVersionTopicOffset' field.- Returns:
- The last offset consumed successfully in this partition from the version topic. This is used during resubscription when the Global RT DIV feature is enabled.
 
- 
setLastConsumedVersionTopicOffsetpublic void setLastConsumedVersionTopicOffset(long value) Sets the value of the 'lastConsumedVersionTopicOffset' field. The last offset consumed successfully in this partition from the version topic. This is used during resubscription when the Global RT DIV feature is enabled.- Parameters:
- value- the value to set.
 
- 
getHeartbeatTimestamppublic long getHeartbeatTimestamp()Gets the value of the 'heartbeatTimestamp' field.- Returns:
- The most stale heartbeat timestamp among all the regions in this partition for fast online transition during server restart.
 
- 
setHeartbeatTimestamppublic void setHeartbeatTimestamp(long value) Sets the value of the 'heartbeatTimestamp' field. The most stale heartbeat timestamp among all the regions in this partition for fast online transition during server restart.- Parameters:
- value- the value to set.
 
- 
getLastCheckpointTimestamppublic long getLastCheckpointTimestamp()Gets the value of the 'lastCheckpointTimestamp' field.- Returns:
- The most recent checkpoint timestamp for fast online transition during server restart.
 
- 
setLastCheckpointTimestamppublic void setLastCheckpointTimestamp(long value) Sets the value of the 'lastCheckpointTimestamp' field. The most recent checkpoint timestamp for fast online transition during server restart.- Parameters:
- value- the value to set.
 
- 
getKeyUrnCompressionDictGets the value of the 'keyUrnCompressionDict' field.- Returns:
- When key compression is enabled, this field keeps all the related information for key URN compression.
 
- 
setKeyUrnCompressionDictSets the value of the 'keyUrnCompressionDict' field. When key compression is enabled, this field keeps all the related information for key URN compression.- Parameters:
- value- the value to set.
 
- 
writeExternal- Specified by:
- writeExternalin interface- Externalizable
- Overrides:
- writeExternalin class- org.apache.avro.specific.SpecificRecordBase
- Throws:
- IOException
 
- 
readExternal- Specified by:
- readExternalin interface- Externalizable
- Overrides:
- readExternalin class- org.apache.avro.specific.SpecificRecordBase
- Throws:
- IOException
 
 
-