
O - Object typeD - Distance typepublic class MkCoPTreeIndex<O,D extends NumberDistance<D,?>> extends MkCoPTree<O,D> implements RangeIndex<O>, KNNIndex<O>, RKNNIndex<O>
| Modifier and Type | Field and Description |
|---|---|
private Relation<O> |
relation
Relation indexed
|
k_maxknnqdistanceFunction, distanceQuery, EXTRA_INTEGRITY_CHECKSdirCapacity, dirMinimum, initialized, leafCapacity, leafMinimum| Constructor and Description |
|---|
MkCoPTreeIndex(Relation<O> relation,
PageFile<MkCoPTreeNode<O,D>> pageFile,
DistanceQuery<O,D> distanceQuery,
DistanceFunction<O,D> distanceFunction,
int k_max)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected MkCoPEntry<D> |
createNewLeafEntry(DBID id,
O object,
D parentDistance)
Creates a new leaf entry representing the specified data object in the
specified subtree.
|
boolean |
delete(DBIDRef id)
Throws an UnsupportedOperationException since deletion of objects is not
yet supported by an M-Tree.
|
void |
deleteAll(DBIDs ids)
Throws an UnsupportedOperationException since deletion of objects is not
yet supported by an M-Tree.
|
<S extends Distance<S>> |
getKNNQuery(DistanceQuery<O,S> distanceQuery,
Object... hints)
Get a KNN query object for the given distance query and k.
|
String |
getLongName()
A "pretty" name for the result, for use in titles, captions and menus.
|
<S extends Distance<S>> |
getRangeQuery(DistanceQuery<O,S> distanceQuery,
Object... hints)
Get a range query object for the given distance query and k.
|
<S extends Distance<S>> |
getRKNNQuery(DistanceQuery<O,S> distanceQuery,
Object... hints)
Get a KNN query object for the given distance query and k.
|
String |
getShortName()
A short name for the result, useful for file names.
|
void |
insert(DBIDRef id)
Inserts the specified object into this index.
|
void |
insertAll(DBIDs ids)
Inserts the specified objects into this index.
|
clearRkNNStatistics, createNewDirectoryEntry, createNewDirectoryNode, createNewLeafNode, createRootEntry, getK_max, getLogger, getRkNNStatistics, initializeCapacities, insert, insertAll, preInsert, reverseKNNQuerybatchNNcreateEmptyRoot, distance, getDistanceFactory, getDistanceFunction, getDistanceQuery, getHeight, getLeaves, getSortedEntries, getSortedEntries, toStringcreateHeader, deleteNode, getFile, getNode, getNode, getPageFileStatistics, getPageID, getPageSize, getRoot, getRootEntry, getRootID, getRootPath, initialize, initialize, initializeFromFile, isRoot, postDelete, writeNodeclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetPageFileStatisticspublic MkCoPTreeIndex(Relation<O> relation, PageFile<MkCoPTreeNode<O,D>> pageFile, DistanceQuery<O,D> distanceQuery, DistanceFunction<O,D> distanceFunction, int k_max)
relation - Relation to index.pageFile - Page filedistanceQuery - Distance querydistanceFunction - Distance functionk_max - Maximum value of k supportedprotected MkCoPEntry<D> createNewLeafEntry(DBID id, O object, D parentDistance)
object - the data object to be represented by the new entryparentDistance - the distance from the object to the routing object of
the parent nodepublic void insert(DBIDRef id)
Indexpublic void insertAll(DBIDs ids)
Indexpublic final boolean delete(DBIDRef id)
delete in interface Indexid - Object to removeUnsupportedOperationException - thrown, since deletions aren't
implemented yet.public void deleteAll(DBIDs ids)
deleteAll in interface Indexids - Objects to removeUnsupportedOperationException - thrown, since deletions aren't
implemented yet.public <S extends Distance<S>> KNNQuery<O,S> getKNNQuery(DistanceQuery<O,S> distanceQuery, Object... hints)
KNNIndexgetKNNQuery in interface KNNIndex<O>S - Distance typedistanceQuery - Distance queryhints - Hints for the optimizernullpublic <S extends Distance<S>> RangeQuery<O,S> getRangeQuery(DistanceQuery<O,S> distanceQuery, Object... hints)
RangeIndexgetRangeQuery in interface RangeIndex<O>S - Distance typedistanceQuery - Distance queryhints - Hints for the optimizernullpublic <S extends Distance<S>> RKNNQuery<O,S> getRKNNQuery(DistanceQuery<O,S> distanceQuery, Object... hints)
RKNNIndexgetRKNNQuery in interface RKNNIndex<O>S - Distance typedistanceQuery - Distance queryhints - Hints for the optimizernullpublic String getLongName()
ResultgetLongName in interface Resultpublic String getShortName()
ResultgetShortName in interface Result