Class InternalTopologyBuilder.Sink<K,V>
- java.lang.Object
-
- org.apache.kafka.streams.processor.internals.InternalTopologyBuilder.AbstractNode
-
- org.apache.kafka.streams.processor.internals.InternalTopologyBuilder.Sink<K,V>
-
- All Implemented Interfaces:
TopologyDescription.Node,TopologyDescription.Sink
- Enclosing class:
- InternalTopologyBuilder
public static final class InternalTopologyBuilder.Sink<K,V> extends InternalTopologyBuilder.AbstractNode implements TopologyDescription.Sink
-
-
Constructor Summary
Constructors Constructor Description Sink(java.lang.String name, java.lang.String topic)Sink(java.lang.String name, TopicNameExtractor<K,V> topicNameExtractor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddSuccessor(TopologyDescription.Node successor)booleanequals(java.lang.Object o)inthashCode()java.lang.Stringtopic()The topic name this sink node is writing to.TopicNameExtractor<K,V>topicNameExtractor()TheTopicNameExtractorclass that this sink node uses to dynamically extract the topic name to write to.java.lang.StringtoString()-
Methods inherited from class org.apache.kafka.streams.processor.internals.InternalTopologyBuilder.AbstractNode
addPredecessor, name, predecessors, successors
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.kafka.streams.TopologyDescription.Node
name, predecessors, successors
-
-
-
-
Constructor Detail
-
Sink
public Sink(java.lang.String name, TopicNameExtractor<K,V> topicNameExtractor)
-
Sink
public Sink(java.lang.String name, java.lang.String topic)
-
-
Method Detail
-
topic
public java.lang.String topic()
Description copied from interface:TopologyDescription.SinkThe topic name this sink node is writing to. Could benullif the topic name can only be dynamically determined based onTopicNameExtractor- Specified by:
topicin interfaceTopologyDescription.Sink- Returns:
- a topic name
-
topicNameExtractor
public TopicNameExtractor<K,V> topicNameExtractor()
Description copied from interface:TopologyDescription.SinkTheTopicNameExtractorclass that this sink node uses to dynamically extract the topic name to write to. Could benullif the topic name is not dynamically determined.- Specified by:
topicNameExtractorin interfaceTopologyDescription.Sink- Returns:
- the
TopicNameExtractorclass used get the topic name
-
addSuccessor
public void addSuccessor(TopologyDescription.Node successor)
- Overrides:
addSuccessorin classInternalTopologyBuilder.AbstractNode
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-