You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kafka.apache.org by "Marcos Passos (Jira)" <ji...@apache.org> on 2019/08/23 14:19:00 UTC

[jira] [Created] (KAFKA-8829) Provide factories for creating Window instances

Marcos Passos created KAFKA-8829:
------------------------------------

             Summary: Provide factories for creating Window instances
                 Key: KAFKA-8829
                 URL: https://issues.apache.org/jira/browse/KAFKA-8829
             Project: Kafka
          Issue Type: New Feature
    Affects Versions: 2.3.0
            Reporter: Marcos Passos


The API provides no ways to create {{Window}} instances without relying on internal classes.

 The issue becomes more evident when using session stores as both {{put}} and {{remove}} methods expects a windowed key, but the API does not expose any way to create a proper session-windowed key in the userland, leaving the developer with two choices: a) implement a window that duplicates the logic of {{SessionWindow}} or b) relies on the {{SessionWindow}}, which is an internal class.



--
This message was sent by Atlassian Jira
(v8.3.2#803003)