org.archive.wayback.util.bdb
Class BDBRecordIterator

java.lang.Object
  extended by org.archive.wayback.util.bdb.BDBRecordIterator
All Implemented Interfaces:
Closeable, Iterator<BDBRecord>, CloseableIterator<BDBRecord>

public class BDBRecordIterator
extends Object
implements CloseableIterator<BDBRecord>

Version:
$Date: 2010-09-29 05:28:38 +0700 (Wed, 29 Sep 2010) $, $Revision: 3262 $
Author:
brad

Constructor Summary
BDBRecordIterator(com.sleepycat.je.Cursor cursor, String search)
           
BDBRecordIterator(com.sleepycat.je.Cursor cursor, String search, boolean backward)
           
 
Method Summary
 void close()
           
 boolean hasNext()
           
 BDBRecord next()
           
 void remove()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BDBRecordIterator

public BDBRecordIterator(com.sleepycat.je.Cursor cursor,
                         String search)
                  throws com.sleepycat.je.DatabaseException
Parameters:
cursor -
search -
Throws:
com.sleepycat.je.DatabaseException

BDBRecordIterator

public BDBRecordIterator(com.sleepycat.je.Cursor cursor,
                         String search,
                         boolean backward)
                  throws com.sleepycat.je.DatabaseException
Parameters:
cursor -
search -
backward -
Throws:
com.sleepycat.je.DatabaseException
Method Detail

hasNext

public boolean hasNext()
Specified by:
hasNext in interface Iterator<BDBRecord>

close

public void close()
Specified by:
close in interface Closeable

next

public BDBRecord next()
Specified by:
next in interface Iterator<BDBRecord>

remove

public void remove()
Specified by:
remove in interface Iterator<BDBRecord>


Copyright © 2005-2011 Internet Archive. All Rights Reserved.