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, setMBR
getEntryID, getPageID, hashCode, isLeafEntry, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
isLeafEntry
getDimensionality, getMax, getMin
private 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()
RdKNNEntry
getKnnDistance
in interface RdKNNEntry
public void setKnnDistance(double knnDistance)
RdKNNEntry
setKnnDistance
in interface RdKNNEntry
knnDistance
- the knn distance to be setpublic void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
writeExternal
in class SpatialDirectoryEntry
out
- 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 Externalizable
readExternal
in class SpatialDirectoryEntry
in
- 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 AbstractDirectoryEntry
o
- the object to be testedCopyright © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.