|
|
|||||||||||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||||||||||
java.lang.Objectde.lmu.ifi.dbs.elki.utilities.QueryResult<D>
public class QueryResult<D extends Distance<D>>
QueryResult holds the id of a database object and its distance to a special query object.
| Field Summary | |
|---|---|
private D |
distance
The distance of the underlying database object to the query object. |
private int |
id
The id of the underlying database object. |
| Constructor Summary | |
|---|---|
QueryResult(int id,
D distance)
Creates a new QueryResult object. |
|
| Method Summary | |
|---|---|
int |
compareTo(QueryResult<D> o)
Compares this QueryResult with the given QueryResult with respect to the distances. |
boolean |
equals(Object o)
Indicates whether some other object is "equal to" this one. |
D |
getDistance()
Returns the distance of the underlying database object to the query object. |
int |
getID()
Returns the id of the underlying database object. |
int |
hashCode()
Returns a hash code value for this object. |
String |
toString()
Returns a string representation of this QueryResult object. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private final int id
private final D extends Distance<D> distance
| Constructor Detail |
|---|
public QueryResult(int id,
D distance)
id - the id of the underlying database objectdistance - the distance of the underlying database object to the query
object| Method Detail |
|---|
public int getID()
public D getDistance()
public int compareTo(QueryResult<D> o)
compareTo in interface Comparable<QueryResult<D extends Distance<D>>>Comparable.compareTo(Object)public String toString()
toString in class Objectpublic boolean equals(Object o)
equals in class Objecto - the reference object with which to compare.
true if this object is the same as the o
argument; false otherwise.public int hashCode()
hashCode in class Object
|
|
||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||||