public class BulkLoader<K,V> extends Object
| Modifier and Type | Method and Description |
|---|---|
static BTree<?,?> |
compact(BTree<?,?> btree)
Compact a given in-memory BTree, making it dense.
|
static void |
compact(RecordManager recordManager,
BTree<?,?> btree)
Compact a given persisted BTree, making it dense.
|
static <K,V> BTree<K,V> |
load(BTree<K,V> btree,
Iterator<Tuple<K,V>> iterator,
int chunkSize)
Bulk Load data into a persisted BTree
|
public static <K,V> BTree<K,V> load(BTree<K,V> btree, Iterator<Tuple<K,V>> iterator, int chunkSize) throws IOException
btree - The persisted BTree in which we want to load the dataiterator - The iterator over the data to bulkloadchunkSize - The number of elements we may store in memory at each iterationIOException - If there is a problem while processing the datapublic static void compact(RecordManager recordManager, BTree<?,?> btree)
recordManager - The associated recordManagerbtree - The BTree to compactpublic static BTree<?,?> compact(BTree<?,?> btree) throws IOException, KeyNotFoundException
btree - The BTree to compactKeyNotFoundExceptionIOExceptionCopyright © 2012–2015 Apache Mavibot Project Parent. All rights reserved.