com.aliyun.tair.tairgis.params.GisSearchResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of alibabacloud-tairjedis-sdk Show documentation
Show all versions of alibabacloud-tairjedis-sdk Show documentation
Aliyun Tair Redis client for Java
Copyright (C) Alibaba Cloud Computing
All rights reserved.
版权所有 (C)阿里云计算有限公司
http://www.aliyun.com
package com.aliyun.tair.tairgis.params;
import redis.clients.jedis.util.SafeEncoder;
public class GisSearchResponse {
private byte[] field;
private byte[] value;
private double distance;
public GisSearchResponse() {
}
public byte[] getField() {
return field;
}
public String getFieldByString() {
if (field == null) {
return null;
}
return SafeEncoder.encode(field);
}
public void setField(byte[] field) {
this.field = field;
}
public byte[] getValue() {
return value;
}
public String getValueByString() {
if (value == null) {
return null;
}
return SafeEncoder.encode(value);
}
public void setValue(byte[] value) {
this.value = value;
}
public double getDistance() {
return distance;
}
public void setDistance(double distance) {
this.distance = distance;
}
@Override
public String toString() {
return "GisSearchResponse{" +
"field=" + getFieldByString() +
", value=" + getValueByString() +
", distance=" + distance +
'}';
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy