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 Summary
Modifier and TypeClassDescriptionstatic enum
static enum
-
Constructor Summary
ConstructorDescriptionPartitionReplicaIngestionContext
(PubSubTopic versionTopic, PubSubTopicPartition pubSubTopicPartition, PartitionReplicaIngestionContext.VersionRole versionRole, PartitionReplicaIngestionContext.WorkloadType workloadType) -
Method Summary
Modifier and TypeMethodDescriptiongetStoreVersionRole
(PubSubTopic versionTopic, Store store) getWorkloadType
(PubSubTopic versionTopic, Store store)
-
Constructor Details
-
PartitionReplicaIngestionContext
public PartitionReplicaIngestionContext(PubSubTopic versionTopic, PubSubTopicPartition pubSubTopicPartition, PartitionReplicaIngestionContext.VersionRole versionRole, PartitionReplicaIngestionContext.WorkloadType workloadType)
-
-
Method Details
-
getVersionRole
-
getPubSubTopicPartition
-
getVersionTopic
-
getWorkloadType
-
getWorkloadType
public static PartitionReplicaIngestionContext.WorkloadType getWorkloadType(PubSubTopic versionTopic, Store store) -
getStoreVersionRole
public static PartitionReplicaIngestionContext.VersionRole getStoreVersionRole(PubSubTopic versionTopic, Store store)
-