net.obsearch.storage.bdb
Class BDBOBStoreJeByteArray
java.lang.Object
net.obsearch.storage.bdb.AbstractBDBOBStoreJe<TupleBytes>
net.obsearch.storage.bdb.BDBOBStoreJeByteArray
- All Implemented Interfaces:
- OBStore<TupleBytes>
public class BDBOBStoreJeByteArray
- extends AbstractBDBOBStoreJe<TupleBytes>
BDBOBStoreByteArray. This class makes the implementation of
BDBOBStore much cleaner and simpler.
- Author:
- Arnoldo Jose Muller Molina
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. |
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 |
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.
processAll
public CloseIterator<TupleBytes> processAll()
throws OBStorageException
- Description copied from interface:
OBStore
- Process all the elements in the DB. Useful for debugging.
- Returns:
- An iterator that goes through all the data in the DB.
- Throws:
OBStorageException
Copyright © 2007-2011 Arnoldo Jose Muller Molina. All Rights Reserved.