Package dovetaildb.bagindex

Examples of dovetaildb.bagindex.BlueSteelBagIndex


      @Override
      public DbService makeDbService(final File subDbServiceHome, final DbService prevService) {
        BagIndexBridge b = new BagIndexBridge(subDbServiceHome);
        b.setBagIndexFactory(new BagEntryFactory() {
          public BagEntry makeBagEntry(String bagName) {
            BlueSteelBagIndex bsBagIndex = new FsBlueSteelBagIndex(sync);
            BagIndex bagIndex = bsBagIndex;
            bagIndex.setHomedir(new File(subDbServiceHome, "bag_"+bagName).getAbsolutePath());
            if (prevService != null) {
              BagIndex prevIndex = prevService.getBag(bagName);
              if (prevIndex != null) {
                Bytes[] table = PrefixCompressedBagIndex.determineCompressionTable(prevIndex, lengthToRowRatio);
                PrefixCompressedBagIndex pcBagIndex = new PrefixCompressedBagIndex(bsBagIndex, table);
                bagIndex = pcBagIndex;
                bsBagIndex.setTermTableDepth(pcBagIndex.getNumCompressedBytes());
              }
            }
            return new BagEntry(bagIndex);
          }
        });
View Full Code Here

TOP

Related Classes of dovetaildb.bagindex.BlueSteelBagIndex

Copyright © 2018 www.massapicom. 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.