
V - Vector type to useD - Distance result typepublic class SpatialPrimitiveDistanceQuery<V extends SpatialComparable,D extends Distance<D>> extends PrimitiveDistanceQuery<V,D> implements SpatialDistanceQuery<V,D>
| Modifier and Type | Field and Description |
|---|---|
protected SpatialPrimitiveDistanceFunction<? super V,D> |
distanceFunction
The distance function we use.
|
relationHINT_BULK, HINT_EXACT, HINT_HEAVY_USE, HINT_NO_CACHE, HINT_OPTIMIZED_ONLY, HINT_SINGLE| Constructor and Description |
|---|
SpatialPrimitiveDistanceQuery(Relation<? extends V> relation,
SpatialPrimitiveDistanceFunction<? super V,D> distanceFunction) |
| Modifier and Type | Method and Description |
|---|---|
SpatialPrimitiveDistanceFunction<? super V,D> |
getDistanceFunction()
Get the inner distance function.
|
D |
minDist(SpatialComparable mbr,
DBID id)
Computes the minimum distance between the given MBR and the FeatureVector
object according to this distance function.
|
D |
minDist(SpatialComparable mbr,
V v)
Computes the minimum distance between the given MBR and the FeatureVector
object according to this distance function.
|
distance, distance, distance, distancegetDistanceFactory, infiniteDistance, nullDistance, undefinedDistancegetRelationclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdistance, distance, distance, distance, getDistanceFactory, getRelation, infiniteDistance, nullDistance, undefinedDistanceprotected final SpatialPrimitiveDistanceFunction<? super V extends SpatialComparable,D extends Distance<D>> distanceFunction
public SpatialPrimitiveDistanceQuery(Relation<? extends V> relation, SpatialPrimitiveDistanceFunction<? super V,D> distanceFunction)
relation - Representation to usedistanceFunction - Distance function to usepublic D minDist(SpatialComparable mbr, V v)
SpatialDistanceQueryminDist in interface SpatialDistanceQuery<V extends SpatialComparable,D extends Distance<D>>mbr - the MBR objectv - the FeatureVector objectpublic D minDist(SpatialComparable mbr, DBID id)
SpatialDistanceQueryminDist in interface SpatialDistanceQuery<V extends SpatialComparable,D extends Distance<D>>mbr - the MBR objectid - the query object idpublic SpatialPrimitiveDistanceFunction<? super V,D> getDistanceFunction()
DistanceQuerygetDistanceFunction in interface DistanceQuery<V extends SpatialComparable,D extends Distance<D>>getDistanceFunction in interface SpatialDistanceQuery<V extends SpatialComparable,D extends Distance<D>>getDistanceFunction in class PrimitiveDistanceQuery<V extends SpatialComparable,D extends Distance<D>>