Search in sources :

Example 1 with Window

use of org.apache.kafka.streams.kstream.Window in project kafka by apache.

the class SessionKeySerde method from.

public static <K> Windowed<K> from(final byte[] binaryKey, final Deserializer<K> keyDeserializer) {
    final K key = extractKey(binaryKey, keyDeserializer);
    final Window window = extractWindow(binaryKey);
    return new Windowed<>(key, window);
}
Also used : Window(org.apache.kafka.streams.kstream.Window) Windowed(org.apache.kafka.streams.kstream.Windowed)

Aggregations

Window (org.apache.kafka.streams.kstream.Window)1 Windowed (org.apache.kafka.streams.kstream.Windowed)1