
org.wowtools.neo4j.rtree.util.DistanceResult Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of neo4j-rtree Show documentation
Show all versions of neo4j-rtree Show documentation
a spatial index for neo4j 4.x.
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