org.apache.directory.server.core.partition.impl.btree.jdbm
Class JdbmTupleBrowser

java.lang.Object
  extended by org.apache.directory.server.core.partition.impl.btree.jdbm.JdbmTupleBrowser
All Implemented Interfaces:
TupleBrowser

public class JdbmTupleBrowser
extends java.lang.Object
implements TupleBrowser

TupleBrowser wrapper for Jdbm based TupleBrowsers.

Version:
$Rev: 434579 $
Author:
Apache Directory Project

Constructor Summary
JdbmTupleBrowser(jdbm.helper.TupleBrowser jdbmBrowser)
          Creates a JdbmTupleBrowser.
 
Method Summary
 boolean getNext(Tuple tuple)
          Gets the next value deemed greater than the last using the key comparator.
 boolean getPrevious(Tuple tuple)
          Gets the previous value deemed greater than the last using the key comparator.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JdbmTupleBrowser

public JdbmTupleBrowser(jdbm.helper.TupleBrowser jdbmBrowser)
Creates a JdbmTupleBrowser.

Parameters:
jdbmBrowser - JDBM browser to wrap.
Method Detail

getNext

public boolean getNext(Tuple tuple)
                throws javax.naming.NamingException
Description copied from interface: TupleBrowser
Gets the next value deemed greater than the last using the key comparator.

Specified by:
getNext in interface TupleBrowser
Parameters:
tuple - the tuple to populate with a key/value pair
Returns:
true if there was a next that was populated or false otherwise
Throws:
javax.naming.NamingException - @todo
See Also:
TupleBrowser.getNext(org.apache.directory.server.core.partition.impl.btree.Tuple)

getPrevious

public boolean getPrevious(Tuple tuple)
                    throws javax.naming.NamingException
Description copied from interface: TupleBrowser
Gets the previous value deemed greater than the last using the key comparator.

Specified by:
getPrevious in interface TupleBrowser
Parameters:
tuple - the tuple to populate with a key/value pair
Returns:
true if there was a previous value populated or false otherwise
Throws:
javax.naming.NamingException - @todo
See Also:
TupleBrowser.getPrevious(Tuple)


Copyright © 2003-2009 Apache Software Foundation. All Rights Reserved.