
D - the type of Distance used in the M-Treepublic class MTreeDirectoryEntry<D extends Distance<D>> extends AbstractDirectoryEntry implements MTreeEntry<D>
| Modifier and Type | Field and Description |
|---|---|
private D |
coveringRadius
The covering radius of the entry.
|
private D |
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,
D parentDistance,
Integer nodeID,
D coveringRadius)
Provides a new MTreeDirectoryEntry with the given parameters.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o)
Indicates whether some other object is "equal to" this one.
|
D |
getCoveringRadius()
Returns the covering radius of this entry.
|
D |
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.
|
void |
setCoveringRadius(D coveringRadius)
Sets the covering radius of this entry.
|
void |
setParentDistance(D parentDistance)
Sets the distance from the object to its parent object.
|
void |
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 D extends Distance<D> parentDistance
public MTreeDirectoryEntry()
public MTreeDirectoryEntry(DBID objectID, D parentDistance, Integer nodeID, D 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 D getCoveringRadius()
getCoveringRadius in interface MTreeEntry<D extends Distance<D>>public final void setCoveringRadius(D coveringRadius)
setCoveringRadius in interface MTreeEntry<D extends Distance<D>>coveringRadius - the covering radius to be setpublic final DBID getRoutingObjectID()
getRoutingObjectID in interface MTreeEntry<D extends Distance<D>>public final void setRoutingObjectID(DBID objectID)
setRoutingObjectID in interface MTreeEntry<D extends Distance<D>>objectID - the id to be setpublic final D getParentDistance()
getParentDistance in interface MTreeEntry<D extends Distance<D>>public final void setParentDistance(D parentDistance)
setParentDistance in interface MTreeEntry<D extends Distance<D>>parentDistance - 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 tested