public static <K> Bytes toStoreKeyBinary(final K key,
                                             final long timestamp,
                                             final int seqnum,
                                             final StateSerdes<K, ?> serdes) {
        final byte[] serializedKey = serdes.rawKey(key);
        return toStoreKeyBinary(serializedKey, timestamp, seqnum);
    }
Safely construct a time window of the given size,
taking care of bounding endMs to Long.MAX_VALUE if necessary
streams/src/main/java/org/apache/kafka/streams/state/internals/WindowKeySchema.java