Class DateTimeConfig

java.lang.Object
com.linkedin.feathr.common.configObj.DateTimeConfig
All Implemented Interfaces:
Serializable

public class DateTimeConfig extends Object implements Serializable
Represent a time period or a time point. the startTime is - offset - length + 1, the endTime is referenceEndDateTime in timeZone - offset
See Also:
  • Constructor Details

    • DateTimeConfig

      public DateTimeConfig(String referenceEndTime, String referenceEndTimeFormat, ChronoUnit timeResolution, long length, Duration offset, TimeZone timeZone)
      Constructor
      Parameters:
      referenceEndTime - end time of this time period, it is called reference because it might need to shift by _offsetInSeconds to be the actual endTime, e.g., a date, or NOW, or LATEST
      referenceEndTimeFormat - format, e.g., yyyy-MM-dd
      timeResolution - daily or hourly
      length - length of the time period, in terms of _timeResolution
      offset - offset
      timeZone - time zone
  • Method Details

    • getReferenceEndTime

      public String getReferenceEndTime()
    • getReferenceEndTimeFormat

      public String getReferenceEndTimeFormat()
    • getTimeResolution

      public ChronoUnit getTimeResolution()
    • getLength

      public long getLength()
    • getOffset

      public Duration getOffset()
    • getTimeZone

      public TimeZone getTimeZone()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object