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,
Key endKey) |
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.IOExceptionpublic Value put(Transaction tx, Key key, Value value) throws java.io.IOException
java.io.IOExceptionpublic void printStructure(Transaction tx, java.io.PrintWriter out, java.lang.String prefix) throws java.io.IOException
java.io.IOExceptionpublic int getMinLeafDepth(Transaction tx, int depth) throws java.io.IOException
java.io.IOExceptionpublic int getMaxLeafDepth(Transaction tx, int depth) throws java.io.IOException
java.io.IOExceptionpublic Value get(Transaction tx, Key key) throws java.io.IOException
java.io.IOExceptionpublic boolean isEmpty(Transaction tx) throws java.io.IOException
java.io.IOExceptionpublic void visit(Transaction tx, BTreeVisitor<Key,Value> visitor) throws java.io.IOException
java.io.IOExceptionpublic java.util.Map.Entry<Key,Value> getFirst(Transaction tx) throws java.io.IOException
java.io.IOExceptionpublic java.util.Map.Entry<Key,Value> getLast(Transaction tx) throws java.io.IOException
java.io.IOExceptionpublic BTreeNode<Key,Value> getFirstLeafNode(Transaction tx) throws java.io.IOException
java.io.IOExceptionpublic java.util.Iterator<java.util.Map.Entry<Key,Value>> iterator(Transaction tx, Key startKey, Key endKey) throws java.io.IOException
java.io.IOExceptionpublic java.util.Iterator<java.util.Map.Entry<Key,Value>> iterator(Transaction tx) throws java.io.IOException
java.io.IOExceptionpublic void clear(Transaction tx) throws java.io.IOException
java.io.IOExceptionpublic boolean contains(Transaction tx, Key key) throws java.io.IOException
java.io.IOExceptionpublic long getPageId()
public long getNext()
public void setNext(long next)
public java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2005-2014 Red Hat, Inc.. All Rights Reserved.