Class BDBOBStoreJeByteArray

  extended by<TupleBytes>
      extended by
All Implemented Interfaces:

public class BDBOBStoreJeByteArray
extends AbstractBDBOBStoreJe<TupleBytes>

BDBOBStoreByteArray. This class makes the implementation of BDBOBStore much cleaner and simpler.

Arnoldo Jose Muller Molina

Nested Class Summary
Nested classes/interfaces inherited from class
AbstractBDBOBStoreJe.ByteArrayIterator, AbstractBDBOBStoreJe.CursorIterator<T>
Field Summary
Fields inherited from class
counter, db, sequence, stats
Constructor Summary
BDBOBStoreJeByteArray(String name, db, sequences, OBStoreFactory fact, boolean duplicates)
          Builds a new Storage system by receiving a Berkeley DB database.
Method Summary
 CloseIterator<TupleBytes> processAll()
          Process all the elements in the DB.
Methods inherited from class
allowsDuplicatedData, close, delete, deleteAll, getFactory, getName, getReadStats, getStats, getValue, nextId, optimize, prepareBytes, processAllKeys, processRange, processRangeNoDup, processRangeReverse, processRangeReverseNoDup, put, putIfNew, setReadStats, size
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail


public BDBOBStoreJeByteArray(String name,
                             OBStoreFactory fact,
                             boolean duplicates)
Builds a new Storage system by receiving a Berkeley DB database.

db - The database to be stored.
name - Name of the database.
sequences - Database used to store sequences.
Throws: - if something goes wrong with the database.
Method Detail


public CloseIterator<TupleBytes> processAll()
                                     throws OBStorageException
Description copied from interface: OBStore
Process all the elements in the DB. Useful for debugging.

An iterator that goes through all the data in the DB.

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