Package | Description |
---|---|
org.apache.directory.mavibot.btree |
Modifier and Type | Method and Description |
---|---|
BTree |
RecordManager.addBTree(String name,
ElementSerializer<?> keySerializer,
ElementSerializer<?> valueSerializer,
boolean allowDuplicates)
Creates a BTree and automatically adds it to the list of managed btrees
|
BTree<K,V> |
BTreeBuilder.build(Iterator<Tuple<K,V>> sortedTupleItr) |
static BTree |
BTreeFactory.createBTree()
Create a new BTree.
|
BTree |
RecordManager.getManagedTree(String name)
Get one managed trees, knowing its name.
|
BTree<V,V> |
BTree.getValues(K key) |
Modifier and Type | Method and Description |
---|---|
static org.apache.directory.mavibot.btree.Leaf |
BTreeFactory.createLeaf(BTree btree,
long revision,
int nbElems)
Create a new Leaf for the give BTree.
|
static org.apache.directory.mavibot.btree.Node |
BTreeFactory.createNode(BTree btree,
long revision,
int nbElems)
Create a new Node for the give BTree.
|
org.apache.directory.mavibot.btree.Page |
RecordManager.deserialize(BTree btree,
long offset) |
static LinkedList |
BTreeFactory.getPathToRightMostLeaf(BTree btree)
Includes the intermediate nodes in the path up to and including the right most leaf of the tree
|
static org.apache.directory.mavibot.btree.Page |
BTreeFactory.getRoot(BTree<?,?> btree)
Return the BTree root page
|
E |
ReferenceHolder.getValue(BTree<K,V> btree)
Get back the element
|
V |
MemoryHolder.getValue(BTree<K,V> btree)
Get back the element
|
E |
ElementHolder.getValue(BTree<K,V> btree)
Get back the element
|
V |
DuplicateKeyMemoryHolder.getValue(BTree<K,V> btree)
Get back the element
|
void |
RecordManager.manage(BTree<?,?> btree)
Manage a BTree.
|
void |
RecordManager.manage(BTree<?,?> btree,
boolean internalTree)
works the same as @see #manage(BTree) except the given tree will not be linked to top level trees that will be
loaded initially if the internalTree flag is set to true
|
static void |
BTreeFactory.setKeySerializer(BTree<?,?> btree,
String keySerializerFqcn)
Sets the KeySerializer into the BTree
|
static void |
BTreeFactory.setName(BTree<?,?> btree,
String name) |
static void |
BTreeFactory.setNbElems(BTree<?,?> btree,
long nbElems) |
static void |
BTreeFactory.setNextBTreeOffset(BTree<?,?> btree,
long nextBTreeOffset) |
static void |
BTreeFactory.setPageSize(BTree<?,?> btree,
int pageSize)
Set the maximum number of elements we can store in a page.
|
static void |
BTreeFactory.setRecordManager(BTree<?,?> btree,
RecordManager recordManager)
Set the RecordManager
|
static void |
BTreeFactory.setRevision(BTree<?,?> btree,
long revision) |
static void |
BTreeFactory.setRoot(BTree<?,?> btree,
org.apache.directory.mavibot.btree.Page root)
Set the new root page for this tree.
|
static void |
BTreeFactory.setRootPageOffset(BTree<?,?> btree,
long rootPageOffset) |
static void |
BTreeFactory.setValueSerializer(BTree<?,?> btree,
String valueSerializerFqcn)
Sets the ValueSerializer into the BTree
|
Constructor and Description |
---|
DuplicateKeyMemoryHolder(BTree<K,V> btree,
V value)
Create a new holder storing an offset and a SoftReference containing the value.
|
MemoryHolder(BTree<K,V> btree,
V value)
Create a new holder storing an offset and a SoftReference containing the value.
|
ReferenceHolder(BTree<K,V> btree,
E element,
long offset,
long lastOffset)
Create a new holder storing an offset and a SoftReference containing the element.
|
Copyright © 2012-2013 Apache Mavibot Project Parent. All Rights Reserved.