Class WindowAssigner<T,​W extends Window>

    • Constructor Detail

      • WindowAssigner

        public WindowAssigner()
    • Method Detail

      • getDefaultTrigger

        public abstract 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().

      • 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.