Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

One remaining step is to let the TimeWindowedDeserializer be aware of the input topic type by creating a new constructor, and define a helper method in WindowedSerdes.java to return the serde back to the windowed KTable API. Below is the proposed constructor and helper method addition.

...

Code Block
/**
 * Construct a {@code TimeWindowedSerde} object to deserialize changelog topic
 * for the specified inner class type and window size.
 */
static public <T> Serde<Windowed<T>> timeWindowedSerdeFromtimeWindowedChangelogSerdeFrom(final Class<T> type, final long windowSize) {
    return new TimeWindowedSerde<>(Serdes.serdeFrom(type), windowSize, true);
}


Compatibility, Deprecation, and Migration Plan

...