Class KafkaStream
- 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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description KafkaStream(String streamId, Map<String,ClusterMetadata> clusterMetadataMap)Construct aKafkaStreamby passing Kafka information in order to connect to the stream.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)Map<String,ClusterMetadata>getClusterMetadataMap()Get the metadata to connect to the various cluster(s).StringgetStreamId()Get the stream id.inthashCode()StringtoString()
-
-
-
Constructor Detail
-
KafkaStream
public KafkaStream(String streamId, Map<String,ClusterMetadata> clusterMetadataMap)
Construct aKafkaStreamby passing Kafka information in order to connect to the stream.- Parameters:
streamId- the stream id.clusterMetadataMap- the map of clusters toClusterMetadatato connect to the stream.
-
-
Method Detail
-
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.
-
-