O
- Object typepublic class LngLatAsECEFIndex<O extends NumberVector<?>> extends ProjectedIndex<O,O>
LngLatDistanceFunction
, as it uses a projection that will map data
according to this great circle distance. If the query hint
DatabaseQuery.HINT_EXACT
is set, it will not be used.Modifier and Type | Class and Description |
---|---|
static class |
LngLatAsECEFIndex.Factory<O extends NumberVector<?>>
Index factory.
|
ProjectedIndex.ProjectedKNNQuery<D extends Distance<D>>, ProjectedIndex.ProjectedRangeQuery<D extends Distance<D>>, ProjectedIndex.ProjectedRKNNQuery<D extends Distance<D>>
inner, kmulti, norefine, proj, refinements, relation, view
Constructor and Description |
---|
LngLatAsECEFIndex(Relation<O> relation,
Projection<O,O> proj,
Relation<O> view,
Index inner,
boolean norefine)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
<D extends Distance<D>> |
getKNNQuery(DistanceQuery<O,D> distanceQuery,
Object... hints)
Get a KNN query object for the given distance query and k.
|
String |
getLongName()
A "pretty" name for the result, for use in titles, captions and menus.
|
<D extends Distance<D>> |
getRangeQuery(DistanceQuery<O,D> distanceQuery,
Object... hints)
Get a range query object for the given distance query and k.
|
<D extends Distance<D>> |
getRKNNQuery(DistanceQuery<O,D> distanceQuery,
Object... hints)
Get a KNN query object for the given distance query and k.
|
String |
getShortName()
A short name for the result, useful for file names.
|
initialize, logStatistics
public String getLongName()
Result
getLongName
in interface Result
getLongName
in class ProjectedIndex<O extends NumberVector<?>,O extends NumberVector<?>>
public String getShortName()
Result
getShortName
in interface Result
getShortName
in class ProjectedIndex<O extends NumberVector<?>,O extends NumberVector<?>>
public <D extends Distance<D>> KNNQuery<O,D> getKNNQuery(DistanceQuery<O,D> distanceQuery, Object... hints)
KNNIndex
getKNNQuery
in interface KNNIndex<O extends NumberVector<?>>
getKNNQuery
in class ProjectedIndex<O extends NumberVector<?>,O extends NumberVector<?>>
D
- Distance typedistanceQuery
- Distance queryhints
- Hints for the optimizernull
public <D extends Distance<D>> RangeQuery<O,D> getRangeQuery(DistanceQuery<O,D> distanceQuery, Object... hints)
RangeIndex
getRangeQuery
in interface RangeIndex<O extends NumberVector<?>>
getRangeQuery
in class ProjectedIndex<O extends NumberVector<?>,O extends NumberVector<?>>
D
- Distance typedistanceQuery
- Distance queryhints
- Hints for the optimizernull
public <D extends Distance<D>> RKNNQuery<O,D> getRKNNQuery(DistanceQuery<O,D> distanceQuery, Object... hints)
RKNNIndex
getRKNNQuery
in interface RKNNIndex<O extends NumberVector<?>>
getRKNNQuery
in class ProjectedIndex<O extends NumberVector<?>,O extends NumberVector<?>>
D
- Distance typedistanceQuery
- Distance queryhints
- Hints for the optimizernull