Package org.tinspin.index
Class Index.BoxEntry<T>
- java.lang.Object
-
- org.tinspin.index.Index.BoxEntry<T>
-
- Type Parameters:
T- Value type
- Direct Known Subclasses:
Index.BoxEntryKnn,RTreeEntry
- Enclosing interface:
- Index
public static class Index.BoxEntry<T> extends Object
A box entry. Boxes are axis-aligned. They are defined by there minimum and maximum values, i.e. their "lower left" and "upper right" corners.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double[]max()double[]min()voidset(double[] min, double[] max)voidset(double[] min, double[] max, T val)Tvalue()
-
-
-
Constructor Detail
-
BoxEntry
public BoxEntry(double[] min, double[] max, T val)
-
-
Method Detail
-
min
public double[] min()
- Returns:
- The lower left corner of the box.
-
max
public double[] max()
- Returns:
- The upper right corner of the entry.
-
value
public T value()
- Returns:
- The value associated with the box or point.
-
set
public void set(double[] min, double[] max)
-
set
public void set(double[] min, double[] max, T val)
-
-