
V - Object type to indexpublic class InMemoryLSHIndex<V> extends Object implements IndexFactory<V,InMemoryLSHIndex.Instance>
| Modifier and Type | Class and Description | 
|---|---|
class  | 
InMemoryLSHIndex.Instance
Instance of a LSH index for a single relation. 
 | 
static class  | 
InMemoryLSHIndex.Parameterizer<V>
Parameterization class. 
 | 
| Modifier and Type | Field and Description | 
|---|---|
(package private) LocalitySensitiveHashFunctionFamily<? super V> | 
family
LSH hash function family to use. 
 | 
(package private) int | 
l
Number of hash functions for each table. 
 | 
private static Logging | 
LOG
Class logger 
 | 
(package private) int | 
numberOfBuckets
Number of buckets to use. 
 | 
| Constructor and Description | 
|---|
InMemoryLSHIndex(LocalitySensitiveHashFunctionFamily<? super V> family,
                int l,
                int numberOfBuckets)
Constructor. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
TypeInformation | 
getInputTypeRestriction()
Get the input type restriction used for negotiating the data query. 
 | 
InMemoryLSHIndex.Instance | 
instantiate(Relation<V> relation)
Sets the database in the distance function of this index (if existing). 
 | 
private static final Logging LOG
LocalitySensitiveHashFunctionFamily<? super V> family
int l
int numberOfBuckets
public InMemoryLSHIndex(LocalitySensitiveHashFunctionFamily<? super V> family, int l, int numberOfBuckets)
family - Projection familyl - Number of hash tables to usenumberOfBuckets - Number of buckets to use.public InMemoryLSHIndex.Instance instantiate(Relation<V> relation)
IndexFactoryinstantiate in interface IndexFactory<V,InMemoryLSHIndex.Instance>relation - the relation to indexpublic TypeInformation getInputTypeRestriction()
IndexFactorygetInputTypeRestriction in interface IndexFactory<V,InMemoryLSHIndex.Instance>