public synchronized <K, V> Topology addSink(final String name,
                                                final String topic,
                                                final StreamPartitioner<? super K, ? super V> partitioner,
                                                final String... parentNames) {
        internalTopologyBuilder.addSink(name, topic, null, null, partitioner, parentNames);
        return this;
    }
Add a new sink that forwards records from upstream parent processor and/or source nodes to the named Kafka topic,
using the supplied partitioner.
The sink will use the {@link StreamsConfig#DEFAULT_KEY_SERDE_CLASS_CONFIG default key serializer} and
{@link StreamsConfig#DEFAULT_VALUE_SERDE_CLASS_CONFIG default value serializer} specified in the
{@link StreamsConfig stream configuration}.
<p>
The sink will also use the specified {@link StreamPartitioner} to determine how records are distributed among
the named Kafka topic's partitions.
Such control is often useful with topologies that use {@link #addStateStore(StoreBuilder, String...) state
stores} in its processors.
In most other cases, however, a partitioner needs not be specified and Kafka will automatically distribute
records among partitions using Kafka's default partitioning logic.

@param name the unique name of the sink
@param topic the name of the Kafka topic to which this sink should write its records
@param partitioner the function that should be used to determine the partition for each record processed by the sink
@param parentNames the name of one or more source or processor nodes whose output records this sink should consume
and write to its topic
@return itself
@throws TopologyException if parent processor is not added yet, or if this processor's name is equal to the parent's name
@see #addSink(String, String, String...)
@see #addSink(String, String, Serializer, Serializer, String...)
@see #addSink(String, String, Serializer, Serializer, StreamPartitioner, String...)
streams/src/main/java/org/apache/kafka/streams/Topology.java