Package org.tinspin.index.rtree
Class DistEntry<T>
- java.lang.Object
-
- org.tinspin.index.rtree.Entry<T>
-
- org.tinspin.index.rtree.DistEntry<T>
-
- All Implemented Interfaces:
Comparable<Entry<T>>,RectangleEntry<T>,RectangleEntryDist<T>
public class DistEntry<T> extends Entry<T> implements RectangleEntryDist<T>
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description doubledist()An entry with distance property.voidset(double[] lower, double[] upper, T val, double distance)protected voidset(Entry<T> e, double distance)StringtoString()-
Methods inherited from class org.tinspin.index.rtree.Entry
calcArea, calcBoundingBox, calcCenterDistance, calcDeadspace, calcIncludes, calcMargin, calcOverlap, calcVolume, calcVolume, checkExactMatch, checkInclusion, checkOverlap, compareTo, lower, set, set, setToCover, upper, value
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.tinspin.index.RectangleEntry
lower, upper, value
-
-
-
-
Constructor Detail
-
DistEntry
public DistEntry(double[] min, double[] max, T val, double dist)Create a new entry with distance- Parameters:
min- minmax- maxval- valuedist- distance
-
-
Method Detail
-
dist
public double dist()
Description copied from interface:RectangleEntryDistAn entry with distance property. This is, for example, used as a return value for nearest neighbor queries.- Specified by:
distin interfaceRectangleEntryDist<T>- Returns:
- the distance
-
set
public void set(double[] lower, double[] upper, T val, double distance)
-
-