java.lang.Object
com.djrapitops.plan.storage.database.queries.objects.GeoInfoQueries

public class GeoInfoQueries extends Object
Queries for GeoInfo objects.
  • Method Details

    • fetchAllGeoInformation

      public static Query<Map<UUID,List<GeoInfo>>> fetchAllGeoInformation()
      Query database for all GeoInfo data.
      Returns:
      Map: Player UUID - List of GeoInfo
    • fetchPlayerGeoInformation

      public static Query<List<GeoInfo>> fetchPlayerGeoInformation(UUID playerUUID)
      Query Player's GeoInfo by player's UUID.
      Parameters:
      playerUUID - UUID of the player.
      Returns:
      List of GeoInfo, empty if none are found.
    • networkGeolocationCounts

      public static Query<Map<String,Integer>> networkGeolocationCounts()
    • networkGeolocationCounts

      public static Query<Map<String,Integer>> networkGeolocationCounts(Collection<Integer> userIds)
    • serverGeolocationCounts

      public static Query<Map<String,Integer>> serverGeolocationCounts(ServerUUID serverUUID)
    • uniqueGeolocations

      public static Query<List<String>> uniqueGeolocations()
    • userIdsOfPlayersWithGeolocations

      public static Query<Set<Integer>> userIdsOfPlayersWithGeolocations(List<String> selected)