|
||||||||||
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.AbstractDirectoryEntry 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 DBID |
routingObjectID
The id of routing object of this entry. |
private static long |
serialVersionUID
|
Constructor Summary | |
---|---|
MTreeDirectoryEntry()
Empty constructor for serialization purposes. |
|
MTreeDirectoryEntry(DBID 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. |
DBID |
getRoutingObjectID()
Returns the id of the routing object of this 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(DBID 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.AbstractDirectoryEntry |
---|
getEntryID, getPageID, hashCode, isLeafEntry |
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 DBID routingObjectID
private D extends Distance<D> parentDistance
private D extends Distance<D> coveringRadius
Constructor Detail |
---|
public MTreeDirectoryEntry()
public MTreeDirectoryEntry(DBID 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 entryMethod 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 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 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 void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
writeExternal
in class AbstractDirectoryEntry
IOException
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
readExternal
in class AbstractDirectoryEntry
ClassNotFoundException
- If the class for an object being restored
cannot be found.
IOException
public String toString()
toString
in class AbstractDirectoryEntry
public boolean equals(Object o)
equals
in class AbstractDirectoryEntry
o
- the object to be tested
|
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |