Package com.hp.hpl.jena.tdb.index.bplustree

Examples of com.hp.hpl.jena.tdb.index.bplustree.BPlusTreeParams


      } else {
        recordFactory = new RecordFactory(SystemTDB.LenIndexQuadRecord, 0) ;
      }
     
        int order = BPlusTreeParams.calcOrder(SystemTDB.BlockSize, recordFactory) ;
        BPlusTreeParams bptParams = new BPlusTreeParams(order, recordFactory) ;
       
        int readCacheSize = 10 ;
        int writeCacheSize = 100 ;
       
        FileSet destination = new FileSet(location, indexName) ;
View Full Code Here


            System.err.printf("Can't determine record size for %s\n",indexName) ;
            return ;
        }
       
        RecordFactory recordFactory = null ;
        BPlusTreeParams bptParams = null ;
        BlockMgr blkMgrNodes ;
        BlockMgr blkMgrRecords ;
        int blockSize = SystemTDB.BlockSize ;
        Iterator<Record> iterator ;
       
View Full Code Here

        int blockSize = SystemTDB.BlockSize ;
        RecordFactory recordFactory = new RecordFactory(dftKeyLength, dftValueLength) ;
       
        int order = BPlusTreeParams.calcOrder(blockSize, recordFactory) ;
        BPlusTreeParams bptParams = new BPlusTreeParams(order, recordFactory) ;

        int blockSizeNodes = blockSize ;
        int blockSizeRecords = blockSize ;

        FileSet destination = new FileSet(location, indexName) ;
View Full Code Here

                    return recordFactory.create(pair.getLeft(), pair.getRight()) ;
                }
            };

            int order = BPlusTreeParams.calcOrder(SystemTDB.BlockSize, recordFactory) ;
            BPlusTreeParams bptParams = new BPlusTreeParams(order, recordFactory) ;
            int readCacheSize = 10 ;
            int writeCacheSize = 100 ;
            FileSet destination = new FileSet(dsg.getLocation(), Names.indexNode2Id) ;
            BlockMgr blkMgrNodes = BlockMgrFactory.create(destination, Names.bptExtTree, SystemTDB.BlockSize, readCacheSize, writeCacheSize) ;
            BlockMgr blkMgrRecords = BlockMgrFactory.create(destination, Names.bptExtRecords, SystemTDB.BlockSize, readCacheSize, writeCacheSize) ;
View Full Code Here

    protected RangeIndexMaker makeRangeIndexMaker()
    {
        BPlusTreeMaker maker = new BPlusTreeMaker(order, order, trackingBlocks) ;
       
        BPlusTree bpt = (BPlusTree)(maker.makeIndex()) ;
        BPlusTreeParams param = bpt.getParams() ;
        System.out.println(bpt.getParams()) ;
        System.out.println("Block size = "+bpt.getParams().getCalcBlockSize()) ;
        return maker ;
    }
View Full Code Here

        bufSizeRecord = RecordBufferPage.calcRecordSize(recordFactory, blockSize) ;
        blkMgrRecords = BlockMgrFactory.createMem("BPTreeRecords", blockSize) ;
        recordBufferPageMgr = new RecordBufferPageMgr(recordFactory, blkMgrRecords) ;
       
        // B+Tree order does not matter.
        bPlusTree = BPlusTree.attach(new BPlusTreeParams(3, recordFactory), null, blkMgrRecords) ;
    }
View Full Code Here

        {
            // Only in-memory.
            blockSize = BPlusTreeParams.calcBlockSize(order, factory) ;
        }
   
        BPlusTreeParams params = new BPlusTreeParams(order, factory) ;
        BlockMgr blkMgrNodes = BlockMgrFactory.create(fileset, Names.bptExtTree, blockSize, readCacheSize, writeCacheSize) ;
        BlockMgr blkMgrRecords = BlockMgrFactory.create(fileset, Names.bptExtRecords, blockSize, readCacheSize, writeCacheSize) ;
        return BPlusTree.create(params, blkMgrNodes, blkMgrRecords) ;
    }
View Full Code Here

    @Override
    public RangeIndex createRangeIndex(FileSet fileset, RecordFactory factory)
    {
        int order = BPlusTreeParams.calcOrder(blockSize, factory) ;
       
        BPlusTreeParams params = new BPlusTreeParams(order, factory) ;
        if ( params.getCalcBlockSize() > blockSize )
            throw new TDBException("Calculated block size is greater than required size") ;
       
        BlockMgr blkMgrNodes = createBlockMgr(fileset, Names.bptExtTree, blockSize) ;
        BlockMgr blkMgrRecords = createBlockMgr(fileset, Names.bptExtRecords, blockSize) ;
        return BPlusTree.create(params, blkMgrNodes, blkMgrRecords) ;
View Full Code Here

        {
            // Only in-memory.
            blockSize = BPlusTreeParams.calcBlockSize(order, factory) ;
        }
   
        BPlusTreeParams params = new BPlusTreeParams(order, factory) ;
        BlockMgr blkMgrNodes = BlockMgrFactory.create(fileset, Names.bptExtTree, blockSize, readCacheSize, writeCacheSize) ;
        BlockMgr blkMgrRecords = BlockMgrFactory.create(fileset, Names.bptExtRecords, blockSize, readCacheSize, writeCacheSize) ;
        return BPlusTree.create(params, blkMgrNodes, blkMgrRecords) ;
    }
View Full Code Here

                {
                    // Only in-memory.
                    blockSize = BPlusTreeParams.calcBlockSize(order, factory) ;
                }
           
                BPlusTreeParams params = new BPlusTreeParams(order, factory) ;
               
                BlockMgr blkMgrNodes = blockMgrBuilderNodes.buildBlockMgr(fileset, Names.bptExtTree, blockSize) ;
                BlockMgr blkMgrRecords = blockMgrBuilderRecords.buildBlockMgr(fileset, Names.bptExtRecords, blockSize) ;
                return BPlusTree.create(params, blkMgrNodes, blkMgrRecords) ;
            }
View Full Code Here

TOP

Related Classes of com.hp.hpl.jena.tdb.index.bplustree.BPlusTreeParams

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.