Class TimeWindowLeaderboardScoreTrim
- java.lang.Object
-
- com.apple.foundationdb.record.provider.foundationdb.IndexOperation
-
- com.apple.foundationdb.record.provider.foundationdb.leaderboard.TimeWindowLeaderboardScoreTrim
-
@API(EXPERIMENTAL) public class TimeWindowLeaderboardScoreTrim extends IndexOperation
Retain only scores that would be indexed by active time windows. Scores are specified as a collection ofTuple
. A sub-collection is returned inTimeWindowLeaderboardScoreTrimResult
. Score tuples can include their group key as well. If they do not, then all groups must have the default setting for whether high scores come first, which is needed to keep only the best score for a given time window.
-
-
Constructor Summary
Constructors Constructor Description TimeWindowLeaderboardScoreTrim(Collection<Tuple> scores, boolean includesGroup)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection<Tuple>
getScores()
boolean
isIncludesGroup()
-
-
-
Constructor Detail
-
TimeWindowLeaderboardScoreTrim
public TimeWindowLeaderboardScoreTrim(Collection<Tuple> scores, boolean includesGroup)
-
-
Method Detail
-
getScores
public Collection<Tuple> getScores()
-
isIncludesGroup
public boolean isIncludesGroup()
-
-