Class WindowAssigner<T,​W extends Window>

    • Constructor Detail

      • WindowAssigner

        public WindowAssigner()
    • Method Detail

      • getDefaultTrigger

        public Trigger<T,​W> getDefaultTrigger()
        Returns the default trigger associated with this WindowAssigner.

        1. If you override getDefaultTrigger(), the getDefaultTrigger() will be invoked and the getDefaultTrigger(StreamExecutionEnvironment env) won't be invoked. 2. If you don't override getDefaultTrigger(), the getDefaultTrigger(StreamExecutionEnvironment env) will be invoked in the default implementation of the getDefaultTrigger().

      • getDefaultTrigger

        @Deprecated
        public abstract Trigger<T,​W> getDefaultTrigger​(StreamExecutionEnvironment env)
        Deprecated.
        the method is deprecated since Flink 1.19 because StreamExecutionEnvironment is unused. Please use getDefaultTrigger and override this method with an empty body instead. 1. If you override getDefaultTrigger(), the getDefaultTrigger() will be invoked and the getDefaultTrigger(StreamExecutionEnvironment env) won't be invoked. 2. If you don't override getDefaultTrigger(), the getDefaultTrigger(StreamExecutionEnvironment env) will be invoked in the default implementation of the getDefaultTrigger().
        Returns the default trigger associated with this WindowAssigner.
        See Also:
        FLIP-343: Remove parameter in WindowAssigner#getDefaultTrigger()
      • getWindowSerializer

        public abstract org.apache.flink.api.common.typeutils.TypeSerializer<W> getWindowSerializer​(org.apache.flink.api.common.ExecutionConfig executionConfig)
        Returns a TypeSerializer for serializing windows that are assigned by this WindowAssigner.
      • isEventTime

        public abstract boolean isEventTime()
        Returns true if elements are assigned to windows based on event time, false otherwise.