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 Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static Query<java.util.Map<java.util.UUID,​java.lang.Long>> lastSeenOnServers​(java.util.UUID playerUUID)
      Find last seen date on servers.
      static Query<java.util.Map<java.util.UUID,​java.lang.Integer>> mobKillCountOnServers​(java.util.UUID playerUUID)
      Find mob kill count on servers.
      static Query<java.util.Map<java.util.UUID,​java.lang.Integer>> playerKillCountOnServers​(java.util.UUID playerUUID)
      Find player kill count on servers.
      static Query<java.util.Map<java.util.UUID,​java.lang.Integer>> totalDeathCountOnServers​(java.util.UUID playerUUID)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • lastSeenOnServers

        public static Query<java.util.Map<java.util.UUID,​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<java.util.UUID,​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<java.util.UUID,​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<java.util.UUID,​java.lang.Integer>> totalDeathCountOnServers​(java.util.UUID playerUUID)