Class 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 of Tuple. A sub-collection is returned in TimeWindowLeaderboardScoreTrimResult. 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 Detail

      • TimeWindowLeaderboardScoreTrim

        public TimeWindowLeaderboardScoreTrim​(Collection<Tuple> scores,
                                              boolean includesGroup)
    • Method Detail

      • isIncludesGroup

        public boolean isIncludesGroup()