redis.clients.jedis.search.schemafields.GeoField Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jedis_preview Show documentation
Show all versions of jedis_preview Show documentation
Jedis is a blazingly small and sane Redis java client.
The newest version!
package redis.clients.jedis.search.schemafields;
import static redis.clients.jedis.search.SearchProtocol.SearchKeyword.GEO;
import redis.clients.jedis.CommandArguments;
import redis.clients.jedis.search.FieldName;
public class GeoField extends SchemaField {
public GeoField(String fieldName) {
super(fieldName);
}
public GeoField(FieldName fieldName) {
super(fieldName);
}
public static GeoField of(String fieldName) {
return new GeoField(fieldName);
}
public static GeoField of(FieldName fieldName) {
return new GeoField(fieldName);
}
@Override
public GeoField as(String attribute) {
super.as(attribute);
return this;
}
@Override
public void addParams(CommandArguments args) {
args.addParams(fieldName);
args.add(GEO);
}
}