net.obsearch.storage.bdb
Class AbstractBDBOBStoreJe.ByteArrayIterator

java.lang.Object
  extended by net.obsearch.storage.bdb.AbstractBDBOBStoreJe.CursorIterator<TupleBytes>
      extended by net.obsearch.storage.bdb.AbstractBDBOBStoreJe.ByteArrayIterator
All Implemented Interfaces:
Iterator<TupleBytes>, CloseIterator<TupleBytes>
Enclosing class:
AbstractBDBOBStoreJe<T extends Tuple>

protected class AbstractBDBOBStoreJe.ByteArrayIterator
extends AbstractBDBOBStoreJe.CursorIterator<TupleBytes>

Iterator used to process range results.


Field Summary
 
Fields inherited from class net.obsearch.storage.bdb.AbstractBDBOBStoreJe.CursorIterator
cursor, dataEntry, keyEntry, prevDataEntry, prevKeyEntry, retVal
 
Constructor Summary
protected AbstractBDBOBStoreJe.ByteArrayIterator()
           
protected AbstractBDBOBStoreJe.ByteArrayIterator(byte[] min, byte[] max)
           
protected AbstractBDBOBStoreJe.ByteArrayIterator(byte[] min, byte[] max, boolean full, boolean backwardsMode, boolean dups)
           
 
Method Summary
protected  TupleBytes createTuple(byte[] key, byte[] value)
          Creates a tuple from the given key and value.
 
Methods inherited from class net.obsearch.storage.bdb.AbstractBDBOBStoreJe.CursorIterator
closeCursor, createT, hasNext, next, remove
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractBDBOBStoreJe.ByteArrayIterator

protected AbstractBDBOBStoreJe.ByteArrayIterator()
                                          throws OBStorageException
Throws:
OBStorageException

AbstractBDBOBStoreJe.ByteArrayIterator

protected AbstractBDBOBStoreJe.ByteArrayIterator(byte[] min,
                                                 byte[] max)
                                          throws OBStorageException
Throws:
OBStorageException

AbstractBDBOBStoreJe.ByteArrayIterator

protected AbstractBDBOBStoreJe.ByteArrayIterator(byte[] min,
                                                 byte[] max,
                                                 boolean full,
                                                 boolean backwardsMode,
                                                 boolean dups)
                                          throws OBStorageException
Throws:
OBStorageException
Method Detail

createTuple

protected TupleBytes createTuple(byte[] key,
                                 byte[] value)
Description copied from class: AbstractBDBOBStoreJe.CursorIterator
Creates a tuple from the given key and value.

Specified by:
createTuple in class AbstractBDBOBStoreJe.CursorIterator<TupleBytes>
Parameters:
key - raw key.
value - raw value.
Returns:
A new tuple of type T created from the raw data key and value.


Copyright © 2007-2011 Arnoldo Jose Muller Molina. All Rights Reserved.