Package org.jcoredb.fs.impl.multithead

Examples of org.jcoredb.fs.impl.multithead.ContainerIndex


    //Useful constants
    final int SEGSIZE = Configs.getFSConfig().getSegSize();       

   
    //Index by container id
    ContainerIndex cntIdx = indexByContainer(blocks);
   
    //For each container
    for (int cntId : cntIdx.keySet())
    {
       
        //The blocks of this container
        Container cnt = this.getContainer(cntId);
        Block[] cntBlocks = cntIdx.get(cntId).toArray(new Block[cntIdx.get(cntId).size()]);
       
       
        int numOfBlocksLeft = -1;
       
        if (only)
View Full Code Here


  }
 
 
  private ContainerIndex indexByContainer(Block[] blocks)
  {
    ContainerIndex idx = new ContainerIndex();
   
    for (Block b : blocks)
    {
      idx.put(b);
    }
   
    return idx;
  }
View Full Code Here

TOP

Related Classes of org.jcoredb.fs.impl.multithead.ContainerIndex

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.