O
- Database object type.D
- Distance result type.public abstract class AbstractDatabaseDistanceQuery<O,D extends Distance<D>> extends AbstractDistanceQuery<O,D>
relation
HINT_BULK, HINT_EXACT, HINT_HEAVY_USE, HINT_NO_CACHE, HINT_OPTIMIZED_ONLY, HINT_SINGLE
Constructor and Description |
---|
AbstractDatabaseDistanceQuery(Relation<? extends O> relation)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
D |
distance(DBIDRef id1,
O o2)
Returns the distance between the two objects specified by their object ids.
|
D |
distance(O o1,
DBIDRef id2)
Returns the distance between the two objects specified by their object ids.
|
D |
distance(O o1,
O o2)
Returns the distance between the two objects specified by their object ids.
|
distance, getDistanceFactory, infiniteDistance, nullDistance, undefinedDistance
getRelation
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDistanceFunction, getRelation
public D distance(O o1, DBIDRef id2)
AbstractDistanceQuery
public D distance(DBIDRef id1, O o2)
AbstractDistanceQuery
public D distance(O o1, O o2)
AbstractDistanceQuery