Package | Description |
---|---|
org.apache.directory.mavibot.btree.managed |
Modifier and Type | Method and Description |
---|---|
<K,V> BTree<K,V> |
RecordManager.addBTree(String name,
ElementSerializer<K> keySerializer,
ElementSerializer<V> valueSerializer,
boolean allowDuplicates)
Creates a BTree and automatically adds it to the list of managed btrees
|
BTree<K,V> |
ManagedBTreeBuilder.build(Iterator<Tuple<K,V>> sortedTupleItr) |
static <K,V> BTree<K,V> |
BTreeFactory.createBTree()
Create a new BTree.
|
<K,V> BTree<K,V> |
RecordManager.getManagedTree(String name)
Get one managed trees, knowing its name.
|
BTree<?,V> |
BTreeConfiguration.getParentBTree() |
Modifier and Type | Method and Description |
---|---|
static <K,V> org.apache.directory.mavibot.btree.managed.Leaf<K,V> |
BTreeFactory.createLeaf(BTree<K,V> btree,
long revision,
int nbElems)
Create a new Leaf for the give BTree.
|
static <K,V> org.apache.directory.mavibot.btree.managed.Node<K,V> |
BTreeFactory.createNode(BTree<K,V> btree,
long revision,
int nbElems)
Create a new Node for the give BTree.
|
<K,V> Page<K,V> |
RecordManager.deserialize(BTree<K,V> btree,
long offset) |
static <K,V> LinkedList<ParentPos<K,V>> |
BTreeFactory.getPathToLeftMostLeaf(BTree<K,V> btree)
Includes the intermediate nodes in the path up to and including the left most leaf of the tree
|
static <K,V> LinkedList<ParentPos<K,V>> |
BTreeFactory.getPathToRightMostLeaf(BTree<K,V> btree)
Includes the intermediate nodes in the path up to and including the right most leaf of the tree
|
static <K,V> Page<K,V> |
BTreeFactory.getRoot(BTree<K,V> btree)
Return the BTree root page
|
Page<K,V> |
PageHolder.getValue(BTree<K,V> btree) |
E |
ElementHolder.getValue(BTree<K,V> btree)
Get back the element
|
<K,V> void |
RecordManager.manage(BTree<K,V> btree)
Manage a BTree.
|
<K,V> void |
RecordManager.manage(BTree<K,V> 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 <K,V> void |
BTreeFactory.setKeySerializer(BTree<K,V> btree,
String keySerializerFqcn)
Sets the KeySerializer into the BTree
|
static <K,V> void |
BTreeFactory.setName(BTree<K,V> btree,
String name) |
static <K,V> void |
BTreeFactory.setNbElems(BTree<K,V> btree,
long nbElems) |
static <K,V> void |
BTreeFactory.setNextBTreeOffset(BTree<K,V> btree,
long nextBTreeOffset) |
static <K,V> void |
BTreeFactory.setPageSize(BTree<K,V> btree,
int pageSize)
Set the maximum number of elements we can store in a page.
|
void |
BTreeConfiguration.setParentBTree(BTree<?,V> parentBTree) |
static <K,V> void |
BTreeFactory.setRecordManager(BTree<K,V> btree,
RecordManager recordManager)
Set the RecordManager
|
static <K,V> void |
BTreeFactory.setRevision(BTree<K,V> btree,
long revision) |
static <K,V> void |
BTreeFactory.setRoot(BTree<K,V> btree,
Page<K,V> root)
Set the new root page for this tree.
|
static <K,V> void |
BTreeFactory.setRootPageOffset(BTree<K,V> btree,
long rootPageOffset) |
static <K,V> void |
BTreeFactory.setValueSerializer(BTree<K,V> btree,
String valueSerializerFqcn)
Sets the ValueSerializer into the BTree
|
Constructor and Description |
---|
PageHolder(BTree<K,V> btree,
Page<K,V> 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.