|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsimpledb.index.btree.BTreeLeaf
public class BTreeLeaf
An object that holds the contents of a B-tree leaf block.
Constructor Summary | |
---|---|
BTreeLeaf(Block blk,
TableInfo ti,
Constant searchkey,
Transaction tx)
Opens a page to hold the specified leaf block. |
Method Summary | |
---|---|
void |
close()
Closes the leaf page. |
void |
delete(RID datarid)
Deletes the leaf record having the specified dataRID |
RID |
getDataRid()
Returns the dataRID value of the current leaf record. |
DirEntry |
insert(RID datarid)
Inserts a new leaf record having the specified dataRID and the previously-specified search key. |
boolean |
next()
Moves to the next leaf record having the previously-specified search key. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BTreeLeaf(Block blk, TableInfo ti, Constant searchkey, Transaction tx)
blk
- a reference to the disk blockti
- the metadata of the B-tree leaf filesearchkey
- the search key valuetx
- the calling transactionMethod Detail |
---|
public void close()
public boolean next()
public RID getDataRid()
public void delete(RID datarid)
datarid
- the dataRId whose record is to be deletedpublic DirEntry insert(RID datarid)
datarid
- the dataRID value of the new record
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |