Package org.apache.flink.table.catalog
Class IntervalFreshness
- java.lang.Object
-
- org.apache.flink.table.catalog.IntervalFreshness
-
@PublicEvolving public class IntervalFreshness extends Object
TheIntervalFreshnessrepresents freshness definition ofCatalogMaterializedTable. It encapsulates the string interval value along with time unit, allowing for flexible representation of different freshness type. Moreover, it can provide detailed raw information for some specific operations.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classIntervalFreshness.TimeUnitAn enumeration of time unit representing the unit of interval freshness.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)StringgetInterval()IntervalFreshness.TimeUnitgetTimeUnit()inthashCode()static IntervalFreshnessof(String interval, IntervalFreshness.TimeUnit timeUnit)static IntervalFreshnessofDay(String interval)static IntervalFreshnessofHour(String interval)static IntervalFreshnessofMinute(String interval)static IntervalFreshnessofSecond(String interval)StringtoString()
-
-
-
Method Detail
-
of
public static IntervalFreshness of(String interval, IntervalFreshness.TimeUnit timeUnit)
-
ofSecond
public static IntervalFreshness ofSecond(String interval)
-
ofMinute
public static IntervalFreshness ofMinute(String interval)
-
ofHour
public static IntervalFreshness ofHour(String interval)
-
ofDay
public static IntervalFreshness ofDay(String interval)
-
getInterval
public String getInterval()
-
getTimeUnit
public IntervalFreshness.TimeUnit getTimeUnit()
-
-