org.apache.kahadb.index
public final class BTreeNode<Key,Value> extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
BTreeNode.Marshaller<Key,Value>
The Marshaller is used to store and load the data in the BTreeNode into a Page.
|
Constructor and Description |
---|
BTreeNode(BTreeIndex<Key,Value> index) |
Modifier and Type | Method and Description |
---|---|
void |
clear(Transaction tx) |
boolean |
contains(Transaction tx,
Key key) |
Value |
get(Transaction tx,
Key key) |
java.util.Map.Entry<Key,Value> |
getFirst(Transaction tx) |
BTreeNode<Key,Value> |
getFirstLeafNode(Transaction tx) |
java.util.Map.Entry<Key,Value> |
getLast(Transaction tx) |
int |
getMaxLeafDepth(Transaction tx,
int depth) |
int |
getMinLeafDepth(Transaction tx,
int depth) |
long |
getNext() |
Page<BTreeNode<Key,Value>> |
getPage() |
long |
getPageId() |
BTreeNode<Key,Value> |
getParent() |
boolean |
isEmpty(Transaction tx) |
java.util.Iterator<java.util.Map.Entry<Key,Value>> |
iterator(Transaction tx) |
java.util.Iterator<java.util.Map.Entry<Key,Value>> |
iterator(Transaction tx,
Key startKey) |
void |
printStructure(Transaction tx,
java.io.PrintWriter out,
java.lang.String prefix) |
Value |
put(Transaction tx,
Key key,
Value value) |
Value |
remove(Transaction tx,
Key key) |
void |
setEmpty() |
void |
setNext(long next) |
void |
setPage(Page<BTreeNode<Key,Value>> page) |
void |
setParent(BTreeNode<Key,Value> parent) |
java.lang.String |
toString() |
void |
visit(Transaction tx,
BTreeVisitor<Key,Value> visitor) |
public BTreeNode(BTreeIndex<Key,Value> index)
public void setEmpty()
public Value remove(Transaction tx, Key key) throws java.io.IOException
java.io.IOException
public Value put(Transaction tx, Key key, Value value) throws java.io.IOException
java.io.IOException
public void printStructure(Transaction tx, java.io.PrintWriter out, java.lang.String prefix) throws java.io.IOException
java.io.IOException
public int getMinLeafDepth(Transaction tx, int depth) throws java.io.IOException
java.io.IOException
public int getMaxLeafDepth(Transaction tx, int depth) throws java.io.IOException
java.io.IOException
public Value get(Transaction tx, Key key) throws java.io.IOException
java.io.IOException
public boolean isEmpty(Transaction tx) throws java.io.IOException
java.io.IOException
public void visit(Transaction tx, BTreeVisitor<Key,Value> visitor) throws java.io.IOException
java.io.IOException
public java.util.Map.Entry<Key,Value> getFirst(Transaction tx) throws java.io.IOException
java.io.IOException
public java.util.Map.Entry<Key,Value> getLast(Transaction tx) throws java.io.IOException
java.io.IOException
public BTreeNode<Key,Value> getFirstLeafNode(Transaction tx) throws java.io.IOException
java.io.IOException
public java.util.Iterator<java.util.Map.Entry<Key,Value>> iterator(Transaction tx, Key startKey) throws java.io.IOException
java.io.IOException
public java.util.Iterator<java.util.Map.Entry<Key,Value>> iterator(Transaction tx) throws java.io.IOException
java.io.IOException
public void clear(Transaction tx) throws java.io.IOException
java.io.IOException
public boolean contains(Transaction tx, Key key) throws java.io.IOException
java.io.IOException
public long getPageId()
public long getNext()
public void setNext(long next)
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2005-2014. All Rights Reserved.