public class MTreeDirectoryEntry extends java.lang.Object implements DirectoryEntry, MTreeEntry
| Modifier and Type | Field and Description |
|---|---|
private double |
coveringRadius
The covering radius of the entry.
|
private int |
id
Holds the id of the object (node or data object) represented by this 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
Serialization version.
|
| Constructor and Description |
|---|
MTreeDirectoryEntry()
Empty constructor for serialization purposes.
|
MTreeDirectoryEntry(DBID objectID,
double parentDistance,
int nodeID,
double coveringRadius)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
double |
getCoveringRadius()
Returns the covering radius of this entry.
|
int |
getPageID()
Get the page ID of this leaf 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.
|
int |
hashCode() |
void |
readExternal(java.io.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.
|
java.lang.String |
toString() |
void |
writeExternal(java.io.ObjectOutput out)
Calls the super method and writes the routingObjectID, the parentDistance
and the coveringRadius of this entry to the specified stream.
|
private static final long serialVersionUID
private int id
private DBID routingObjectID
private double parentDistance
private double coveringRadius
public MTreeDirectoryEntry()
public MTreeDirectoryEntry(DBID objectID, double parentDistance, int 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 int getPageID()
DirectoryEntrygetPageID in interface DirectoryEntrypublic 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(java.io.ObjectOutput out)
throws java.io.IOException
writeExternal in interface java.io.Externalizablejava.io.IOExceptionpublic void readExternal(java.io.ObjectInput in)
throws java.io.IOException,
java.lang.ClassNotFoundException
readExternal in interface java.io.Externalizablejava.io.IOExceptionjava.lang.ClassNotFoundExceptionpublic java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.ObjectCopyright © 2019 ELKI Development Team. License information.