Package org.xtreemfs.babudb.index.writer

Examples of org.xtreemfs.babudb.index.writer.DiskIndexWriter.writeIndex()


           
            System.out.println("creating new database with " + size + " random entries ...");
           
            // write the map to a disk index
            DiskIndexWriter index = new DiskIndexWriter(path, entriesPerBlock, false, blockFileSize);
            index.writeIndex(new ResultSet<Object, Object>() {
               
                private int    count;
               
                private String next = minChar + "";
               
View Full Code Here


            DiskIndexWriter index = new DiskIndexWriter(path, entriesPerBlock.intValue(), compress, blockFileSize);
           
            if(!input.equals(DEFAULT_DATAGEN)) {
              /* note that the iterator must return the items sorted */
             
              index.writeIndex(DataGenerator.fileIterator(lookupHits, size, hitrate, input));
            } else {
              index.writeIndex(DataGenerator.randomIterator(lookupHits, size, hitrate, minStrLen, maxStrLen, minChar, maxChar));
            }
        } else {
          //   populate the lookup-hits table
View Full Code Here

            if(!input.equals(DEFAULT_DATAGEN)) {
              /* note that the iterator must return the items sorted */
             
              index.writeIndex(DataGenerator.fileIterator(lookupHits, size, hitrate, input));
            } else {
              index.writeIndex(DataGenerator.randomIterator(lookupHits, size, hitrate, minStrLen, maxStrLen, minChar, maxChar));
            }
        } else {
          //   populate the lookup-hits table
          DiskIndex diskIndexTmp = new DiskIndex(path, new DefaultByteRangeComparator(), compress, mmap);
          Iterator<Entry<byte[], byte[]>> itTmp = diskIndexTmp.rangeLookup(null, null, true);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.