
redis.clients.jedis.search.querybuilder.GeoValue Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jedis Show documentation
Show all versions of jedis Show documentation
Jedis is a blazingly small and sane Redis java client.
package redis.clients.jedis.search.querybuilder;
import java.util.Locale;
import redis.clients.jedis.args.GeoUnit;
/**
* Created by mnunberg on 2/23/18.
*/
public class GeoValue extends Value {
private final GeoUnit unit;
private final double lon;
private final double lat;
private final double radius;
public GeoValue(double lon, double lat, double radius, GeoUnit unit) {
this.lon = lon;
this.lat = lat;
this.radius = radius;
this.unit = unit;
}
@Override
public String toString() {
return "[" + lon + " " + lat + " " + radius
+ " " + unit.name().toLowerCase(Locale.ENGLISH) + "]";
}
@Override
public boolean isCombinable() {
return false;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy