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, isLeafEntry
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
isLeafEntry
private 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 MTreeEntry
public final boolean setCoveringRadius(double coveringRadius)
setCoveringRadius
in interface MTreeEntry
coveringRadius
- the covering radius to be setpublic final DBID getRoutingObjectID()
getRoutingObjectID
in interface MTreeEntry
public final boolean setRoutingObjectID(DBID objectID)
setRoutingObjectID
in interface MTreeEntry
objectID
- the id to be setpublic final double getParentDistance()
getParentDistance
in interface MTreeEntry
public final boolean setParentDistance(double parentDistance)
setParentDistance
in interface MTreeEntry
parentDistance
- the distance to be setpublic void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
writeExternal
in class AbstractDirectoryEntry
IOException
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
readExternal
in class AbstractDirectoryEntry
ClassNotFoundException
- If the class for an object being restored
cannot be found.IOException
public String toString()
toString
in class AbstractDirectoryEntry
public boolean equals(Object o)
equals
in class AbstractDirectoryEntry
o
- the object to be testedCopyright © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.