jdbm.btree
Class BPage.Browser

java.lang.Object
  extended byjdbm.helper.TupleBrowser
      extended byjdbm.btree.BPage.Browser
Enclosing class:
BPage

static class BPage.Browser
extends TupleBrowser

PRIVATE INNER CLASS Browser to traverse leaf BPages.


Constructor Summary
(package private) BPage.Browser(BPage page, int index)
          Create a browser.
 
Method Summary
 boolean getNext(Tuple tuple)
          Get the next tuple.
 boolean getPrevious(Tuple tuple)
          Get the previous tuple.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BPage.Browser

BPage.Browser(BPage page,
              int index)
Create a browser.

Parameters:
page - Current page
index - Position of the next tuple to return.
Method Detail

getNext

public boolean getNext(Tuple tuple)
                throws java.io.IOException
Description copied from class: TupleBrowser
Get the next tuple.

Specified by:
getNext in class TupleBrowser
Parameters:
tuple - Tuple into which values are copied.
Returns:
True if values have been copied in tuple, or false if there is no next tuple.
Throws:
java.io.IOException

getPrevious

public boolean getPrevious(Tuple tuple)
                    throws java.io.IOException
Description copied from class: TupleBrowser
Get the previous tuple.

Specified by:
getPrevious in class TupleBrowser
Parameters:
tuple - Tuple into which values are copied.
Returns:
True if values have been copied in tuple, or false if there is no previous tuple.
Throws:
java.io.IOException


Cees de Groot (C) 2000-2001. All rights reserved http://jdbm.sourceforge.net