Class PartitionReplicaIngestionContext
java.lang.Object
com.linkedin.davinci.kafka.consumer.PartitionReplicaIngestionContext
This class is for wrapping the information about the role of the partition replica on that host to
  
AggKafkaConsumerService to achieve finer granularity of consumer assignment. Those information should be
  triggered by store version role (future, current and backup), workload type and leader or follower state. Version role
  and workload type information are properly managed by StoreIngestionTask to be sent to
  AggKafkaConsumerService. We could add more information regarding this partition replica if needed in the future.- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic enumstatic enum
- 
Constructor SummaryConstructorsConstructorDescriptionPartitionReplicaIngestionContext(PubSubTopic versionTopic, PubSubTopicPartition pubSubTopicPartition, PartitionReplicaIngestionContext.VersionRole versionRole, PartitionReplicaIngestionContext.WorkloadType workloadType) 
- 
Method SummaryModifier and TypeMethodDescriptiondetermineStoreVersionRole(int versionNumber, int currentVersionNumber) determineWorkloadType(boolean isActiveActiveReplicationEnabled, boolean isWriteComputationEnabled) 
- 
Constructor Details- 
PartitionReplicaIngestionContextpublic PartitionReplicaIngestionContext(PubSubTopic versionTopic, PubSubTopicPartition pubSubTopicPartition, PartitionReplicaIngestionContext.VersionRole versionRole, PartitionReplicaIngestionContext.WorkloadType workloadType) 
 
- 
- 
Method Details- 
getVersionRole
- 
getPubSubTopicPartition
- 
getVersionTopic
- 
getWorkloadType
- 
determineWorkloadTypepublic static PartitionReplicaIngestionContext.WorkloadType determineWorkloadType(boolean isActiveActiveReplicationEnabled, boolean isWriteComputationEnabled) 
- 
determineStoreVersionRolepublic static PartitionReplicaIngestionContext.VersionRole determineStoreVersionRole(int versionNumber, int currentVersionNumber) 
 
-