class BPage.Browser extends TupleBrowser<K,V>
| Modifier and Type | Field and Description |
|---|---|
(package private) ActionContext |
context
context used to track browsing action
|
private int |
index
Current index in the page.
|
private BPage<K,V> |
page
Current page.
|
| Constructor and Description |
|---|
Browser(BPage<K,V> page,
int index,
ActionContext context)
Create a browser.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the browser and deallocates any resources it might have allocated.
|
boolean |
getNext(Tuple<K,V> tuple)
Get the next Tuple in the current BTree.
|
boolean |
getPrevious(Tuple<K,V> tuple)
Get the previous tuple.
|
ActionContext context
private int index
Browser(BPage<K,V> page, int index, ActionContext context)
page - Current pagecontext - context in case of action capable record managerindex - Position of the next tuple to return.public boolean getNext(Tuple<K,V> tuple) throws java.io.IOException
getNext in class TupleBrowser<K,V>tuple - Tuple into which values are copied.java.io.IOExceptionpublic boolean getPrevious(Tuple<K,V> tuple) throws java.io.IOException
TupleBrowsergetPrevious in class TupleBrowser<K,V>tuple - Tuple into which values are copied.java.io.IOExceptionpublic void close()
TupleBrowserclose in class TupleBrowser<K,V>