|
|
|||||||||
| 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.AbstractDirectoryEntry
de.lmu.ifi.dbs.elki.index.tree.metrical.mtreevariants.MTreeDirectoryEntry<D>
de.lmu.ifi.dbs.elki.index.tree.metrical.mtreevariants.mktrees.mktab.MkTabDirectoryEntry<D>
class MkTabDirectoryEntry<D extends Distance<D>>

Represents an entry in a directory node of a MkTab-Tree. Additionally to a MTreeLeafEntry a MkTabDirectoryEntry holds a list of its knn distances for parameters k <= k_max.
| Field Summary | |
|---|---|
private int |
k_max
The maximal number of knn distances to be stored. |
private List<D> |
knnDistances
The aggregated knn distances of the underlying node. |
private static long |
serialVersionUID
|
| Constructor Summary | |
|---|---|
MkTabDirectoryEntry()
Empty constructor for serialization purposes. |
|
MkTabDirectoryEntry(DBID objectID,
D parentDistance,
Integer nodeID,
D coveringRadius,
List<D> knnDistances)
Provides a new MkMaxDirectoryEntry with the given parameters. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object o)
Indicates whether some other object is "equal to" this one. |
int |
getK_max()
Returns the parameter k_max. |
D |
getKnnDistance(int k)
Returns the knn distance of the entry for the specified parameter k. |
List<D> |
getKnnDistances()
Returns the list of knn distances of the entry. |
void |
readExternal(ObjectInput in)
Calls the super method and reads the parameter k_max and knn distance of this entry from the specified input stream. |
void |
setKnnDistances(List<D> knnDistances)
Sets the knn distances of the entry. |
void |
writeExternal(ObjectOutput out)
Calls the super method and writes the parameter k_max and the knn distances of this entry to the specified stream. |
| Methods inherited from class de.lmu.ifi.dbs.elki.index.tree.metrical.mtreevariants.MTreeDirectoryEntry |
|---|
getCoveringRadius, getParentDistance, getRoutingObjectID, setCoveringRadius, setParentDistance, setRoutingObjectID, toString |
| 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.metrical.mtreevariants.MTreeEntry |
|---|
getCoveringRadius, getParentDistance, getRoutingObjectID, setCoveringRadius, setParentDistance, setRoutingObjectID |
| Methods inherited from interface de.lmu.ifi.dbs.elki.index.tree.Entry |
|---|
isLeafEntry |
| Field Detail |
|---|
private static final long serialVersionUID
private int k_max
private List<D extends Distance<D>> knnDistances
| Constructor Detail |
|---|
public MkTabDirectoryEntry()
public MkTabDirectoryEntry(DBID objectID,
D parentDistance,
Integer nodeID,
D coveringRadius,
List<D> knnDistances)
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 entryknnDistances - the aggregated knn distances of the underlying node| Method Detail |
|---|
public List<D> getKnnDistances()
MkTabEntry
getKnnDistances in interface MkTabEntry<D extends Distance<D>>public void setKnnDistances(List<D> knnDistances)
MkTabEntry
setKnnDistances in interface MkTabEntry<D extends Distance<D>>knnDistances - the knn distances to be setpublic D getKnnDistance(int k)
MkTabEntry
getKnnDistance in interface MkTabEntry<D extends Distance<D>>k - the parameter k of the knn distance
public int getK_max()
MkTabEntry
getK_max in interface MkTabEntry<D extends Distance<D>>
public void writeExternal(ObjectOutput out)
throws IOException
writeExternal in interface ExternalizablewriteExternal in class MTreeDirectoryEntry<D extends Distance<D>>out - the stream to write the object to
IOException - Includes any I/O exceptions that may occur
public void readExternal(ObjectInput in)
throws IOException,
ClassNotFoundException
readExternal in interface ExternalizablereadExternal in class MTreeDirectoryEntry<D extends Distance<D>>in - the stream to read data from in order to restore the object
IOException - if I/O errors occur
ClassNotFoundException - If the class for an object being restored
cannot be found.public boolean equals(Object o)
equals in class MTreeDirectoryEntry<D extends Distance<D>>o - the object to be tested
|
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||