Examples of RAIFile


Examples of net.metanotion.io.RAIFile

    spanSize    = file.readShort();
  }

  public static void main(String args[]) {
    try {
      RAIFile raif = new RAIFile(new File(args[0]), true, true);
      BlockFile bf = new BlockFile(raif, true);

      //bf.metaIndex.delete();
      bf.makeIndex("foo", new NullBytes(), new NullBytes());


      BSkipList b = bf.getIndex("foo", new NullBytes(), new NullBytes());
      System.out.println(bf.allocPage());

      bf.close();
      raif.close();
    } catch (Exception e) {
      e.printStackTrace();
    }
  }
View Full Code Here

Examples of net.metanotion.io.RAIFile

    curPageOff[0] = pageCounter;
    return curPage;
  }

  public BlockFile(RandomAccessInterface rai) throws IOException { this(rai, false); }
  public BlockFile(RandomAccessFile raf) throws IOException { this(new RAIFile(raf), false); }
View Full Code Here

Examples of net.metanotion.io.RAIFile

    return curPage;
  }

  public BlockFile(RandomAccessInterface rai) throws IOException { this(rai, false); }
  public BlockFile(RandomAccessFile raf) throws IOException { this(new RAIFile(raf), false); }
  public BlockFile(RandomAccessFile raf, boolean init) throws IOException { this(new RAIFile(raf), init); }
View Full Code Here

Examples of net.metanotion.io.RAIFile

  }

  public BlockFile(RandomAccessInterface rai) throws IOException { this(rai, false); }
  public BlockFile(RandomAccessFile raf) throws IOException { this(new RAIFile(raf), false); }
  public BlockFile(RandomAccessFile raf, boolean init) throws IOException { this(new RAIFile(raf), init); }
  public BlockFile(File f, boolean init) throws IOException { this(new RAIFile(f, true, true), init); }
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.