Skip to content

Latest commit

 

History

History
25 lines (16 loc) · 1.61 KB

kafka-streams-internals-StreamSinkNode.adoc

File metadata and controls

25 lines (16 loc) · 1.61 KB

StreamSinkNode

StreamSinkNode is a StreamsGraphNode that is created exclusively when KStreamImpl is requested to add a StreamSinkNode to a node graph.

In other words, StreamSinkNode represents KStreamImpl.to operator.

StreamSinkNode takes the following when created:

writeToTopology Method

void writeToTopology(final InternalTopologyBuilder topologyBuilder)
Note
writeToTopology is part of the StreamsGraphNode Contract to…​FIXME.

writeToTopology simply requests the given InternalTopologyBuilder to addSink (per ProducedInternal).

writeToTopology creates a new WindowedStreamPartitioner as the StreamPartitioner when no streamPartitioner is specified and the key serializer is a WindowedSerializer.