Class MkMaxDirectoryEntry
- java.lang.Object
-
- elki.index.tree.metrical.mtreevariants.MTreeDirectoryEntry
-
- elki.index.tree.metrical.mtreevariants.mktrees.mkmax.MkMaxDirectoryEntry
-
- All Implemented Interfaces:
DirectoryEntry,MkMaxEntry,MTreeEntry,java.io.Externalizable,java.io.Serializable
class MkMaxDirectoryEntry extends MTreeDirectoryEntry implements MkMaxEntry
Represents an entry in a directory node of anMkMaxTree. Additionally to an MTreeDirectoryEntry an MkMaxDirectoryEntry holds the knn distance of the underlying MkMax-Tree node.- Since:
- 0.1
- Author:
- Elke Achtert
-
-
Field Summary
Fields Modifier and Type Field Description private doubleknnDistanceThe aggregated k-nearest neighbor distance of the underlying MkMax-Tree node.private static longserialVersionUIDSerial version UID
-
Constructor Summary
Constructors Constructor Description MkMaxDirectoryEntry()Empty constructor for serialization purposes.MkMaxDirectoryEntry(DBID objectID, double parentDistance, int nodeID, double coveringRadius, double knnDistance)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description doublegetKnnDistance()Returns the knn distance of the entry.voidreadExternal(java.io.ObjectInput in)Calls the super method and reads the knn distance of this entry from the specified input stream.voidsetKnnDistance(double knnDistance)Sets the knn distance of the entry.voidwriteExternal(java.io.ObjectOutput out)Calls the super method and writes the knn distance of this entry to the specified stream.-
Methods inherited from class elki.index.tree.metrical.mtreevariants.MTreeDirectoryEntry
equals, getCoveringRadius, getPageID, getParentDistance, getRoutingObjectID, hashCode, setCoveringRadius, setParentDistance, setRoutingObjectID, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface elki.index.tree.metrical.mtreevariants.MTreeEntry
getCoveringRadius, getParentDistance, getRoutingObjectID, setCoveringRadius, setParentDistance, setRoutingObjectID
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
Serial version UID- See Also:
- Constant Field Values
-
knnDistance
private double knnDistance
The aggregated k-nearest neighbor distance of the underlying MkMax-Tree node.
-
-
Constructor Detail
-
MkMaxDirectoryEntry
public MkMaxDirectoryEntry()
Empty constructor for serialization purposes.
-
MkMaxDirectoryEntry
public MkMaxDirectoryEntry(DBID objectID, double parentDistance, int nodeID, double coveringRadius, double knnDistance)
Constructor.- Parameters:
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 node
-
-
Method Detail
-
getKnnDistance
public double getKnnDistance()
Description copied from interface:MkMaxEntryReturns the knn distance of the entry.- Specified by:
getKnnDistancein interfaceMkMaxEntry- Returns:
- the knn distance of the entry
-
setKnnDistance
public void setKnnDistance(double knnDistance)
Description copied from interface:MkMaxEntrySets the knn distance of the entry.- Specified by:
setKnnDistancein interfaceMkMaxEntry- Parameters:
knnDistance- the knn distance to be set
-
writeExternal
public void writeExternal(java.io.ObjectOutput out) throws java.io.IOExceptionCalls the super method and writes the knn distance of this entry to the specified stream.- Specified by:
writeExternalin interfacejava.io.Externalizable- Overrides:
writeExternalin classMTreeDirectoryEntry- Throws:
java.io.IOException
-
readExternal
public void readExternal(java.io.ObjectInput in) throws java.io.IOException, java.lang.ClassNotFoundExceptionCalls the super method and reads the knn distance of this entry from the specified input stream.- Specified by:
readExternalin interfacejava.io.Externalizable- Overrides:
readExternalin classMTreeDirectoryEntry- Throws:
java.io.IOExceptionjava.lang.ClassNotFoundException
-
-