public static class BTree.FastBuilder<V>
extends java.lang.Object
implements java.lang.AutoCloseable
Constructs whole nodes in place, so that a flush of a complete node can take its buffer entirely. Since we build trees of a predictable shape (i.e. perfectly dense) we do not construct a size map.
| Modifier and Type | Method and Description |
|---|---|
void |
add(java.lang.Object[] from,
int offset,
int count) |
void |
add(V value) |
java.lang.Object[] |
build() |
java.lang.Object[] |
buildReverse() |
void |
close() |
public void add(V value)
public void add(java.lang.Object[] from,
int offset,
int count)
public java.lang.Object[] build()
public java.lang.Object[] buildReverse()
public void close()
close in interface java.lang.AutoCloseableCopyright © 2009-2022 The Apache Software Foundation