
V - Vector typepublic static class VAFile.Factory<V extends NumberVector<?>> extends Object implements IndexFactory<V,VAFile<V>>
| Modifier and Type | Class and Description | 
|---|---|
static class  | 
VAFile.Factory.Parameterizer
Parameterization class. 
 | 
| Modifier and Type | Field and Description | 
|---|---|
(package private) int | 
numpart
Number of partitions. 
 | 
(package private) int | 
pagesize
Page size. 
 | 
static OptionID | 
PARTITIONS_ID
Number of partitions to use in each dimension. 
 | 
| Constructor and Description | 
|---|
VAFile.Factory(int pagesize,
              int numpart)
Constructor. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
TypeInformation | 
getInputTypeRestriction()
Get the input type restriction used for negotiating the data query. 
 | 
VAFile<V> | 
instantiate(Relation<V> relation)
Sets the database in the distance function of this index (if existing). 
 | 
public static final OptionID PARTITIONS_ID
-vafile.partitions 8
int pagesize
int numpart
public VAFile.Factory(int pagesize,
              int numpart)
pagesize - Page sizenumpart - Number of partitionspublic VAFile<V> instantiate(Relation<V> relation)
IndexFactoryinstantiate in interface IndexFactory<V extends NumberVector<?>,VAFile<V extends NumberVector<?>>>relation - the relation to indexpublic TypeInformation getInputTypeRestriction()
IndexFactorygetInputTypeRestriction in interface IndexFactory<V extends NumberVector<?>,VAFile<V extends NumberVector<?>>>