...
Code Block | ||||
---|---|---|---|---|
| ||||
/** * A simple container class corresponding to a given {@link TaskId}. * Includes metadata such as whether it's stateful and the names of all state stores * belonging to this task, the set of input topic partitions and changelog topic partitions * for all logged state stores, and the rack ids of all replicas of each topic partition * in the task. */ public interface TaskInfo { TaskId id(); boolean isStateful(); Set<String> stateStoreNames(); Set<TaskTopicPartition> topicPartitions(); Set<TopicPartition> inputTopicPartitions(); Set<TopicPartition> changelogTopicPartitions(); Map<TopicPartition, Set<String>> partitionToRackIds(); } |
TaskTopicPartition
Another basic metadata container, this indicates whether the partition belongs to a source topic or a changelog topic (or in the case of a source-changelog topic, both) as well the rack ids of replicas hosting this partition, if available:
...