net.obsearch.storage.tc
Class AbstractTCOBStorage.ByteArrayIterator

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

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


Field Summary
 
Fields inherited from class net.obsearch.storage.tc.AbstractTCOBStorage.CursorIterator
lastReturnedKey, nextKey, nextValue
 
Constructor Summary
protected AbstractTCOBStorage.ByteArrayIterator()
           
 
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.tc.AbstractTCOBStorage.CursorIterator
closeCursor, createT, hasNext, loadNext, next, remove
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractTCOBStorage.ByteArrayIterator

protected AbstractTCOBStorage.ByteArrayIterator()
                                         throws OBStorageException
Throws:
OBStorageException
Method Detail

createTuple

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

Specified by:
createTuple in class AbstractTCOBStorage.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.