Interface TopologyDescriber


@Public @Evolving public interface TopologyDescriber
The topology describer is used by the TaskAssignor to get topic and task metadata of the group's topology.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    isStateful(String subtopologyId)
    Checks whether the given subtopology is associated with a changelog topic.
    int
    The maximal number of input partitions among all source topics for the given subtopology.
    The IDs of all subtopologies in the group's topology.
  • Method Details

    • subtopologies

      List<String> subtopologies()
      The IDs of all subtopologies in the group's topology.
      Returns:
      The list of subtopology IDs.
    • maxNumInputPartitions

      int maxNumInputPartitions(String subtopologyId) throws NoSuchElementException
      The maximal number of input partitions among all source topics for the given subtopology.
      Parameters:
      subtopologyId - String identifying the subtopology.
      Returns:
      The maximal number of input partitions among all source topics for the given subtopology.
      Throws:
      NoSuchElementException - if the subtopology ID does not exist.
      IllegalStateException - if the subtopology contains no source topics.
    • isStateful

      boolean isStateful(String subtopologyId)
      Checks whether the given subtopology is associated with a changelog topic.
      Parameters:
      subtopologyId - String identifying the subtopology.
      Returns:
      true if the subtopology is associated with a changelog topic, false otherwise.
      Throws:
      NoSuchElementException - if the subtopology ID does not exist.