public final class QueryUtil extends Object
Constructor and Description |
---|
QueryUtil() |
Modifier and Type | Method and Description |
---|---|
static <O,D extends Distance<D>> |
getDistanceQuery(Database database,
DistanceFunction<? super O,D> distanceFunction,
Object... hints)
Get a distance query for a given distance function, automatically choosing
a relation.
|
static <O,D extends Distance<D>> |
getKNNQuery(Database database,
DistanceFunction<? super O,D> distanceFunction,
Object... hints)
Get a KNN query object for the given distance function.
|
static <O,D extends Distance<D>> |
getKNNQuery(Relation<O> relation,
DistanceFunction<? super O,D> distanceFunction,
Object... hints)
Get a KNN query object for the given distance function.
|
static <O,D extends Distance<D>> |
getLinearScanKNNQuery(DistanceQuery<O,D> distanceQuery)
Get a linear scan query for the given distance query.
|
static <O,D extends Distance<D>> |
getLinearScanRangeQuery(DistanceQuery<O,D> distanceQuery)
Get a linear scan query for the given distance query.
|
static <O,D extends Distance<D>> |
getRangeQuery(Database database,
DistanceFunction<? super O,D> distanceFunction,
Object... hints)
Get a range query object for the given distance function.
|
static <O,D extends Distance<D>> |
getRangeQuery(Relation<O> relation,
DistanceFunction<? super O,D> distanceFunction,
Object... hints)
Get a range query object for the given distance function.
|
static <O,D extends Distance<D>> |
getRKNNQuery(Relation<O> relation,
DistanceFunction<? super O,D> distanceFunction,
Object... hints)
Get a rKNN query object for the given distance function.
|
static <O,D extends Distance<D>> |
getSimilarityQuery(Database database,
SimilarityFunction<? super O,D> similarityFunction,
Object... hints)
Get a similarity query, automatically choosing a relation.
|
public static <O,D extends Distance<D>> DistanceQuery<O,D> getDistanceQuery(Database database, DistanceFunction<? super O,D> distanceFunction, Object... hints)
O
- Object typeD
- Distance typedatabase
- DatabasedistanceFunction
- Distance functionhints
- Optimizer hintspublic static <O,D extends Distance<D>> SimilarityQuery<O,D> getSimilarityQuery(Database database, SimilarityFunction<? super O,D> similarityFunction, Object... hints)
O
- Object typeD
- Distance typedatabase
- DatabasesimilarityFunction
- Similarity functionhints
- Optimizer hintspublic static <O,D extends Distance<D>> KNNQuery<O,D> getKNNQuery(Database database, DistanceFunction<? super O,D> distanceFunction, Object... hints)
DatabaseQuery.HINT_BULK
bulk
query neededO
- Object typeD
- Distance typedatabase
- DatabasedistanceFunction
- Distance functionhints
- Optimizer hintspublic static <O,D extends Distance<D>> KNNQuery<O,D> getKNNQuery(Relation<O> relation, DistanceFunction<? super O,D> distanceFunction, Object... hints)
DatabaseQuery.HINT_BULK
bulk
query neededO
- Object typeD
- Distance typerelation
- Relation useddistanceFunction
- Distance functionhints
- Optimizer hintspublic static <O,D extends Distance<D>> RangeQuery<O,D> getRangeQuery(Database database, DistanceFunction<? super O,D> distanceFunction, Object... hints)
DatabaseQuery.HINT_BULK
bulk
query neededO
- Object typeD
- Distance typedatabase
- DatabasedistanceFunction
- Distance functionhints
- Optimizer hintspublic static <O,D extends Distance<D>> RangeQuery<O,D> getRangeQuery(Relation<O> relation, DistanceFunction<? super O,D> distanceFunction, Object... hints)
DatabaseQuery.HINT_BULK
bulk
query neededO
- Object typeD
- Distance typerelation
- Relation useddistanceFunction
- Distance functionhints
- Optimizer hintspublic static <O,D extends Distance<D>> RKNNQuery<O,D> getRKNNQuery(Relation<O> relation, DistanceFunction<? super O,D> distanceFunction, Object... hints)
DatabaseQuery.HINT_BULK
bulk
query neededO
- Object typeD
- Distance typerelation
- Relation useddistanceFunction
- Distance functionhints
- Optimizer hintspublic static <O,D extends Distance<D>> KNNQuery<O,D> getLinearScanKNNQuery(DistanceQuery<O,D> distanceQuery)
O
- Object typeD
- Distance typedistanceQuery
- distance querypublic static <O,D extends Distance<D>> RangeQuery<O,D> getLinearScanRangeQuery(DistanceQuery<O,D> distanceQuery)
O
- Object typeD
- Distance typedistanceQuery
- distance query