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);
}