O
- Object typeD
- Distance typepublic class MkMaxTreeFactory<O,D extends Distance<D>> extends AbstractMkTreeUnifiedFactory<O,D,MkMaxTreeNode<O,D>,MkMaxEntry<D>,MkMaxTreeIndex<O,D>>
Modifier and Type | Class and Description |
---|---|
static class |
MkMaxTreeFactory.Parameterizer<O,D extends Distance<D>>
Parameterization class.
|
k_max, K_MAX_ID
DISTANCE_FUNCTION_ID, distanceFunction
CACHE_SIZE_ID, cacheSize, FILE_ID, fileName, PAGE_SIZE_ID, pageSize
Constructor and Description |
---|
MkMaxTreeFactory(String fileName,
int pageSize,
long cacheSize,
DistanceFunction<O,D> distanceFunction,
int k_max)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected Class<MkMaxTreeNode<O,D>> |
getNodeClass() |
MkMaxTreeIndex<O,D> |
instantiate(Relation<O> relation)
Sets the database in the distance function of this index (if existing).
|
getInputTypeRestriction
makePageFile
public MkMaxTreeFactory(String fileName, int pageSize, long cacheSize, DistanceFunction<O,D> distanceFunction, int k_max)
fileName
- pageSize
- cacheSize
- distanceFunction
- k_max
- public MkMaxTreeIndex<O,D> instantiate(Relation<O> relation)
IndexFactory
instantiate
in interface IndexFactory<O,MkMaxTreeIndex<O,D extends Distance<D>>>
instantiate
in class TreeIndexFactory<O,MkMaxTreeIndex<O,D extends Distance<D>>>
relation
- the relation to indexprotected Class<MkMaxTreeNode<O,D>> getNodeClass()