Class IntervalFreshnessUtils

java.lang.Object
org.apache.flink.table.utils.IntervalFreshnessUtils

@Internal public class IntervalFreshnessUtils extends Object
Utilities to IntervalFreshness.
  • Method Details

    • convertFreshnessToDuration

      public static Duration convertFreshnessToDuration(IntervalFreshness intervalFreshness)
    • convertFreshnessToCron

      public static String convertFreshnessToCron(IntervalFreshness intervalFreshness)
      This is an util method that is used to convert the freshness of materialized table to cron expression in full refresh mode. Since freshness and cron expression cannot be converted equivalently, there are currently only a limited patterns of freshness that can be converted to cron expression.