
public class MTreeDirectoryEntry extends AbstractDirectoryEntry implements MTreeEntry
| Modifier and Type | Field and Description |
|---|---|
private double |
coveringRadius
The covering radius of the entry.
|
private double |
parentDistance
The distance from the routing object of this entry to its parent's routing
object.
|
private DBID |
routingObjectID
The id of routing object of this entry.
|
private static long |
serialVersionUID |
| Constructor and Description |
|---|
MTreeDirectoryEntry()
Empty constructor for serialization purposes.
|
MTreeDirectoryEntry(DBID objectID,
double parentDistance,
Integer nodeID,
double coveringRadius)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o)
Indicates whether some other object is "equal to" this one.
|
double |
getCoveringRadius()
Returns the covering radius of this entry.
|
double |
getParentDistance()
Returns the distance from the routing object of this entry to its parent's
routing object.
|
DBID |
getRoutingObjectID()
Returns the id of the routing object of this entry.
|
void |
readExternal(ObjectInput in)
Calls the super method and reads the routingObjectID, the parentDistance
and the coveringRadius of this entry from the specified input stream.
|
boolean |
setCoveringRadius(double coveringRadius)
Sets the covering radius of this entry.
|
boolean |
setParentDistance(double parentDistance)
Sets the distance from the object to its parent object.
|
boolean |
setRoutingObjectID(DBID objectID)
Sets the id of the routing object of this entry.
|
String |
toString()
Returns the id as a string representation of this entry.
|
void |
writeExternal(ObjectOutput out)
Calls the super method and writes the routingObjectID, the parentDistance
and the coveringRadius of this entry to the specified stream.
|
getEntryID, getPageID, hashCode, isLeafEntryclone, finalize, getClass, notify, notifyAll, wait, wait, waitisLeafEntryprivate static final long serialVersionUID
private DBID routingObjectID
private double parentDistance
private double coveringRadius
public MTreeDirectoryEntry()
public MTreeDirectoryEntry(DBID objectID, double parentDistance, Integer nodeID, double coveringRadius)
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 entrypublic final double getCoveringRadius()
getCoveringRadius in interface MTreeEntrypublic final boolean setCoveringRadius(double coveringRadius)
setCoveringRadius in interface MTreeEntrycoveringRadius - the covering radius to be setpublic final DBID getRoutingObjectID()
getRoutingObjectID in interface MTreeEntrypublic final boolean setRoutingObjectID(DBID objectID)
setRoutingObjectID in interface MTreeEntryobjectID - the id to be setpublic final double getParentDistance()
getParentDistance in interface MTreeEntrypublic final boolean setParentDistance(double parentDistance)
setParentDistance in interface MTreeEntryparentDistance - the distance to be setpublic void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizablewriteExternal in class AbstractDirectoryEntryIOExceptionpublic void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizablereadExternal in class AbstractDirectoryEntryClassNotFoundException - If the class for an object being restored
cannot be found.IOExceptionpublic String toString()
toString in class AbstractDirectoryEntrypublic 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.