|
|
|||||||||||||||||||||
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.AbstractEntry de.lmu.ifi.dbs.elki.index.tree.metrical.mtreevariants.MTreeLeafEntry<D> de.lmu.ifi.dbs.elki.index.tree.metrical.mtreevariants.mkmax.MkMaxLeafEntry<D>
class MkMaxLeafEntry<D extends Distance<D>>
Represents an entry in a leaf node of a MkMax-Tree. Additionally to a MTreeLeafEntry a MkMaxLeafEntry holds its knn distance.
Field Summary | |
---|---|
private D |
knnDistance
The knn distance of the underlying data object. |
Constructor Summary | |
---|---|
MkMaxLeafEntry()
Empty constructor for serialization purposes. |
|
MkMaxLeafEntry(Integer objectID,
D parentDistance,
D knnDistance)
Provides a new MkMaxLeafEntry with the given parameters. |
Method Summary | |
---|---|
boolean |
equals(Object o)
Indicates whether some other object is "equal to" this one. |
D |
getKnnDistance()
Returns the knn distance of the entry. |
void |
readExternal(ObjectInput in)
Calls the super method and reads the knn distance of this entry from the specified input stream. |
void |
setKnnDistance(D knnDistance)
Sets the knn distance of the entry. |
void |
writeExternal(ObjectOutput out)
Calls the super method and writes the knn distance of this entry to the specified stream. |
Methods inherited from class de.lmu.ifi.dbs.elki.index.tree.metrical.mtreevariants.MTreeLeafEntry |
---|
getCoveringRadius, getParentDistance, getRoutingObjectID, isLeafEntry, setCoveringRadius, setParentDistance, setRoutingObjectID |
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.metrical.mtreevariants.MTreeEntry |
---|
getCoveringRadius, getParentDistance, getRoutingObjectID, setCoveringRadius, setParentDistance, setRoutingObjectID |
Methods inherited from interface de.lmu.ifi.dbs.elki.index.tree.Entry |
---|
getID, isLeafEntry, setID |
Field Detail |
---|
private D extends Distance<D> knnDistance
Constructor Detail |
---|
public MkMaxLeafEntry()
public MkMaxLeafEntry(Integer objectID, D parentDistance, D knnDistance)
objectID
- the id of the underlying data objectparentDistance
- the distance from the underlying data object to its parent's routing objectknnDistance
- the knn distance of the underlying data objectMethod Detail |
---|
public D getKnnDistance()
MkMaxEntry
getKnnDistance
in interface MkMaxEntry<D extends Distance<D>>
MkMaxEntry.getKnnDistance()
public void setKnnDistance(D knnDistance)
MkMaxEntry
setKnnDistance
in interface MkMaxEntry<D extends Distance<D>>
knnDistance
- the knn distance to be setMkMaxEntry.setKnnDistance(de.lmu.ifi.dbs.elki.distance.Distance)
public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
writeExternal
in class MTreeLeafEntry<D extends Distance<D>>
out
- the stream to write the object to
IOException
- Includes any I/O exceptions that may occurpublic void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
readExternal
in class MTreeLeafEntry<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 MTreeLeafEntry<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 |