
D - the type of Distance used in the M-Treepublic class MTreeLeafEntry<D extends Distance<D>> extends AbstractLeafEntry implements MTreeEntry<D>
| Modifier and Type | Field and Description |
|---|---|
private D |
parentDistance
The distance from the underlying data object to its parent's routing
object.
|
private static long |
serialVersionUID |
| Constructor and Description |
|---|
MTreeLeafEntry()
Empty constructor for serialization purposes.
|
MTreeLeafEntry(DBID objectID,
D parentDistance)
Provides a new MTreeLeafEntry object 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 null, since a leaf entry has no covering radius.
|
D |
getParentDistance()
Returns the distance from the underlying data object to its parent's
routing object.
|
DBID |
getRoutingObjectID()
Returns the id of the underlying data object of this entry.
|
void |
readExternal(ObjectInput in)
Calls the super method and reads the parentDistance of this entry from the
specified input stream.
|
void |
setCoveringRadius(D coveringRadius)
Throws an UnsupportedOperationException, since a leaf entry has no covering
radius.
|
void |
setParentDistance(D parentDistance)
Sets the distance from the underlying data object to its parent's routing
object.
|
void |
setRoutingObjectID(DBID objectID)
todo ok
|
void |
writeExternal(ObjectOutput out)
Calls the super method and writes the parentDistance of this entry to the
specified stream.
|
getDBID, hashCode, isLeafEntry, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitisLeafEntryprivate static final long serialVersionUID
public MTreeLeafEntry()
public 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 setUnsupportedOperationException - since leaf entries should not be
assigned a routing object.public 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 D getCoveringRadius()
getCoveringRadius in interface MTreeEntry<D extends Distance<D>>public void setCoveringRadius(D coveringRadius)
setCoveringRadius in interface MTreeEntry<D extends Distance<D>>coveringRadius - the covering radius to be setUnsupportedOperationException - thrown since a leaf has no covering
radiuspublic void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizablewriteExternal in class AbstractLeafEntryIOExceptionpublic void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizablereadExternal in class AbstractLeafEntryClassNotFoundException - If the class for an object being restored
cannot be found.IOExceptionpublic boolean equals(Object o)
equals in class AbstractLeafEntryo - the object to be tested