|
|
|||||||||||||||||||||
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.SpatialLeafEntry
de.lmu.ifi.dbs.elki.index.tree.spatial.rstarvariants.rdknn.RdKNNLeafEntry<D,N>
D
- Distance typeN
- Number typepublic class RdKNNLeafEntry<D extends NumberDistance<D,N>,N extends Number>
Represents an entry in a leaf node of an RdKNN-Tree. Additionally to a SpatialLeafEntry a RdKNNLeafEntry holds the knn distance of the underlying data object.
Field Summary | |
---|---|
private D |
knnDistance
The knn distance of the underlying data object. |
private static long |
serialVersionUID
|
Constructor Summary | |
---|---|
RdKNNLeafEntry()
Empty constructor for serialization purposes. |
|
RdKNNLeafEntry(int id,
double[] values,
D knnDistance)
Constructs a new RDkNNLeafEntry 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.SpatialLeafEntry |
---|
getDimensionality, getMax, getMBR, getMin, getValues, 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 RdKNNLeafEntry()
public RdKNNLeafEntry(int id, double[] values, D knnDistance)
id
- the unique id of the underlying data objectvalues
- the values of the underlying data objectknnDistance
- the knn distance of the underlying data objectMethod 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 setpublic void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
writeExternal
in class SpatialLeafEntry
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 SpatialLeafEntry
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 AbstractEntry
o
- the object to be tested
|
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |