
public class MTreeLeafEntry extends AbstractLeafEntry implements MTreeEntry
| Modifier and Type | Field and Description |
|---|---|
private double |
parentDistance
The distance from the underlying data object to its parent's routing
object.
|
private static long |
serialVersionUID
Serialization version ID.
|
| Constructor and Description |
|---|
MTreeLeafEntry()
Empty constructor for serialization purposes.
|
MTreeLeafEntry(DBID objectID,
double 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.
|
double |
getCoveringRadius()
Returns zero, since a leaf entry has no covering radius.
|
double |
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(double coveringRadius)
Throws an UnsupportedOperationException, since a leaf entry has no covering
radius.
|
void |
setParentDistance(double 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
private double parentDistance
public MTreeLeafEntry()
public MTreeLeafEntry(DBID objectID, double parentDistance)
objectID - the id of the underlying data objectparentDistance - the distance from the underlying data object to its
parent's routing objectpublic final DBID getRoutingObjectID()
getRoutingObjectID in interface MTreeEntrypublic final void setRoutingObjectID(DBID objectID)
setRoutingObjectID in interface MTreeEntryobjectID - the id to be setUnsupportedOperationException - since leaf entries should not be
assigned a routing object.public final double getParentDistance()
getParentDistance in interface MTreeEntrypublic final void setParentDistance(double parentDistance)
setParentDistance in interface MTreeEntryparentDistance - the distance to be setpublic double getCoveringRadius()
getCoveringRadius in interface MTreeEntrypublic void setCoveringRadius(double coveringRadius)
setCoveringRadius in interface MTreeEntrycoveringRadius - 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