@PublicEvolving public class IntervalFreshness extends Object
IntervalFreshness
represents freshness definition of CatalogMaterializedTable
. 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.Modifier and Type | Class and Description |
---|---|
static class |
IntervalFreshness.TimeUnit
An enumeration of time unit representing the unit of interval freshness.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
String |
getInterval() |
IntervalFreshness.TimeUnit |
getTimeUnit() |
int |
hashCode() |
static IntervalFreshness |
of(String interval,
IntervalFreshness.TimeUnit timeUnit) |
static IntervalFreshness |
ofDay(String interval) |
static IntervalFreshness |
ofHour(String interval) |
static IntervalFreshness |
ofMinute(String interval) |
static IntervalFreshness |
ofSecond(String interval) |
String |
toString() |
public static IntervalFreshness of(String interval, IntervalFreshness.TimeUnit timeUnit)
public static IntervalFreshness ofSecond(String interval)
public static IntervalFreshness ofMinute(String interval)
public static IntervalFreshness ofHour(String interval)
public static IntervalFreshness ofDay(String interval)
public String getInterval()
public IntervalFreshness.TimeUnit getTimeUnit()
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.