|
|
|||||||||||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||||||||||
java.lang.Objectde.lmu.ifi.dbs.elki.index.tree.AbstractEntry
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(Integer 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. |
Integer |
getRoutingObjectID()
Returns the id of the underlying data object of this entry. |
boolean |
isLeafEntry()
Returns true, since this entry is a leaf 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(Integer objectID)
Sets the id of the underlying data object of this entry. |
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.AbstractEntry |
|---|
getID, hashCode, setID, 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 |
|---|
getID, setID |
| Field Detail |
|---|
private static final long serialVersionUID
private D extends Distance<D> parentDistance
| Constructor Detail |
|---|
public MTreeLeafEntry()
public MTreeLeafEntry(Integer objectID,
D parentDistance)
objectID - the id of the underlying data objectparentDistance - the distance from the underlying data object to its
parent's routing object| Method Detail |
|---|
public final Integer getRoutingObjectID()
getRoutingObjectID in interface MTreeEntry<D extends Distance<D>>public final void setRoutingObjectID(Integer 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 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 final boolean isLeafEntry()
isLeafEntry in interface Entry
public void writeExternal(ObjectOutput out)
throws IOException
writeExternal in interface ExternalizablewriteExternal in class AbstractEntryIOException
public void readExternal(ObjectInput in)
throws IOException,
ClassNotFoundException
readExternal in interface ExternalizablereadExternal in class AbstractEntryClassNotFoundException - If the class for an object being restored
cannot be found.
IOExceptionpublic boolean equals(Object o)
equals in class AbstractEntryo - the object to be tested
|
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||