
D - the type of Distance used in the MkMaxTreeclass MkMaxDirectoryEntry<D extends Distance<D>> extends MTreeDirectoryEntry<D> implements MkMaxEntry<D>
MkMaxTree. Additionally
to an MTreeDirectoryEntry an MkMaxDirectoryEntry holds the knn distance of
the underlying MkMax-Tree node.| Modifier and Type | Field and Description |
|---|---|
private D |
knnDistance
The aggregated k-nearest neighbor distance of the underlying MkMax-Tree
node.
|
private static long |
serialVersionUID
Serial version UID
|
| Constructor and Description |
|---|
MkMaxDirectoryEntry()
Empty constructor for serialization purposes.
|
MkMaxDirectoryEntry(DBID objectID,
D parentDistance,
Integer nodeID,
D coveringRadius,
D knnDistance)
Provides a new MkMaxDirectoryEntry with the given parameters.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o)
Indicates whether some other object is "equal to" this one.
|
D |
getKnnDistance()
Returns the knn distance of the entry.
|
void |
readExternal(ObjectInput in)
Calls the super method and reads the knn distance of this entry from the
specified input stream.
|
void |
setKnnDistance(D knnDistance)
Sets the knn distance of the entry.
|
void |
writeExternal(ObjectOutput out)
Calls the super method and writes the knn distance of this entry to the
specified stream.
|
getCoveringRadius, getParentDistance, getRoutingObjectID, setCoveringRadius, setParentDistance, setRoutingObjectID, toStringgetEntryID, getPageID, hashCode, isLeafEntryclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetCoveringRadius, getParentDistance, getRoutingObjectID, setCoveringRadius, setParentDistance, setRoutingObjectIDisLeafEntryprivate static final long serialVersionUID
public MkMaxDirectoryEntry()
public MkMaxDirectoryEntry(DBID objectID, D parentDistance, Integer nodeID, D coveringRadius, D knnDistance)
objectID - the id of the routing objectparentDistance - the distance from the routing object of this entry to
its parent's routing objectnodeID - the id of the underlying nodecoveringRadius - the covering radius of the entryknnDistance - the aggregated knn distance of the underlying MkMax-Tree
nodepublic D getKnnDistance()
MkMaxEntrygetKnnDistance in interface MkMaxEntry<D extends Distance<D>>public void setKnnDistance(D knnDistance)
MkMaxEntrysetKnnDistance in interface MkMaxEntry<D extends Distance<D>>knnDistance - the knn distance to be setpublic void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizablewriteExternal in class MTreeDirectoryEntry<D extends Distance<D>>IOExceptionpublic void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizablereadExternal in class MTreeDirectoryEntry<D extends Distance<D>>ClassNotFoundException - If the class for an object being restored
cannot be found.IOExceptionpublic boolean equals(Object o)
equals in class MTreeDirectoryEntry<D extends Distance<D>>o - the object to be tested