|
|
|||||||||||||||||||||
| 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.spatial.SpatialDirectoryEntry
de.lmu.ifi.dbs.elki.index.tree.spatial.rstarvariants.rdknn.RdKNNDirectoryEntry<D,N>
D - Distance typeN - Number typepublic class RdKNNDirectoryEntry<D extends NumberDistance<D,N>,N extends Number>
Represents an entry in a directory node of an RdKNN-Tree. Additionally to a SpatialDirectoryEntry a RdKNNDirectoryEntry holds the knn distance of the underlying RdKNN-Tree node.
| Field Summary | |
|---|---|
private D |
knnDistance
The aggregated knn distance of this entry. |
private static long |
serialVersionUID
|
| Constructor Summary | |
|---|---|
RdKNNDirectoryEntry()
Empty constructor for serialization purposes. |
|
RdKNNDirectoryEntry(int id,
HyperBoundingBox mbr,
D knnDistance)
Constructs a new RDkNNDirectoryEntry object 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 this 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 this 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.spatial.SpatialDirectoryEntry |
|---|
getDimensionality, getMax, getMBR, getMin, isLeafEntry, setMBR |
| 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.spatial.SpatialEntry |
|---|
getMBR, setMBR |
| Methods inherited from interface de.lmu.ifi.dbs.elki.index.tree.Entry |
|---|
getID, isLeafEntry, setID |
| Methods inherited from interface de.lmu.ifi.dbs.elki.index.tree.spatial.SpatialComparable |
|---|
getDimensionality, getMax, getMin |
| Field Detail |
|---|
private static final long serialVersionUID
private D extends NumberDistance<D,N> knnDistance
| Constructor Detail |
|---|
public RdKNNDirectoryEntry()
public RdKNNDirectoryEntry(int id,
HyperBoundingBox mbr,
D knnDistance)
id - the unique id of the underlying nodembr - the minimum bounding rectangle of the underlying nodeknnDistance - the aggregated knn distance of this entry| Method Detail |
|---|
public D getKnnDistance()
RdKNNEntry
getKnnDistance in interface RdKNNEntry<D extends NumberDistance<D,N>,N extends Number>public void setKnnDistance(D knnDistance)
RdKNNEntry
setKnnDistance in interface RdKNNEntry<D extends NumberDistance<D,N>,N extends Number>knnDistance - the knn distance to be set
public void writeExternal(ObjectOutput out)
throws IOException
writeExternal in interface ExternalizablewriteExternal in class SpatialDirectoryEntryout - 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 SpatialDirectoryEntryin - 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 AbstractEntryo - the object to be tested
|
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||