O
- Object typepublic class DeLiCluTreeIndex<O extends NumberVector<?>> extends DeLiCluTree implements KNNIndex<O>, RangeIndex<O>
Modifier and Type | Field and Description |
---|---|
private static Logging |
LOG
The appropriate logger for this index.
|
private Relation<O> |
relation
The relation we index.
|
bulkSplitter, distanceCalcs, EXTRA_INTEGRITY_CHECKS, height, insertionStrategy, nodeSplitter, overflowTreatment, relativeMinFill
dirCapacity, dirMinimum, initialized, leafCapacity, leafMinimum
Constructor and Description |
---|
DeLiCluTreeIndex(Relation<O> relation,
PageFile<DeLiCluNode> pagefile)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected DeLiCluLeafEntry |
createNewLeafEntry(DBID id)
Creates a new leaf entry representing the specified data object.
|
boolean |
delete(DBIDRef id)
Deletes the specified object from this index.
|
void |
deleteAll(DBIDs ids)
Deletes the specified objects from this index.
|
<D extends Distance<D>> |
getKNNQuery(DistanceQuery<O,D> distanceQuery,
Object... hints)
Get a KNN query object for the given distance query and k.
|
protected Logging |
getLogger()
Get the (STATIC) logger for this class.
|
String |
getLongName()
A "pretty" name for the result, for use in titles, captions and menus.
|
<D extends Distance<D>> |
getRangeQuery(DistanceQuery<O,D> distanceQuery,
Object... hints)
Get a range 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 real vector object into this index.
|
void |
insertAll(DBIDs ids)
Inserts the specified objects into this index.
|
List<TreeIndexPathComponent<DeLiCluEntry>> |
setHandled(DBID id,
O obj)
Marks the specified object as handled and returns the path of node ids from
the root to the objects's parent.
|
createNewDirectoryEntry, createNewDirectoryNode, createNewLeafNode, createRootEntry, getExpanded, getExpanded, numNodes, setExpanded
bulkLoad, computeHeight, createEmptyRoot, hasOverflow, hasUnderflow
adjustTree, canBulkLoad, choosePath, containedTest, createBulkLeafNodes, createNewRoot, deletePath, doExtraIntegrityChecks, findPathToObject, getHeight, getLeaves, initializeCapacities, initializeFromFile, insertDirectoryEntry, insertLeaf, insertLeafEntry, reInsert, setBulkStrategy, setHeight, setInsertionStrategy, setMinimumFill, setNodeSplitStrategy, setOverflowTreatment, toString
createHeader, deleteNode, getFile, getNode, getNode, getPageFileStatistics, getPageID, getPageSize, getRoot, getRootEntry, getRootID, getRootPath, initialize, initialize, isRoot, postDelete, preInsert, writeNode
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getPageFileStatistics
private Relation<O extends NumberVector<?>> relation
private static final Logging LOG
public DeLiCluTreeIndex(Relation<O> relation, PageFile<DeLiCluNode> pagefile)
relation
- Relation to indexpagefile
- Page fileprotected DeLiCluLeafEntry createNewLeafEntry(DBID id)
id
- Object idpublic List<TreeIndexPathComponent<DeLiCluEntry>> setHandled(DBID id, O obj)
id
- the objects id to be marked as handledobj
- the object to be marked as handledpublic final void insert(DBIDRef id)
public final void insertAll(DBIDs ids)
public final boolean delete(DBIDRef id)
public void deleteAll(DBIDs ids)
Index
public <D extends Distance<D>> RangeQuery<O,D> getRangeQuery(DistanceQuery<O,D> distanceQuery, Object... hints)
RangeIndex
getRangeQuery
in interface RangeIndex<O extends NumberVector<?>>
D
- Distance typedistanceQuery
- Distance queryhints
- Hints for the optimizernull
public <D extends Distance<D>> KNNQuery<O,D> getKNNQuery(DistanceQuery<O,D> distanceQuery, Object... hints)
KNNIndex
getKNNQuery
in interface KNNIndex<O extends NumberVector<?>>
D
- Distance typedistanceQuery
- Distance queryhints
- Hints for the optimizernull
public String getLongName()
Result
getLongName
in interface Result
public String getShortName()
Result
getShortName
in interface Result
protected Logging getLogger()
IndexTree
getLogger
in class DeLiCluTree