All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.aliyun.tair.tairgis.params.GisSearchResponse Maven / Gradle / Ivy

Go to download

Aliyun Tair Redis client for Java Copyright (C) Alibaba Cloud Computing All rights reserved. 版权所有 (C)阿里云计算有限公司 http://www.aliyun.com

There is a newer version: 3.0.9
Show newest version
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