O
- Object typepublic class RStarTreeIndex<O extends NumberVector> extends RStarTree 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
Relation
|
EXTRA_INTEGRITY_CHECKS, height, settings, statistics
dirCapacity, dirMinimum, initialized, leafCapacity, leafMinimum
Constructor and Description |
---|
RStarTreeIndex(Relation<O> relation,
PageFile<RStarTreeNode> pagefile,
RTreeSettings settings)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected SpatialPointLeafEntry |
createNewLeafEntry(DBIDRef id)
Create a new 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 reel vector object into this index.
|
void |
insertAll(DBIDs ids)
Inserts the specified objects into this index.
|
createNewDirectoryEntry, createNewDirectoryNode, createNewLeafNode, createRootEntry
bulkLoad, computeHeight, createEmptyRoot, hasOverflow, hasUnderflow
adjustTree, canBulkLoad, choosePath, containedTest, createBulkLeafNodes, createNewRoot, deletePath, doExtraIntegrityChecks, findPathToObject, getHeight, getLeaves, initializeCapacities, initializeFromFile, insertDirectoryEntry, insertLeaf, insertLeafEntry, logStatistics, reInsert, setHeight, toString
createHeader, deleteNode, getDirMinimum, getFile, getLeafMinimum, getNode, getNode, getPageID, getPageSize, getRoot, getRootEntry, getRootID, getRootPath, initialize, isRoot, postDelete, preInsert, writeNode
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
logStatistics
private static final Logging LOG
private Relation<O extends NumberVector> relation
public RStarTreeIndex(Relation<O> relation, PageFile<RStarTreeNode> pagefile, RTreeSettings settings)
relation
- Relation to indexpagefile
- Page filesettings
- Tree settingsprotected SpatialPointLeafEntry createNewLeafEntry(DBIDRef id)
id
- Object idpublic void initialize()
IndexTree
initialize
in interface Index
initialize
in class IndexTree<RStarTreeNode,SpatialEntry>
public void insert(DBIDRef id)
insert
in interface DynamicIndex
id
- the object id that was insertedpublic void insertAll(DBIDs ids)
insertAll
in interface DynamicIndex
ids
- the objects to be insertedpublic boolean delete(DBIDRef id)
delete
in interface DynamicIndex
id
- Object to removepublic void deleteAll(DBIDs ids)
DynamicIndex
deleteAll
in interface DynamicIndex
ids
- Objects to removepublic RangeQuery<O> getRangeQuery(DistanceQuery<O> distanceQuery, java.lang.Object... hints)
RangeIndex
getRangeQuery
in interface RangeIndex<O extends NumberVector>
distanceQuery
- Distance queryhints
- Hints for the optimizernull
public KNNQuery<O> getKNNQuery(DistanceQuery<O> distanceQuery, java.lang.Object... hints)
KNNIndex
getKNNQuery
in interface KNNIndex<O extends NumberVector>
distanceQuery
- Distance queryhints
- Hints for the optimizernull
public java.lang.String getLongName()
Result
getLongName
in interface Result
public java.lang.String getShortName()
Result
getShortName
in interface Result
Copyright © 2019 ELKI Development Team. License information.