de.lmu.ifi.dbs.elki.index.tree.metrical.mtreevariants.mtree
Class MTreeFactory<O,D extends Distance<D>>
java.lang.Object
de.lmu.ifi.dbs.elki.index.tree.TreeIndexFactory<O,I>
de.lmu.ifi.dbs.elki.index.tree.metrical.mtreevariants.AbstractMTreeFactory<O,D,MTreeNode<O,D>,MTreeEntry<D>,MTreeIndex<O,D>>
de.lmu.ifi.dbs.elki.index.tree.metrical.mtreevariants.mtree.MTreeFactory<O,D>
- Type Parameters:
O
- Object typeD
- Distance type
- All Implemented Interfaces:
- IndexFactory<O,MTreeIndex<O,D>>, InspectionUtilFrequentlyScanned, Parameterizable
public class MTreeFactory<O,D extends Distance<D>>
- extends AbstractMTreeFactory<O,D,MTreeNode<O,D>,MTreeEntry<D>,MTreeIndex<O,D>>
Factory for a M-Tree
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MTreeFactory
public MTreeFactory(String fileName,
int pageSize,
long cacheSize,
DistanceFunction<O,D> distanceFunction)
- Constructor.
- Parameters:
fileName
- file namepageSize
- page sizecacheSize
- cache sizedistanceFunction
- Distance function
instantiate
public MTreeIndex<O,D> instantiate(Relation<O> relation)
- Description copied from interface:
IndexFactory
- Sets the database in the distance function of this index (if existing).
- Specified by:
instantiate
in interface IndexFactory<O,MTreeIndex<O,D extends Distance<D>>>
- Specified by:
instantiate
in class TreeIndexFactory<O,MTreeIndex<O,D extends Distance<D>>>
- Parameters:
relation
- the relation to index
getNodeClass
protected Class<MTreeNode<O,D>> getNodeClass()