|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.lmu.ifi.dbs.elki.database.QueryUtil
public final class QueryUtil
Static class with utilities related to querying a database.
Constructor Summary | |
---|---|
QueryUtil()
|
Method Summary | ||
---|---|---|
static
|
getDistanceQuery(Database database,
DistanceFunction<? super O,D> distanceFunction,
Object... hints)
Get a distance query for a given distance function, automatically choosing a relation. |
|
static
|
getKNNQuery(Database database,
DistanceFunction<? super O,D> distanceFunction,
Object... hints)
Get a KNN query object for the given distance function. |
|
static
|
getKNNQuery(Relation<O> relation,
DistanceFunction<? super O,D> distanceFunction,
Object... hints)
Get a KNN query object for the given distance function. |
|
static
|
getLinearScanKNNQuery(DistanceQuery<O,D> distanceQuery)
Get a linear scan query for the given distance query. |
|
static
|
getLinearScanRangeQuery(DistanceQuery<O,D> distanceQuery)
Get a linear scan query for the given distance query. |
|
static
|
getRangeQuery(Database database,
DistanceFunction<? super O,D> distanceFunction,
Object... hints)
Get a range query object for the given distance function. |
|
static
|
getRangeQuery(Relation<O> relation,
DistanceFunction<? super O,D> distanceFunction,
Object... hints)
Get a range query object for the given distance function. |
|
static
|
getRKNNQuery(Relation<O> relation,
DistanceFunction<? super O,D> distanceFunction,
Object... hints)
Get a rKNN query object for the given distance function. |
|
static
|
getSimilarityQuery(Database database,
SimilarityFunction<? super O,D> similarityFunction,
Object... hints)
Get a similarity query, automatically choosing a relation. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public QueryUtil()
Method Detail |
---|
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 hints
public 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 hints
public static <O,D extends Distance<D>> KNNQuery<O,D> getKNNQuery(Database database, DistanceFunction<? super O,D> distanceFunction, Object... hints)
DatabaseQuery.HINT_BULK
bulk
query needed
O
- Object typeD
- Distance typedatabase
- DatabasedistanceFunction
- Distance functionhints
- Optimizer hints
public 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 needed
O
- Object typeD
- Distance typerelation
- Relation useddistanceFunction
- Distance functionhints
- Optimizer hints
public static <O,D extends Distance<D>> RangeQuery<O,D> getRangeQuery(Database database, DistanceFunction<? super O,D> distanceFunction, Object... hints)
DatabaseQuery.HINT_BULK
bulk
query needed
O
- Object typeD
- Distance typedatabase
- DatabasedistanceFunction
- Distance functionhints
- Optimizer hints
public 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 needed
O
- Object typeD
- Distance typerelation
- Relation useddistanceFunction
- Distance functionhints
- Optimizer hints
public 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 needed
O
- Object typeD
- Distance typerelation
- Relation useddistanceFunction
- Distance functionhints
- Optimizer hints
public static <O,D extends Distance<D>> KNNQuery<O,D> getLinearScanKNNQuery(DistanceQuery<O,D> distanceQuery)
O
- Object typeD
- Distance typedistanceQuery
- distance query
public static <O,D extends Distance<D>> RangeQuery<O,D> getLinearScanRangeQuery(DistanceQuery<O,D> distanceQuery)
O
- Object typeD
- Distance typedistanceQuery
- distance query
|
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |