O
- Object typeD
- Distance typepublic class MTreeFactory<O,D extends Distance<D>> extends AbstractMTreeFactory<O,D,MTreeNode<O,D>,MTreeEntry<D>,MTreeIndex<O,D>>
Modifier and Type | Class and Description |
---|---|
static class |
MTreeFactory.Parameterizer<O,D extends Distance<D>>
Parameterization class.
|
DISTANCE_FUNCTION_ID, distanceFunction
CACHE_SIZE_ID, cacheSize, FILE_ID, fileName, PAGE_SIZE_ID, pageSize
Constructor and Description |
---|
MTreeFactory(String fileName,
int pageSize,
long cacheSize,
DistanceFunction<O,D> distanceFunction)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected Class<MTreeNode<O,D>> |
getNodeClass() |
MTreeIndex<O,D> |
instantiate(Relation<O> relation)
Sets the database in the distance function of this index (if existing).
|
getInputTypeRestriction
makePageFile
public MTreeFactory(String fileName, int pageSize, long cacheSize, DistanceFunction<O,D> distanceFunction)
fileName
- file namepageSize
- page sizecacheSize
- cache sizedistanceFunction
- Distance functionpublic MTreeIndex<O,D> instantiate(Relation<O> relation)
IndexFactory
instantiate
in interface IndexFactory<O,MTreeIndex<O,D extends Distance<D>>>
instantiate
in class TreeIndexFactory<O,MTreeIndex<O,D extends Distance<D>>>
relation
- the relation to index