Package org.jcoredb.fs

Examples of org.jcoredb.fs.Block


      {
        return null;
      }
      else
      {
        Block b = new Block(blockId,blockSize);
        byte[] bytes = b.getBytes();

        random.seek(idx*blockSize);
        random.read(bytes);
     
        return b; 
View Full Code Here


  public void create() {
   
    IFileSystem fs = FileSystemRegistry.get(new FileSystemRegKey(Constants.HOST, Configs.getFSConfig().getRootDir()));
   
    BlockId blockId = new BlockId(containerId, segmentId, id);
    Block block = new Block(blockId);
    block.setBytes(data);
   
    try
    {
      fs.write(block);
     
View Full Code Here

TOP

Related Classes of org.jcoredb.fs.Block

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.