
class MkTabLeafEntry<D extends Distance<D>> extends MTreeLeafEntry<D> implements MkTabEntry<D>
| Modifier and Type | Field and Description |
|---|---|
private int |
k_max
The maximal number of knn distances to be stored.
|
private List<D> |
knnDistances
The knn distances of the underlying data object.
|
private static long |
serialVersionUID |
| Constructor and Description |
|---|
MkTabLeafEntry()
Empty constructor for serialization purposes.
|
MkTabLeafEntry(DBID objectID,
D parentDistance,
List<D> knnDistances)
Provides a new MkMaxLeafEntry with the given parameters.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
getCoveringRadius, getParentDistance, getRoutingObjectID, setCoveringRadius, setParentDistance, setRoutingObjectIDgetDBID, hashCode, isLeafEntry, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetCoveringRadius, getParentDistance, getRoutingObjectID, setCoveringRadius, setParentDistance, setRoutingObjectIDisLeafEntryprivate static final long serialVersionUID
private int k_max
public MkTabLeafEntry()
public MkTabLeafEntry(DBID objectID, D parentDistance, List<D> knnDistances)
objectID - the id of the underlying data objectparentDistance - the distance from the underlying data object to its
parent's routing objectknnDistances - the knn distances of the underlying data objectpublic List<D> getKnnDistances()
MkTabEntrygetKnnDistances in interface MkTabEntry<D extends Distance<D>>public void setKnnDistances(List<D> knnDistances)
MkTabEntrysetKnnDistances in interface MkTabEntry<D extends Distance<D>>knnDistances - the knn distances to be setpublic D getKnnDistance(int k)
MkTabEntrygetKnnDistance in interface MkTabEntry<D extends Distance<D>>k - the parameter k of the knn distancepublic int getK_max()
MkTabEntrygetK_max in interface MkTabEntry<D extends Distance<D>>public void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizablewriteExternal in class MTreeLeafEntry<D extends Distance<D>>out - the stream to write the object toIOException - Includes any I/O exceptions that may occurpublic void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizablereadExternal in class MTreeLeafEntry<D extends Distance<D>>in - the stream to read data from in order to restore the objectIOException - if I/O errors occurClassNotFoundException - 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