|
|
|||||||||||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||||||||||
java.lang.Objectde.lmu.ifi.dbs.elki.logging.AbstractLoggable
de.lmu.ifi.dbs.elki.index.tree.TreeIndex<O,N,E>
de.lmu.ifi.dbs.elki.index.tree.spatial.SpatialIndex<O,N,E>
de.lmu.ifi.dbs.elki.index.tree.spatial.rstarvariants.AbstractRStarTree<O,N,E>
de.lmu.ifi.dbs.elki.index.tree.spatial.rstarvariants.NonFlatRStarTree<O,DeLiCluNode,DeLiCluEntry>
de.lmu.ifi.dbs.elki.index.tree.spatial.rstarvariants.deliclu.DeLiCluTree<O>
O - object typepublic class DeLiCluTree<O extends NumberVector<O,?>>
DeLiCluTree is a spatial index structure based on an R-TRee. DeLiCluTree is designed for the DeLiClu algorithm, having in each node a boolean array which indicates whether the child nodes are already handled by the DeLiClu algorithm.
| Field Summary | |
|---|---|
private HashMap<Integer,HashSet<Integer>> |
expanded
Holds the ids of the expanded nodes. |
| Fields inherited from class de.lmu.ifi.dbs.elki.index.tree.spatial.rstarvariants.AbstractRStarTree |
|---|
distanceCalcs, extraIntegrityChecks, height, reinsertions |
| Fields inherited from class de.lmu.ifi.dbs.elki.index.tree.spatial.SpatialIndex |
|---|
bulk, BULK_LOAD_ID, BULK_LOAD_STRATEGY_ID, bulkLoadStrategy |
| Fields inherited from class de.lmu.ifi.dbs.elki.index.tree.TreeIndex |
|---|
CACHE_SIZE_ID, cacheSize, dirCapacity, dirMinimum, file, FILE_ID, initialized, leafCapacity, leafMinimum, PAGE_SIZE_ID, pageSize |
| Fields inherited from class de.lmu.ifi.dbs.elki.logging.AbstractLoggable |
|---|
debug, logger |
| Constructor Summary | |
|---|---|
DeLiCluTree(Parameterization config)
Constructor, adhering to Parameterizable |
|
| Method Summary | |
|---|---|
protected DeLiCluEntry |
createNewDirectoryEntry(DeLiCluNode node)
Creates a new directory entry representing the specified node. |
protected DeLiCluNode |
createNewDirectoryNode(int capacity)
Creates a new directory node with the specified capacity. |
protected DeLiCluEntry |
createNewLeafEntry(O object)
Creates a new leaf entry representing the specified data object. |
protected DeLiCluNode |
createNewLeafNode(int capacity)
Creates a new leaf node with the specified capacity. |
protected DeLiCluEntry |
createRootEntry()
Creates an entry representing the root node. |
Set<Integer> |
getExpanded(DeLiCluNode entry)
Returns the nodes which are already expanded with the specified node. |
Set<Integer> |
getExpanded(SpatialEntry entry)
Returns the nodes which are already expanded with the specified node. |
protected Class<DeLiCluNode> |
getNodeClass()
Return the node base class. |
int |
numNodes()
Determines and returns the number of nodes in this index. |
protected void |
postDelete(O o)
Performs necessary operations after deleting the specified object. |
protected void |
preInsert(DeLiCluEntry entry)
Performs necessary operations before inserting the specified entry. |
void |
setExpanded(SpatialEntry entry1,
SpatialEntry entry2)
Marks the nodes with the specified ids as expanded. |
List<TreeIndexPathComponent<DeLiCluEntry>> |
setHandled(O o)
Marks the specified object as handled and returns the path of node ids from the root to the objects's parent. |
| Methods inherited from class de.lmu.ifi.dbs.elki.index.tree.spatial.rstarvariants.NonFlatRStarTree |
|---|
bulkLoad, computeHeight, createEmptyRoot, hasOverflow, hasUnderflow |
| Methods inherited from class de.lmu.ifi.dbs.elki.index.tree.spatial.rstarvariants.AbstractRStarTree |
|---|
adjustTree, batchNN, bulkKNNQueryForIDs, choosePath, clearReinsertions, containedTest, createLeafNodes, createNewRoot, delete, doKNNQuery, findPathToObject, getHeight, getLeaves, getSortedEntries, getSortedEntries, getValues, initializeCapacities, initializeFromFile, insert, insert, insertDirectoryEntry, insertLeafEntry, kNNQuery, rangeQuery, rangeQuery, reInsert, reverseKNNQuery, setHeight, toString, union |
| Methods inherited from class de.lmu.ifi.dbs.elki.index.tree.spatial.SpatialIndex |
|---|
setDatabase |
| Methods inherited from class de.lmu.ifi.dbs.elki.index.tree.TreeIndex |
|---|
close, createHeader, getFileName, getLogicalPageAccess, getNode, getNode, getPhysicalReadAccess, getPhysicalWriteAccess, getRoot, getRootEntry, getRootPath, initialize, resetPageAccess |
| Methods inherited from class de.lmu.ifi.dbs.elki.logging.AbstractLoggable |
|---|
debugFine, debugFiner, debugFinest, exception, progress, verbose, warning |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private HashMap<Integer,HashSet<Integer>> expanded
| Constructor Detail |
|---|
public DeLiCluTree(Parameterization config)
Parameterizable
config - Parameterization| Method Detail |
|---|
public List<TreeIndexPathComponent<DeLiCluEntry>> setHandled(O o)
o - the object to be marked as handled
public void setExpanded(SpatialEntry entry1,
SpatialEntry entry2)
entry1 - the first nodeentry2 - the second nodepublic Set<Integer> getExpanded(SpatialEntry entry)
entry - the id of the node for which the expansions should be returned
public Set<Integer> getExpanded(DeLiCluNode entry)
entry - the id of the node for which the expansions should be returned
public int numNodes()
protected DeLiCluNode createNewLeafNode(int capacity)
createNewLeafNode in class TreeIndex<O extends NumberVector<O,?>,DeLiCluNode,DeLiCluEntry>capacity - the capacity of the new node
protected DeLiCluNode createNewDirectoryNode(int capacity)
createNewDirectoryNode in class TreeIndex<O extends NumberVector<O,?>,DeLiCluNode,DeLiCluEntry>capacity - the capacity of the new node
protected DeLiCluEntry createNewLeafEntry(O object)
createNewLeafEntry in class AbstractRStarTree<O extends NumberVector<O,?>,DeLiCluNode,DeLiCluEntry>object - the data object to be represented by the new entry
protected DeLiCluEntry createNewDirectoryEntry(DeLiCluNode node)
createNewDirectoryEntry in class AbstractRStarTree<O extends NumberVector<O,?>,DeLiCluNode,DeLiCluEntry>node - the node to be represented by the new entry
protected DeLiCluEntry createRootEntry()
createRootEntry in class TreeIndex<O extends NumberVector<O,?>,DeLiCluNode,DeLiCluEntry>protected void preInsert(DeLiCluEntry entry)
preInsert in class TreeIndex<O extends NumberVector<O,?>,DeLiCluNode,DeLiCluEntry>entry - the entry to be insertedprotected void postDelete(O o)
postDelete in class TreeIndex<O extends NumberVector<O,?>,DeLiCluNode,DeLiCluEntry>o - the object to be deletedprotected Class<DeLiCluNode> getNodeClass()
getNodeClass in class TreeIndex<O extends NumberVector<O,?>,DeLiCluNode,DeLiCluEntry>
|
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||