|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.lmu.ifi.dbs.elki.index.tree.spatial.rstarvariants.util.SpatialComparator
public final class SpatialComparator
Compares objects of type SpatialComparable.
Field Summary | |
---|---|
private int |
compareDimension
The dimension for comparison. |
private int |
comparisonValue
Indicates the comparison value (min or max). |
static int |
MAX
Indicates the comparison of the max values of the entries' MBRs. |
static int |
MIN
Indicates the comparison of the min values of the entries' MBRs. |
Constructor Summary | |
---|---|
SpatialComparator(int compareDimension,
int comparisonValue)
Creates a new spatial comparator with the specified parameters. |
Method Summary | |
---|---|
int |
compare(SpatialComparable o1,
SpatialComparable o2)
Compares the two specified spatial comparables according to the sorting dimension and the comparison value of this Comparator. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.util.Comparator |
---|
equals |
Field Detail |
---|
public static final int MIN
public static final int MAX
private final int compareDimension
private final int comparisonValue
Constructor Detail |
---|
public SpatialComparator(int compareDimension, int comparisonValue)
compareDimension
- the dimension to be set for comparisoncomparisonValue
- the comparison value to be setMethod Detail |
---|
public int compare(SpatialComparable o1, SpatialComparable o2)
compare
in interface Comparator<SpatialComparable>
o1
- the first spatial comparableo2
- the second spatial comparable
|
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |