
public class RdKNNDirectoryEntry extends SpatialDirectoryEntry implements RdKNNEntry
| Modifier and Type | Field and Description |
|---|---|
private double |
knnDistance
The aggregated knn distance of this entry.
|
private static long |
serialVersionUID |
| Constructor and Description |
|---|
RdKNNDirectoryEntry()
Empty constructor for serialization purposes.
|
RdKNNDirectoryEntry(int id,
ModifiableHyperBoundingBox mbr,
double knnDistance)
Constructs a new RDkNNDirectoryEntry object with the given parameters.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o)
Indicates whether some other object is "equal to" this one.
|
double |
getKnnDistance()
Returns the knn distance of this entry.
|
void |
readExternal(ObjectInput in)
Calls the super method and reads the knn distance of this entry from the
specified input stream.
|
void |
setKnnDistance(double knnDistance)
Sets the knn distance of this entry.
|
void |
writeExternal(ObjectOutput out)
Calls the super method and writes the knn distance of this entry to the
specified stream.
|
extendMBR, getDimensionality, getMax, getMin, hasMBR, setMBRgetEntryID, getPageID, hashCode, isLeafEntry, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitisLeafEntrygetDimensionality, getMax, getMinprivate static final long serialVersionUID
private double knnDistance
public RdKNNDirectoryEntry()
public RdKNNDirectoryEntry(int id,
ModifiableHyperBoundingBox mbr,
double knnDistance)
id - the unique id of the underlying nodembr - the minimum bounding rectangle of the underlying nodeknnDistance - the aggregated knn distance of this entrypublic double getKnnDistance()
RdKNNEntrygetKnnDistance in interface RdKNNEntrypublic void setKnnDistance(double knnDistance)
RdKNNEntrysetKnnDistance in interface RdKNNEntryknnDistance - the knn distance to be setpublic void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizablewriteExternal in class SpatialDirectoryEntryout - the stream to write the object toIOException - Includes any I/O exceptions that may occurpublic void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizablereadExternal in class SpatialDirectoryEntryin - the stream to read data from in order to restore the objectIOException - if I/O errors occurClassNotFoundException - If the class for an object being restored
cannot be found.public boolean equals(Object o)
equals in class AbstractDirectoryEntryo - the object to be testedCopyright © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.