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()
DirectoryEntry
getPageID
in interface DirectoryEntry
public 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(java.io.ObjectOutput out) throws java.io.IOException
writeExternal
in interface java.io.Externalizable
java.io.IOException
public void readExternal(java.io.ObjectInput in) throws java.io.IOException, java.lang.ClassNotFoundException
readExternal
in interface java.io.Externalizable
java.io.IOException
java.lang.ClassNotFoundException
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
Copyright © 2019 ELKI Development Team. License information.