class MkTabLeafEntry extends MTreeLeafEntry implements MkTabEntry
Modifier and Type | Field and Description |
---|---|
private double[] |
knnDistances
The knn distances of the underlying data object.
|
private static long |
serialVersionUID |
Constructor and Description |
---|
MkTabLeafEntry()
Empty constructor for serialization purposes.
|
MkTabLeafEntry(DBID objectID,
double parentDistance,
double[] knnDistances)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o)
Indicates whether some other object is "equal to" this one.
|
double |
getKnnDistance(int k)
Returns the knn distance of the entry for the specified parameter k.
|
double[] |
getKnnDistances()
Returns the list of knn distances of the entry.
|
void |
readExternal(ObjectInput in)
Calls the super method and reads the parameter k_max and knn distance of
this entry from the specified input stream.
|
void |
setKnnDistances(double[] knnDistances)
Sets the knn distances of the entry.
|
void |
writeExternal(ObjectOutput out)
Calls the super method and writes the parameter k_max and the knn distances
of this entry to the specified stream.
|
getCoveringRadius, getParentDistance, getRoutingObjectID, setCoveringRadius, setParentDistance, setRoutingObjectID
getDBID, hashCode, isLeafEntry, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getCoveringRadius, getParentDistance, getRoutingObjectID, setCoveringRadius, setParentDistance, setRoutingObjectID
isLeafEntry
private static final long serialVersionUID
private double[] knnDistances
public MkTabLeafEntry()
public MkTabLeafEntry(DBID objectID, double parentDistance, double[] knnDistances)
objectID
- the id of the underlying data objectparentDistance
- the distance from the underlying data object to its
parent's routing objectknnDistances
- the knn distances of the underlying data objectpublic double[] getKnnDistances()
MkTabEntry
getKnnDistances
in interface MkTabEntry
public void setKnnDistances(double[] knnDistances)
MkTabEntry
setKnnDistances
in interface MkTabEntry
knnDistances
- the knn distances to be setpublic double getKnnDistance(int k)
MkTabEntry
getKnnDistance
in interface MkTabEntry
k
- the parameter k of the knn distancepublic void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
writeExternal
in class MTreeLeafEntry
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 MTreeLeafEntry
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 MTreeLeafEntry
o
- the object to be testedCopyright © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.