java.lang.Object
org.apache.flink.connector.kafka.dynamic.metadata.KafkaStream
All Implemented Interfaces:
Serializable

@Experimental public class KafkaStream extends Object implements Serializable
Kafka stream represents multiple topics over multiple Kafka clusters and this class encapsulates all the necessary information to initiate Kafka consumers to read a stream.
See Also:
  • Constructor Details

    • KafkaStream

      public KafkaStream(String streamId, Map<String,ClusterMetadata> clusterMetadataMap)
      Construct a KafkaStream by passing Kafka information in order to connect to the stream.
      Parameters:
      streamId - the stream id.
      clusterMetadataMap - the map of clusters to ClusterMetadata to connect to the stream.
  • Method Details

    • getStreamId

      public String getStreamId()
      Get the stream id.
      Returns:
      the stream id.
    • getClusterMetadataMap

      public Map<String,ClusterMetadata> getClusterMetadataMap()
      Get the metadata to connect to the various cluster(s).
      Returns:
      the cluster metadata map.
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object