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

org.wowtools.neo4j.rtree.util.DistanceResult Maven / Gradle / Ivy

The newest version!
package org.wowtools.neo4j.rtree.util;


/**
 * 距离查询结果
 *
 * @author liuyu
 * @date 2020/6/12
 */
public class DistanceResult {
    protected final double dist;
    protected final long dataNodeId;

    /**
     * 构造方法需要传入距离和数据节点id
     *
     * @param dist       距离
     * @param dataNodeId 数据节点id
     */
    public DistanceResult(double dist, long dataNodeId) {
        this.dist = dist;
        this.dataNodeId = dataNodeId;
    }


    public double getDist() {
        return dist;
    }

    public long getDataNodeId() {
        return dataNodeId;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy