public static <K, V> Produced<K, V> streamPartitioner(final StreamPartitioner<? super K, ? super V> partitioner) {
        return new Produced<>(null, null, partitioner, null);
    }
Create a Produced instance with provided partitioner.
@param partitioner   the function used to determine how records are distributed among partitions of the topic,
                     if not specified and the key serde provides a {@link WindowedSerializer} for the key
                     {@link WindowedStreamPartitioner} will be used&mdash;otherwise {@link DefaultStreamPartitioner} will be used
@param <K>           key type
@param <V>           value type
@return  A new {@link Produced} instance configured with partitioner
@see KStream#to(String, Produced)
streams/src/main/java/org/apache/kafka/streams/kstream/Produced.java