public Repartitioned<K, V> withKeySerde(final Serde<K> keySerde) {
        return new Repartitioned<>(name, keySerde, valueSerde, numberOfPartitions, partitioner);
    }
Create a new instance of {@code Repartitioned} with the provided key serde.

@param keySerde Serde to use for serializing the key
@return a new {@code Repartitioned} instance configured with the key serde
streams/src/main/java/org/apache/kafka/streams/kstream/Repartitioned.java