| java.lang.Object com.caucho.db.index.BTree
BTree | final public class BTree (Code) | | Structure of the table:
b4 - flags
b4 - length
b8 - parent
b8 - next
tuples*
Structure of a tuple:
b8 - ptr to the actual data
key - the tuple's key
|
Field Summary | |
final public static long | FAIL |
Constructor Summary | |
public | BTree(Store store, long rootBlockId, int keySize, KeyCompare keyCompare) Creates a new BTree with the given backing. |
Method Summary | |
public void | close() | public void | create() Creates and initializes the btree. | public static BTree | createStringTest(Path path, int keySize) | public static BTree | createTest(Path path, int keySize) | public ArrayList<String> | getBlockKeys(long blockIndex) | public long | getIndexRoot() Returns the index root. | public void | insert(byte[] keyBuffer, int keyOffset, int keyLength, long value, Transaction xa, boolean isOverride) Inserts the new value for the given key. | public long | lookup(byte[] keyBuffer, int keyOffset, int keyLength, Transaction xa) | public void | remove(byte[] keyBuffer, int keyOffset, int keyLength, Transaction xa) | public String | toString() |
FAIL | final public static long FAIL(Code) | | |
BTree | public BTree(Store store, long rootBlockId, int keySize, KeyCompare keyCompare) throws IOException(Code) | | Creates a new BTree with the given backing.
Parameters: store - the underlying store containing the btree. |
close | public void close()(Code) | | |
create | public void create() throws IOException(Code) | | Creates and initializes the btree.
|
getIndexRoot | public long getIndexRoot()(Code) | | Returns the index root.
|
insert | public void insert(byte[] keyBuffer, int keyOffset, int keyLength, long value, Transaction xa, boolean isOverride) throws SQLException(Code) | | Inserts the new value for the given key.
false if the block needs to be split |
|
|