public final class QueryUtil
extends java.lang.Object
Modifier | Constructor and Description |
---|---|
private |
QueryUtil()
Private constructor.
|
Modifier and Type | Method and Description |
---|---|
static <O> DistanceQuery<O> |
getDistanceQuery(Database database,
DistanceFunction<? super O> distanceFunction,
java.lang.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,
java.lang.Object... hints)
Get a KNN query object for the given distance function.
|
static <O> KNNQuery<O> |
getKNNQuery(Relation<O> relation,
DistanceFunction<? super O> distanceFunction,
java.lang.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> |
getLinearScanSimilarityRangeQuery(SimilarityQuery<O> simQuery)
Get a linear scan query for the given similarity query.
|
static <O> RangeQuery<O> |
getRangeQuery(Database database,
DistanceFunction<? super O> distanceFunction,
java.lang.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,
java.lang.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,
java.lang.Object... hints)
Get a rKNN query object for the given distance function.
|
static <O> SimilarityQuery<O> |
getSimilarityQuery(Database database,
SimilarityFunction<? super O> similarityFunction,
java.lang.Object... hints)
Get a similarity query, automatically choosing a relation.
|
public static <O> DistanceQuery<O> getDistanceQuery(Database database, DistanceFunction<? super O> distanceFunction, java.lang.Object... hints)
O
- Object typedatabase
- DatabasedistanceFunction
- Distance functionhints
- Optimizer hintspublic static <O> SimilarityQuery<O> getSimilarityQuery(Database database, SimilarityFunction<? super O> similarityFunction, java.lang.Object... hints)
O
- Object typedatabase
- DatabasesimilarityFunction
- Similarity functionhints
- Optimizer hintspublic static <O> KNNQuery<O> getKNNQuery(Database database, DistanceFunction<? super O> distanceFunction, java.lang.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, java.lang.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, java.lang.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, java.lang.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, java.lang.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 querypublic static <O> RangeQuery<O> getLinearScanSimilarityRangeQuery(SimilarityQuery<O> simQuery)
O
- Object typesimQuery
- similarity queryCopyright © 2019 ELKI Development Team. License information.