
V - Vector typeD - Distance typepublic interface SpatialDistanceQuery<V extends SpatialComparable,D extends Distance<D>> extends DistanceQuery<V,D>
HINT_BULK, HINT_EXACT, HINT_HEAVY_USE, HINT_NO_CACHE, HINT_OPTIMIZED_ONLY, HINT_SINGLE| Modifier and Type | Method and Description |
|---|---|
D |
centerDistance(SpatialComparable mbr1,
SpatialComparable mbr2)
Computes the distance between the centroids of the two given MBRs according
to this distance function.
|
SpatialPrimitiveDistanceFunction<? super V,D> |
getDistanceFunction()
Get the inner distance function.
|
D |
mbrDist(SpatialComparable mbr1,
SpatialComparable mbr2)
Computes the distance between the two given MBRs according to this 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, distance, getDistanceFactory, getRelation, infiniteDistance, nullDistance, undefinedDistanceD minDist(SpatialComparable mbr, V v)
mbr - the MBR objectv - the FeatureVector objectD minDist(SpatialComparable mbr, DBID id)
mbr - the MBR objectid - the query object idD mbrDist(SpatialComparable mbr1, SpatialComparable mbr2)
mbr1 - the first MBR objectmbr2 - the second MBR objectD centerDistance(SpatialComparable mbr1, SpatialComparable mbr2)
mbr1 - the first MBR objectmbr2 - the second MBR objectSpatialPrimitiveDistanceFunction<? super V,D> getDistanceFunction()
getDistanceFunction in interface DistanceQuery<V extends SpatialComparable,D extends Distance<D>>