public final class QueryUtil extends Object
Constructor and Description |
---|
QueryUtil() |
Modifier and Type | Method and Description |
---|---|
static KNNList |
applySqrt(KNNList knnList)
Apply the square root function to each value in the list.
|
static <O> DistanceQuery<O> |
getDistanceQuery(Database database,
DistanceFunction<? super O> distanceFunction,
Object... hints)
Get a distance query for a given distance function, automatically choosing
a relation.
|
static <O> KNNQuery<O> |
getKNNQuery(Database database,
DistanceFunction<? super O> distanceFunction,
Object... hints)
Get a KNN query object for the given distance function.
|
static <O> KNNQuery<O> |
getKNNQuery(Relation<O> relation,
DistanceFunction<? super O> distanceFunction,
Object... hints)
Get a KNN query object for the given distance function.
|
static <O> KNNQuery<O> |
getLinearScanKNNQuery(DistanceQuery<O> distanceQuery)
Get a linear scan query for the given distance query.
|
static <O> RangeQuery<O> |
getLinearScanRangeQuery(DistanceQuery<O> distanceQuery)
Get a linear scan query for the given distance query.
|
static <O> RangeQuery<O> |
getRangeQuery(Database database,
DistanceFunction<? super O> distanceFunction,
Object... hints)
Get a range query object for the given distance function for radius-based
neighbor search.
|
static <O> RangeQuery<O> |
getRangeQuery(Relation<O> relation,
DistanceFunction<? super O> distanceFunction,
Object... hints)
Get a range query object for the given distance function for radius-based
neighbor search.
|
static <O> RKNNQuery<O> |
getRKNNQuery(Relation<O> relation,
DistanceFunction<? super O> distanceFunction,
Object... hints)
Get a rKNN query object for the given distance function.
|
static <O> SimilarityQuery<O> |
getSimilarityQuery(Database database,
SimilarityFunction<? super O> similarityFunction,
Object... hints)
Get a similarity query, automatically choosing a relation.
|
public static <O> DistanceQuery<O> getDistanceQuery(Database database, DistanceFunction<? super O> distanceFunction, Object... hints)
O
- Object typedatabase
- DatabasedistanceFunction
- Distance functionhints
- Optimizer hintspublic static <O> SimilarityQuery<O> getSimilarityQuery(Database database, SimilarityFunction<? super O> similarityFunction, Object... hints)
O
- Object typedatabase
- DatabasesimilarityFunction
- Similarity functionhints
- Optimizer hintspublic static <O> KNNQuery<O> getKNNQuery(Database database, DistanceFunction<? super O> distanceFunction, Object... hints)
DatabaseQuery.HINT_BULK
bulk
query neededO
- Object typedatabase
- DatabasedistanceFunction
- Distance functionhints
- Optimizer hintspublic static <O> KNNQuery<O> getKNNQuery(Relation<O> relation, DistanceFunction<? super O> distanceFunction, Object... hints)
DatabaseQuery.HINT_BULK
bulk
query neededO
- Object typerelation
- Relation useddistanceFunction
- Distance functionhints
- Optimizer hintspublic static <O> RangeQuery<O> getRangeQuery(Database database, DistanceFunction<? super O> distanceFunction, Object... hints)
DatabaseQuery.HINT_BULK
bulk
query neededO
- Object typedatabase
- DatabasedistanceFunction
- Distance functionhints
- Optimizer hintspublic static <O> RangeQuery<O> getRangeQuery(Relation<O> relation, DistanceFunction<? super O> distanceFunction, Object... hints)
DatabaseQuery.HINT_BULK
bulk
query neededO
- Object typerelation
- Relation useddistanceFunction
- Distance functionhints
- Optimizer hintspublic static <O> RKNNQuery<O> getRKNNQuery(Relation<O> relation, DistanceFunction<? super O> distanceFunction, Object... hints)
DatabaseQuery.HINT_BULK
bulk
query neededO
- Object typerelation
- Relation useddistanceFunction
- Distance functionhints
- Optimizer hintspublic static <O> KNNQuery<O> getLinearScanKNNQuery(DistanceQuery<O> distanceQuery)
O
- Object typedistanceQuery
- distance querypublic static <O> RangeQuery<O> getLinearScanRangeQuery(DistanceQuery<O> distanceQuery)
O
- Object typedistanceQuery
- distance queryCopyright © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.