1 package net.obsearch.storage.bdb; 2 3 import java.util.Iterator; 4 5 import net.obsearch.exception.OBStorageException; 6 import net.obsearch.storage.CloseIterator; 7 import net.obsearch.storage.TupleBytes; 8 import net.obsearch.storage.bdb.AbstractBDBOBStoreJe.ByteArrayIterator; 9 import net.obsearch.storage.bdb.AbstractBDBOBStoreJe.CursorIterator; 10 import net.obsearch.storage.OBStoreFactory; 11 12 import com.sleepycat.je.Database; 13 import com.sleepycat.je.DatabaseException; 14 15 /* 16 OBSearch: a distributed similarity search engine This project is to 17 similarity search what 'bit-torrent' is to downloads. 18 Copyright (C) 2008 Arnoldo Jose Muller Molina 19 20 This program is free software: you can redistribute it and/or modify 21 it under the terms of the GNU General Public License as published by 22 the Free Software Foundation, either version 3 of the License, or 23 (at your option) any later version. 24 25 This program is distributed in the hope that it will be useful, 26 but WITHOUT ANY WARRANTY; without even the implied warranty of 27 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 28 GNU General Public License for more details. 29 30 You should have received a copy of the GNU General Public License 31 along with this program. If not, see <http://www.gnu.org/licenses/>. 32 */ 33 34 /** 35 * BDBOBStoreByteArray. This class makes the implementation of 36 * BDBOBStore much cleaner and simpler. 37 * @author Arnoldo Jose Muller Molina 38 */ 39 40 public class BDBOBStoreJeByteArray 41 extends AbstractBDBOBStoreJe < TupleBytes > { 42 /** 43 * Builds a new Storage system by receiving a Berkeley DB database. 44 * @param db 45 * The database to be stored. 46 * @param name 47 * Name of the database. 48 * @param sequences 49 * Database used to store sequences. 50 * @throws DatabaseException 51 * if something goes wrong with the database. 52 */ 53 public BDBOBStoreJeByteArray(String name, Database db, Database sequences, OBStoreFactory fact, boolean duplicates ) 54 throws DatabaseException { 55 super(name, db, sequences,fact, duplicates); 56 } 57 58 59 60 @Override 61 public CloseIterator < TupleBytes > processAll() throws OBStorageException { 62 return new ByteArrayIterator(); 63 } 64 65 66 67 } 68