|
|
|||||||||||||||||||||
| 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.MTreeDirectoryEntry<D>
D - the type of Distance used in the M-Treepublic class MTreeDirectoryEntry<D extends Distance<D>>
Represents an entry in a directory node of an M-Tree. A MTreeDirectoryEntry consists of an id (representing the unique id of the underlying node), the id of the routing object, the covering radius of the entry and the distance from the routing object of the entry to its parent's routing object in the M-Tree.
| Field Summary | |
|---|---|
private D |
coveringRadius
The covering radius of the entry. |
private D |
parentDistance
The distance from the routing object of this entry to its parent's routing object. |
private Integer |
routingObjectID
The id of routing object of this entry. |
private static long |
serialVersionUID
|
| Constructor Summary | |
|---|---|
MTreeDirectoryEntry()
Empty constructor for serialization purposes. |
|
MTreeDirectoryEntry(Integer objectID,
D parentDistance,
Integer nodeID,
D coveringRadius)
Provides a new MTreeDirectoryEntry with the given parameters. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object o)
Indicates whether some other object is "equal to" this one. |
D |
getCoveringRadius()
Returns the covering radius of this entry. |
D |
getParentDistance()
Returns the distance from the routing object of this entry to its parent's routing object. |
Integer |
getRoutingObjectID()
Returns the id of the routing object of this entry. |
boolean |
isLeafEntry()
Returns false, since this entry is a directory entry. |
void |
readExternal(ObjectInput in)
Calls the super method and reads the routingObjectID, the parentDistance and the coveringRadius of this entry from the specified input stream. |
void |
setCoveringRadius(D coveringRadius)
Sets the covering radius of this entry. |
void |
setParentDistance(D parentDistance)
Sets the distance from the object to its parent object. |
void |
setRoutingObjectID(Integer objectID)
Sets the id of the routing object of this entry. |
String |
toString()
Returns the id as a string representation of this entry. |
void |
writeExternal(ObjectOutput out)
Calls the super method and writes the routingObjectID, the parentDistance and the coveringRadius of this entry to the specified stream. |
| Methods inherited from class de.lmu.ifi.dbs.elki.index.tree.AbstractEntry |
|---|
getID, hashCode, setID |
| 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 Integer routingObjectID
private D extends Distance<D> parentDistance
private D extends Distance<D> coveringRadius
| Constructor Detail |
|---|
public MTreeDirectoryEntry()
public MTreeDirectoryEntry(Integer objectID,
D parentDistance,
Integer nodeID,
D coveringRadius)
objectID - the id of the routing objectparentDistance - the distance from the routing object of this entry to
its parent's routing objectnodeID - the id of the underlying nodecoveringRadius - the covering radius of the entry| Method Detail |
|---|
public final D getCoveringRadius()
getCoveringRadius in interface MTreeEntry<D extends Distance<D>>public final void setCoveringRadius(D coveringRadius)
setCoveringRadius in interface MTreeEntry<D extends Distance<D>>coveringRadius - the covering radius to be setpublic 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 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 String toString()
toString in class AbstractEntrypublic 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 | |||||||||||