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() |
boolean |
validateEmpty() |
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.AutoCloseable
public boolean validateEmpty()
Copyright © 2009- The Apache Software Foundation