
public class InMemoryLSHIndex.Instance extends AbstractRefiningIndex<V> implements KNNIndex<V>, RangeIndex<V>
| Modifier and Type | Class and Description |
|---|---|
protected class |
InMemoryLSHIndex.Instance.LSHKNNQuery<D extends Distance<D>>
Class for handling kNN queries against the LSH index.
|
protected class |
InMemoryLSHIndex.Instance.LSHRangeQuery<D extends Distance<D>>
Class for handling kNN queries against the LSH index.
|
AbstractRefiningIndex.AbstractKNNQuery<D extends Distance<D>>, AbstractRefiningIndex.AbstractRangeQuery<D extends Distance<D>>| Modifier and Type | Field and Description |
|---|---|
(package private) ArrayList<? extends LocalitySensitiveHashFunction<? super V>> |
hashfunctions
Hash functions to use.
|
(package private) ArrayList<gnu.trove.map.TIntObjectMap<DBIDs>> |
hashtables
The actual table
|
private int |
numberOfBuckets
Number of buckets to use.
|
relation| Constructor and Description |
|---|
InMemoryLSHIndex.Instance(Relation<V> relation,
ArrayList<? extends LocalitySensitiveHashFunction<? super V>> hashfunctions,
int numberOfBuckets)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
<D extends Distance<D>> |
getKNNQuery(DistanceQuery<V,D> distanceQuery,
Object... hints)
Get a KNN query object for the given distance query and k.
|
Logging |
getLogger()
Get the class logger.
|
String |
getLongName()
A "pretty" name for the result, for use in titles, captions and menus.
|
<D extends Distance<D>> |
getRangeQuery(DistanceQuery<V,D> distanceQuery,
Object... hints)
Get a range query object for the given distance query and k.
|
String |
getShortName()
A short name for the result, useful for file names.
|
void |
initialize()
Initialize the index.
|
countRefinements, logStatistics, refineclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitlogStatisticsArrayList<? extends LocalitySensitiveHashFunction<? super V>> hashfunctions
private int numberOfBuckets
public InMemoryLSHIndex.Instance(Relation<V> relation, ArrayList<? extends LocalitySensitiveHashFunction<? super V>> hashfunctions, int numberOfBuckets)
relation - Relation to index.hashfunctions - Hash functions.public String getLongName()
ResultgetLongName in interface ResultgetLongName in class AbstractIndex<V>public String getShortName()
ResultgetShortName in interface ResultgetShortName in class AbstractIndex<V>public void initialize()
Indexinitialize in interface Indexpublic Logging getLogger()
AbstractRefiningIndexgetLogger in class AbstractRefiningIndex<V>public <D extends Distance<D>> KNNQuery<V,D> getKNNQuery(DistanceQuery<V,D> distanceQuery, Object... hints)
KNNIndexgetKNNQuery in interface KNNIndex<V>D - Distance typedistanceQuery - Distance queryhints - Hints for the optimizernullpublic <D extends Distance<D>> RangeQuery<V,D> getRangeQuery(DistanceQuery<V,D> distanceQuery, Object... hints)
RangeIndexgetRangeQuery in interface RangeIndex<V>D - Distance typedistanceQuery - Distance queryhints - Hints for the optimizernull