Class GeoRadiusResponse

java.lang.Object
redis.clients.jedis.resps.GeoRadiusResponse

public class GeoRadiusResponse extends Object
  • Field Details

    • member

      private byte[] member
    • distance

      private double distance
    • coordinate

      private GeoCoordinate coordinate
    • rawScore

      private long rawScore
  • Constructor Details

    • GeoRadiusResponse

      public GeoRadiusResponse(byte[] member)
  • Method Details

    • setDistance

      public void setDistance(double distance)
    • setCoordinate

      public void setCoordinate(GeoCoordinate coordinate)
    • setRawScore

      public void setRawScore(long rawScore)
    • getMember

      public byte[] getMember()
    • getMemberByString

      public String getMemberByString()
    • getDistance

      public double getDistance()
      Returns:
      The distance of the returned item from the specified center. The distance is returned in the same unit as the unit specified as the radius argument of the command.
    • getCoordinate

      public GeoCoordinate getCoordinate()
      Returns:
      The longitude,latitude coordinates of the matching item.
    • getRawScore

      public long getRawScore()
      Returns:
      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.
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object