O
- Object typeD
- Distance typepublic class MkTabTreeFactory<O,D extends Distance<D>> extends AbstractMkTreeUnifiedFactory<O,D,MkTabTreeNode<O,D>,MkTabEntry<D>,MkTabTreeIndex<O,D>>
Modifier and Type | Class and Description |
---|---|
static class |
MkTabTreeFactory.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 |
---|
MkTabTreeFactory(String fileName,
int pageSize,
long cacheSize,
DistanceFunction<O,D> distanceFunction,
int k_max)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected Class<MkTabTreeNode<O,D>> |
getNodeClass() |
MkTabTreeIndex<O,D> |
instantiate(Relation<O> relation)
Sets the database in the distance function of this index (if existing).
|
getInputTypeRestriction
makePageFile
public MkTabTreeFactory(String fileName, int pageSize, long cacheSize, DistanceFunction<O,D> distanceFunction, int k_max)
fileName
- pageSize
- cacheSize
- distanceFunction
- k_max
- public MkTabTreeIndex<O,D> instantiate(Relation<O> relation)
IndexFactory
instantiate
in interface IndexFactory<O,MkTabTreeIndex<O,D extends Distance<D>>>
instantiate
in class TreeIndexFactory<O,MkTabTreeIndex<O,D extends Distance<D>>>
relation
- the relation to indexprotected Class<MkTabTreeNode<O,D>> getNodeClass()