
public class InMemoryLSHIndex.Instance extends AbstractRefiningIndex<V> implements KNNIndex<V>, RangeIndex<V>
| Modifier and Type | Class and Description |
|---|---|
protected class |
InMemoryLSHIndex.Instance.LSHKNNQuery
Class for handling kNN queries against the LSH index.
|
protected class |
InMemoryLSHIndex.Instance.LSHRangeQuery
Class for handling kNN queries against the LSH index.
|
AbstractRefiningIndex.AbstractKNNQuery, AbstractRefiningIndex.AbstractRangeQuery| Modifier and Type | Field and Description |
|---|---|
(package private) ArrayList<? extends LocalitySensitiveHashFunction<? super V>> |
hashfunctions
Hash functions to use.
|
(package private) ArrayList<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 |
|---|---|
KNNQuery<V> |
getKNNQuery(DistanceQuery<V> 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.
|
RangeQuery<V> |
getRangeQuery(DistanceQuery<V> 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
ArrayList<TIntObjectMap<DBIDs>> hashtables
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 KNNQuery<V> getKNNQuery(DistanceQuery<V> distanceQuery, Object... hints)
KNNIndexgetKNNQuery in interface KNNIndex<V>distanceQuery - Distance queryhints - Hints for the optimizernullpublic RangeQuery<V> getRangeQuery(DistanceQuery<V> distanceQuery, Object... hints)
RangeIndexgetRangeQuery in interface RangeIndex<V>distanceQuery - Distance queryhints - Hints for the optimizernullCopyright © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.