Class UnlimitedWindow

    • Constructor Detail

      • UnlimitedWindow

        public UnlimitedWindow​(long startMs)
        Create a new window for the given start time (inclusive).
        Parameters:
        startMs - the start timestamp of the window (inclusive)
        Throws:
        IllegalArgumentException - if start is negative
    • Method Detail

      • overlap

        public boolean overlap​(Window other)
        Returns true if the given window is of the same type, because all unlimited windows overlap with each other due to their infinite size.
        Specified by:
        overlap in class Window
        Parameters:
        other - another window
        Returns:
        true
        Throws:
        IllegalArgumentException - if the other window has a different type than this window