use of de.lmu.ifi.dbs.elki.index.tree.spatial.SpatialDirectoryEntry in project elki by elki-project.
the class FlatRStarTree method createEmptyRoot.
@Override
protected void createEmptyRoot(SpatialEntry exampleLeaf) {
root = createNewDirectoryNode();
root.setPageID(getRootID());
getFile().setNextPageID(getRootID() + 1);
FlatRStarTreeNode leaf = createNewLeafNode();
writeNode(leaf);
ModifiableHyperBoundingBox mbr = new ModifiableHyperBoundingBox(new double[exampleLeaf.getDimensionality()], new double[exampleLeaf.getDimensionality()]);
root.addDirectoryEntry(new SpatialDirectoryEntry(leaf.getPageID(), mbr));
setHeight(2);
}
Aggregations