Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,8 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package org.apache.kafka.streams.kstream;


import org.apache.kafka.common.serialization.Serde;

/**
Expand All @@ -35,7 +33,6 @@ public class Grouped<K, V> implements NamedOperation<Grouped<K, V>> {
protected final Serde<V> valueSerde;
protected final String name;


private Grouped(final String name,
final Serde<K> keySerde,
final Serde<V> valueSerde) {
Expand Down Expand Up @@ -71,7 +68,7 @@ public static <K, V> Grouped<K, V> as(final String name) {
* @see KStream#groupBy(KeyValueMapper, Grouped)
* @see KTable#groupBy(KeyValueMapper, Grouped)
*/
public static <K> Grouped keySerde(final Serde<K> keySerde) {
public static <K, V> Grouped<K, V> keySerde(final Serde<K> keySerde) {
return new Grouped<>(null, keySerde, null);
}

Expand All @@ -85,7 +82,7 @@ public static <K> Grouped keySerde(final Serde<K> keySerde) {
* @see KStream#groupBy(KeyValueMapper, Grouped)
* @see KTable#groupBy(KeyValueMapper, Grouped)
*/
public static <V> Grouped valueSerde(final Serde<V> valueSerde) {
public static <K, V> Grouped<K, V> valueSerde(final Serde<V> valueSerde) {
return new Grouped<>(null, null, valueSerde);
}

Expand Down