/** * Page ID of the root entry. * * @return page id */ public final int getRootID() { return getPageID(rootEntry); }
/** * Returns a string representation of this node. * * @return the type of this node (LeafNode or DirNode) followed by its id */ @Override public String toString() { return (isLeaf ? "LeafNode " : "DirNode ") + getPageID(); }
@Override public IndexTreePath<E> next() { synchronized(AbstractNode.this) { if(count < numEntries) { return new IndexTreePath<>(parentPath, getEntry(count), count++); } } throw new NoSuchElementException(); } };
/** * Returns {@link de.lmu.ifi.dbs.elki.index.tree.TreeIndexHeader#size()} * plus the value of {@link #SIZE}). */ @Override public int size() { return super.size() + SIZE; } }
/** * Returns the path to the root of this tree. * * @return the path to the root of this tree */ public final IndexTreePath<E> getRootPath() { return new IndexTreePath<>(null, rootEntry, -1); }
@Override public SpatialEntry get(AbstractNode<? extends SpatialEntry> array, int off) throws IndexOutOfBoundsException { return array.getEntry(off); } }
/** * Returns {@link de.lmu.ifi.dbs.elki.index.tree.TreeIndexHeader#size()} plus * the value of {@link #SIZE}). */ @Override public int size() { return super.size() + SIZE; } }
/** * Returns the path to the root of this tree. * * @return the path to the root of this tree */ public final IndexTreePath<E> getRootPath() { return new IndexTreePath<>(null, rootEntry, -1); }
/** * Page ID of the root entry. * * @return page id */ public final int getRootID() { return getPageID(rootEntry); }
/** * Returns a string representation of this node. * * @return the type of this node (LeafNode or DirNode) followed by its id */ @Override public String toString() { return (isLeaf ? "LeafNode " : "DirNode ") + getPageID(); }
/** * Returns {@link de.lmu.ifi.dbs.elki.index.tree.TreeIndexHeader#size()} plus * the value of {@link #SIZE}). */ @Override public int size() { return super.size() + SIZE; } }
/** * Returns the path to the root of this tree. * * @return the path to the root of this tree */ public final IndexTreePath<E> getRootPath() { return new IndexTreePath<>(null, rootEntry, -1); }
/** * Returns {@link de.lmu.ifi.dbs.elki.index.tree.TreeIndexHeader#size()} * plus the value of {@link #SIZE}). */ @Override public int size() { return super.size() + SIZE; } }
/** * Returns {@link de.lmu.ifi.dbs.elki.index.tree.TreeIndexHeader#size()} plus * the value of {@link #SIZE}). */ @Override public int size() { return super.size() + SIZE; } }
/** * Returns {@link de.lmu.ifi.dbs.elki.index.tree.TreeIndexHeader#size()} * plus the value of {@link #SIZE}). */ @Override public int size() { return super.size() + SIZE; } }