net.obsearch.storage.bdb
Class BDBOBStoreJeByteArray

java.lang.Object
  extended by net.obsearch.storage.bdb.AbstractBDBOBStoreJe<net.obsearch.storage.TupleBytes>
      extended by net.obsearch.storage.bdb.BDBOBStoreJeByteArray
All Implemented Interfaces:
net.obsearch.storage.OBStore<net.obsearch.storage.TupleBytes>

public class BDBOBStoreJeByteArray
extends AbstractBDBOBStoreJe<net.obsearch.storage.TupleBytes>

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

Author:
Arnoldo Jose Muller Molina

Nested Class Summary
 
Nested classes/interfaces inherited from class net.obsearch.storage.bdb.AbstractBDBOBStoreJe
AbstractBDBOBStoreJe.ByteArrayIterator, AbstractBDBOBStoreJe.CursorIterator<T>
 
Field Summary
 
Fields inherited from class net.obsearch.storage.bdb.AbstractBDBOBStoreJe
counter, db, sequence, stats
 
Constructor Summary
BDBOBStoreJeByteArray(String name, com.sleepycat.je.Database db, com.sleepycat.je.Database sequences, OBStoreFactory fact, boolean duplicates)
          Builds a new Storage system by receiving a Berkeley DB database.
 
Method Summary
 net.obsearch.storage.CloseIterator<net.obsearch.storage.TupleBytes> processAll()
           
 
Methods inherited from class net.obsearch.storage.bdb.AbstractBDBOBStoreJe
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

BDBOBStoreJeByteArray

public BDBOBStoreJeByteArray(String name,
                             com.sleepycat.je.Database db,
                             com.sleepycat.je.Database sequences,
                             OBStoreFactory fact,
                             boolean duplicates)
                      throws com.sleepycat.je.DatabaseException
Builds a new Storage system by receiving a Berkeley DB database.

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

processAll

public net.obsearch.storage.CloseIterator<net.obsearch.storage.TupleBytes> processAll()
                                                                               throws net.obsearch.exception.OBStorageException
Throws:
net.obsearch.exception.OBStorageException


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