Class RowTimeRangeUnboundedPrecedingFunction<K>

  • All Implemented Interfaces:
    Serializable, org.apache.flink.api.common.functions.Function, org.apache.flink.api.common.functions.RichFunction, CleanupState

    public class RowTimeRangeUnboundedPrecedingFunction<K>
    extends AbstractRowTimeUnboundedPrecedingOver<K>
    A ProcessFunction to support unbounded RANGE window. The RANGE option includes all the rows within the window frame that have the same ORDER BY values as the current row.

    E.g.: SELECT rowtime, b, c, min(c) OVER (PARTITION BY b ORDER BY rowtime RANGE BETWEEN UNBOUNDED preceding AND CURRENT ROW), max(c) OVER (PARTITION BY b ORDER BY rowtime RANGE BETWEEN UNBOUNDED preceding AND CURRENT ROW) FROM T.

    See Also:
    Serialized Form
    • Constructor Detail

      • RowTimeRangeUnboundedPrecedingFunction

        public RowTimeRangeUnboundedPrecedingFunction​(long minRetentionTime,
                                                      long maxRetentionTime,
                                                      GeneratedAggsHandleFunction genAggsHandler,
                                                      org.apache.flink.table.types.logical.LogicalType[] accTypes,
                                                      org.apache.flink.table.types.logical.LogicalType[] inputFieldTypes,
                                                      int rowTimeIdx)