Class TimeWindowLeaderboardWindowUpdate.TimeWindowSpec

  • Enclosing class:
    TimeWindowLeaderboardWindowUpdate

    public static class TimeWindowLeaderboardWindowUpdate.TimeWindowSpec
    extends Object
    A specification of a set of sliding time windows. The time windows are all of type type. There are count of them. The earliest one starts at baseTimestamp. The following ones are spaced startIncrement apart. They are duration wide. So, for example, to have daily time windows accurate to six hours, and assuming that time units are seconds, new TimeWindowSpec(DAILY, midnight, 6 * 60 * 60, 24 * 60 * 60, 4)
    • Constructor Detail

      • TimeWindowSpec

        public TimeWindowSpec​(int type,
                              long baseTimestamp,
                              long startIncrement,
                              long duration,
                              int count)
    • Method Detail

      • getType

        public int getType()
      • getBaseTimestamp

        public long getBaseTimestamp()
      • getStartIncrement

        public long getStartIncrement()
      • getDuration

        public long getDuration()
      • getCount

        public long getCount()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object