Class TimeWindowLeaderboardWindowUpdate.TimeWindowSpec
- java.lang.Object
-
- com.apple.foundationdb.record.provider.foundationdb.leaderboard.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 typetype
. There arecount
of them. The earliest one starts atbaseTimestamp
. The following ones are spacedstartIncrement
apart. They areduration
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 Summary
Constructors Constructor Description TimeWindowSpec(int type, long baseTimestamp, long startIncrement, long duration, int count)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
long
getBaseTimestamp()
long
getCount()
long
getDuration()
long
getStartIncrement()
int
getType()
int
hashCode()
-