Package redis.clients.jedis.resps
Class GeoRadiusResponse
java.lang.Object
redis.clients.jedis.resps.GeoRadiusResponse
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate GeoCoordinateprivate doubleprivate byte[]private long -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleandoublebyte[]longinthashCode()voidsetCoordinate(GeoCoordinate coordinate) voidsetDistance(double distance) voidsetRawScore(long rawScore)
-
Field Details
-
member
private byte[] member -
distance
private double distance -
coordinate
-
rawScore
private long rawScore
-
-
Constructor Details
-
GeoRadiusResponse
public GeoRadiusResponse(byte[] member)
-
-
Method Details
-
setDistance
public void setDistance(double distance) -
setCoordinate
-
setRawScore
public void setRawScore(long rawScore) -
getMember
public byte[] getMember() -
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
- 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
-
hashCode
public int hashCode()
-