O - Object typepublic class FlatRStarTreeIndex<O extends NumberVector> extends FlatRStarTree implements RangeIndex<O>, KNNIndex<O>, DynamicIndex
AbstractRStarTree.Statistics| Modifier and Type | Field and Description |
|---|---|
private static Logging |
LOG
The appropriate logger for this index.
|
private Relation<O> |
relation
The relation we index
|
EXTRA_INTEGRITY_CHECKS, height, settings, statisticsdirCapacity, dirMinimum, initialized, leafCapacity, leafMinimum| Constructor and Description |
|---|
FlatRStarTreeIndex(Relation<O> relation,
PageFile<FlatRStarTreeNode> pagefile,
RTreeSettings settings)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected SpatialEntry |
createNewLeafEntry(DBID id)
Wrap a vector as spatial point leaf entry.
|
boolean |
delete(DBIDRef id)
Deletes the specified object from this index.
|
void |
deleteAll(DBIDs ids)
Deletes the specified objects from this index.
|
KNNQuery<O> |
getKNNQuery(DistanceQuery<O> distanceQuery,
java.lang.Object... hints)
Get a KNN query object for the given distance query and k.
|
protected Logging |
getLogger()
Get the (STATIC) logger for this class.
|
java.lang.String |
getLongName()
A "pretty" name for the result, for use in titles, captions and menus.
|
RangeQuery<O> |
getRangeQuery(DistanceQuery<O> distanceQuery,
java.lang.Object... hints)
Get a range query object for the given distance query and k.
|
java.lang.String |
getShortName()
A short name for the result, useful for file names.
|
void |
initialize()
Initialize the tree if the page file already existed.
|
void |
insert(DBIDRef id)
Inserts the specified real vector object into this index.
|
void |
insertAll(DBIDs ids)
Inserts the specified objects into this index.
|
bulkLoad, computeHeight, createEmptyRoot, createNewDirectoryEntry, createNewDirectoryNode, createNewLeafNode, createRootEntry, getRoot, hasOverflow, hasUnderflow, initializeFromFileadjustTree, canBulkLoad, choosePath, containedTest, createBulkLeafNodes, createNewRoot, deletePath, doExtraIntegrityChecks, findPathToObject, getHeight, getLeaves, initializeCapacities, insertDirectoryEntry, insertLeaf, insertLeafEntry, logStatistics, reInsert, setHeight, toStringcreateHeader, deleteNode, getDirMinimum, getFile, getLeafMinimum, getNode, getNode, getPageID, getPageSize, getRootEntry, getRootID, getRootPath, initialize, isRoot, postDelete, preInsert, writeNodeclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitlogStatisticsprivate Relation<O extends NumberVector> relation
private static final Logging LOG
public FlatRStarTreeIndex(Relation<O> relation, PageFile<FlatRStarTreeNode> pagefile, RTreeSettings settings)
relation - Relation to indexpagefile - Page filesettings - Tree settingsprotected SpatialEntry createNewLeafEntry(DBID id)
id - Object DBIDpublic void initialize()
IndexTreeinitialize in interface Indexinitialize in class IndexTree<FlatRStarTreeNode,SpatialEntry>public final void insert(DBIDRef id)
insert in interface DynamicIndexid - the object id that was insertedpublic final void insertAll(DBIDs ids)
insertAll in interface DynamicIndexids - the objects to be insertedpublic final boolean delete(DBIDRef id)
delete in interface DynamicIndexid - Object to removepublic void deleteAll(DBIDs ids)
DynamicIndexdeleteAll in interface DynamicIndexids - Objects to removepublic RangeQuery<O> getRangeQuery(DistanceQuery<O> distanceQuery, java.lang.Object... hints)
RangeIndexgetRangeQuery in interface RangeIndex<O extends NumberVector>distanceQuery - Distance queryhints - Hints for the optimizernullpublic KNNQuery<O> getKNNQuery(DistanceQuery<O> distanceQuery, java.lang.Object... hints)
KNNIndexgetKNNQuery in interface KNNIndex<O extends NumberVector>distanceQuery - Distance queryhints - Hints for the optimizernullpublic java.lang.String getLongName()
ResultgetLongName in interface Resultpublic java.lang.String getShortName()
ResultgetShortName in interface Resultprotected Logging getLogger()
IndexTreegetLogger in class FlatRStarTreeCopyright © 2019 ELKI Development Team. License information.