Class PerServerAggregateQueries


  • public class PerServerAggregateQueries
    extends java.lang.Object
    Static method class for queries that count together counts for a player on a per server basis.

    Example: Fetch how much a player has played on servers

    • Method Detail

      • lastSeenOnServers

        public static Query<java.util.Map<ServerUUID,​java.lang.Long>> lastSeenOnServers​(java.util.UUID playerUUID)
        Find last seen date on servers.
        Parameters:
        playerUUID - UUID of the player.
        Returns:
        Map: Server UUID - Last seen epoch ms.
      • playerKillCountOnServers

        public static Query<java.util.Map<ServerUUID,​java.lang.Integer>> playerKillCountOnServers​(java.util.UUID playerUUID)
        Find player kill count on servers.
        Parameters:
        playerUUID - UUID of the player.
        Returns:
        Map: Server UUID - Player kill count
      • mobKillCountOnServers

        public static Query<java.util.Map<ServerUUID,​java.lang.Integer>> mobKillCountOnServers​(java.util.UUID playerUUID)
        Find mob kill count on servers.
        Parameters:
        playerUUID - UUID of the player.
        Returns:
        Map: Server UUID - Mob kill count
      • totalDeathCountOnServers

        public static Query<java.util.Map<ServerUUID,​java.lang.Integer>> totalDeathCountOnServers​(java.util.UUID playerUUID)