|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.lmu.ifi.dbs.elki.index.tree.IndexTree<N,E> de.lmu.ifi.dbs.elki.index.tree.metrical.MetricalIndexTree<O,D,N,E> de.lmu.ifi.dbs.elki.index.tree.metrical.mtreevariants.AbstractMTree<O,D,N,E> de.lmu.ifi.dbs.elki.index.tree.metrical.mtreevariants.mktrees.AbstractMkTree<O,D,N,E> de.lmu.ifi.dbs.elki.index.tree.metrical.mtreevariants.mktrees.AbstractMkTreeUnified<O,D,MkTabTreeNode<O,D>,MkTabEntry<D>> de.lmu.ifi.dbs.elki.index.tree.metrical.mtreevariants.mktrees.mktab.MkTabTree<O,D> de.lmu.ifi.dbs.elki.index.tree.metrical.mtreevariants.mktrees.mktab.MkTabTreeIndex<O,D>
O
- Object typeD
- Distance typepublic class MkTabTreeIndex<O,D extends Distance<D>>
MkTabTree used as database index.
Field Summary | |
---|---|
private KNNQuery<O,D> |
knnQuery
The knn query we use internally. |
private Relation<O> |
relation
The relation indexed. |
Fields inherited from class de.lmu.ifi.dbs.elki.index.tree.metrical.mtreevariants.AbstractMTree |
---|
distanceFunction, distanceQuery, extraIntegrityChecks |
Fields inherited from class de.lmu.ifi.dbs.elki.index.tree.IndexTree |
---|
dirCapacity, dirMinimum, initialized, leafCapacity, leafMinimum |
Constructor Summary | |
---|---|
MkTabTreeIndex(Relation<O> relation,
PageFile<MkTabTreeNode<O,D>> pagefile,
DistanceQuery<O,D> distanceQuery,
DistanceFunction<O,D> distanceFunction,
int k_max)
Constructor. |
Method Summary | ||
---|---|---|
protected MkTabEntry<D> |
createNewLeafEntry(DBID id,
O object,
D parentDistance)
Creates a new leaf entry representing the specified data object in the specified subtree. |
|
boolean |
delete(DBID 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. |
|
|
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. |
|
|
getRangeQuery(DistanceQuery<O,S> distanceQuery,
Object... hints)
Get a range query object for the given distance query and k. |
|
|
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(DBID id)
Inserts the specified object into this index. |
|
void |
insertAll(DBIDs ids)
Inserts the specified objects into this index. |
|
private List<D> |
knnDistances(O object)
Returns the knn distance of the object with the specified id. |
Methods inherited from class de.lmu.ifi.dbs.elki.index.tree.metrical.mtreevariants.mktrees.mktab.MkTabTree |
---|
createNewDirectoryEntry, createNewDirectoryNode, createNewLeafNode, createRootEntry, getLogger, initializeCapacities, insert, kNNdistanceAdjustment, preInsert, reverseKNNQuery |
Methods inherited from class de.lmu.ifi.dbs.elki.index.tree.metrical.mtreevariants.mktrees.AbstractMkTreeUnified |
---|
createHeader, getKmax, insertAll |
Methods inherited from class de.lmu.ifi.dbs.elki.index.tree.metrical.mtreevariants.AbstractMTree |
---|
batchNN, createEmptyRoot, distance, distance, doKNNQuery, getDistanceFactory, getDistanceFunction, getDistanceQuery, getHeight, getLeaves, getSortedEntries, getSortedEntries, toString |
Methods inherited from class de.lmu.ifi.dbs.elki.index.tree.IndexTree |
---|
deleteNode, getFile, getNode, getNode, getPageFileStatistics, getPageID, getPageSize, getRoot, getRootEntry, getRootID, getRootPath, initialize, initialize, initializeFromFile, isRoot, postDelete, writeNode |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface de.lmu.ifi.dbs.elki.index.Index |
---|
getPageFileStatistics |
Field Detail |
---|
private final KNNQuery<O,D extends Distance<D>> knnQuery
private Relation<O> relation
Constructor Detail |
---|
public MkTabTreeIndex(Relation<O> relation, PageFile<MkTabTreeNode<O,D>> pagefile, DistanceQuery<O,D> distanceQuery, DistanceFunction<O,D> distanceFunction, int k_max)
relation
- Relation indexedpagefile
- Page filedistanceQuery
- Distance querydistanceFunction
- Distance functionk_max
- Maximum value for kMethod Detail |
---|
protected MkTabEntry<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 nodeprivate List<D> knnDistances(O object)
object
- the query object
public void insert(DBID id)
Index
insert
in interface Index
id
- the object to be insertedpublic void insertAll(DBIDs ids)
Index
insertAll
in interface Index
ids
- the objects to be insertedpublic final boolean delete(DBID id)
delete
in interface Index
id
- Object to remove
UnsupportedOperationException
- thrown, since deletions aren't
implemented yet.public void deleteAll(DBIDs ids)
deleteAll
in interface Index
ids
- Objects to remove
UnsupportedOperationException
- thrown, since deletions aren't
implemented yet.public <S extends Distance<S>> KNNQuery<O,S> getKNNQuery(DistanceQuery<O,S> distanceQuery, Object... hints)
KNNIndex
getKNNQuery
in interface KNNIndex<O>
S
- Distance typedistanceQuery
- Distance queryhints
- Hints for the optimizer
null
public <S extends Distance<S>> RangeQuery<O,S> getRangeQuery(DistanceQuery<O,S> distanceQuery, Object... hints)
RangeIndex
getRangeQuery
in interface RangeIndex<O>
S
- Distance typedistanceQuery
- Distance queryhints
- Hints for the optimizer
null
public <S extends Distance<S>> RKNNQuery<O,S> getRKNNQuery(DistanceQuery<O,S> distanceQuery, Object... hints)
RKNNIndex
getRKNNQuery
in interface RKNNIndex<O>
S
- Distance typedistanceQuery
- Distance queryhints
- Hints for the optimizer
null
public String getLongName()
Result
getLongName
in interface Result
public String getShortName()
Result
getShortName
in interface Result
|
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |