|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.lmu.ifi.dbs.elki.index.tree.AbstractLeafEntry de.lmu.ifi.dbs.elki.index.tree.metrical.mtreevariants.MTreeLeafEntry<D>
D
- the type of Distance used in the M-Treepublic class MTreeLeafEntry<D extends Distance<D>>
Represents an entry in a leaf node of an M-Tree. A MTreeLeafEntry consists of an id (representing the unique id of the underlying object in the database) and the distance from the data object to its parent routing object in the M-Tree.
Field Summary | |
---|---|
private D |
parentDistance
The distance from the underlying data object to its parent's routing object. |
private static long |
serialVersionUID
|
Constructor Summary | |
---|---|
MTreeLeafEntry()
Empty constructor for serialization purposes. |
|
MTreeLeafEntry(DBID objectID,
D parentDistance)
Provides a new MTreeLeafEntry object with the given parameters. |
Method Summary | |
---|---|
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. |
Methods inherited from class de.lmu.ifi.dbs.elki.index.tree.AbstractLeafEntry |
---|
getDBID, hashCode, isLeafEntry, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface de.lmu.ifi.dbs.elki.index.tree.Entry |
---|
isLeafEntry |
Field Detail |
---|
private static final long serialVersionUID
private D extends Distance<D> parentDistance
Constructor Detail |
---|
public MTreeLeafEntry()
public MTreeLeafEntry(DBID objectID, D parentDistance)
objectID
- the id of the underlying data objectparentDistance
- the distance from the underlying data object to its
parent's routing objectMethod Detail |
---|
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 set
UnsupportedOperationException
- 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 set
UnsupportedOperationException
- 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 tested
|
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |