Class GeoRadiusArgs

    • Constructor Detail

      • GeoRadiusArgs

        public GeoRadiusArgs()
    • Method Detail

      • ascending

        public GeoRadiusArgs ascending()
        Use ASC order (from small to large).
        Returns:
        the current GeoRadiusArgs
      • descending

        public GeoRadiusArgs descending()
        Use DESC order (from large to small).
        Returns:
        the current GeoRadiusArgs
      • withDistance

        public GeoRadiusArgs withDistance()
        Also return the distance of the returned items from the specified center. The distance is returned in the same unit as the unit specified as the radius argument of the command.
        Returns:
        the current GeoRadiusArgs
      • withCoordinates

        public GeoRadiusArgs withCoordinates()
        Also return the longitude,latitude coordinates of the matching items.
        Returns:
        the current GeoRadiusArgs
      • withHash

        public GeoRadiusArgs withHash()
        Also return the raw geohash-encoded sorted set score of the item, in the form of a 52 bit unsigned integer. This is only useful for low level hacks or debugging and is otherwise of little interest for the general user.
        Returns:
        the current GeoRadiusArgs
      • count

        public GeoRadiusArgs count​(long count)
        By default all the matching items are returned. It is possible to limit the results to the first N matching items by using the COUNT <count> option.
        Parameters:
        count - the count value
        Returns:
        the current GeoRadiusArgs
      • any

        public GeoRadiusArgs any()
        When ANY is provided the command will return as soon as enough matches are found, so the results may not be the ones closest to the specified point, but on the other hand, the effort invested by the server is significantly lower.

        Using ANY requires count to be set.

        Returns:
        the current GeoRadiusArgs
      • hasDistance

        public boolean hasDistance()
      • hasHash

        public boolean hasHash()
      • hasCoordinates

        public boolean hasCoordinates()