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)
Constructor.
|
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.
|
boolean |
setCoveringRadius(double coveringRadius)
Throws an UnsupportedOperationException, since a leaf entry has no covering
radius.
|
boolean |
setParentDistance(double parentDistance)
Sets the distance from the underlying data object to its parent's routing
object.
|
boolean |
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, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
isLeafEntry
private 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 MTreeEntry
public final boolean setRoutingObjectID(DBID objectID)
setRoutingObjectID
in interface MTreeEntry
objectID
- the id to be setUnsupportedOperationException
- since leaf entries should not be
assigned a routing object.public final double getParentDistance()
getParentDistance
in interface MTreeEntry
public final boolean setParentDistance(double parentDistance)
setParentDistance
in interface MTreeEntry
parentDistance
- the distance to be setpublic double getCoveringRadius()
getCoveringRadius
in interface MTreeEntry
public boolean setCoveringRadius(double coveringRadius)
setCoveringRadius
in interface MTreeEntry
coveringRadius
- the covering radius to be setUnsupportedOperationException
- thrown since a leaf has no covering
radiuspublic void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
writeExternal
in class AbstractLeafEntry
IOException
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
readExternal
in class AbstractLeafEntry
ClassNotFoundException
- If the class for an object being restored
cannot be found.IOException
public boolean equals(Object o)
equals
in class AbstractLeafEntry
o
- the object to be testedCopyright © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.