Package com.orientechnologies.orient.core.storage.fs

Examples of com.orientechnologies.orient.core.storage.fs.OFileMMap


  @Override
  public void init() throws IOException {
    System.out.println("Testing opening and closing of a " + START_SIZE / 1000000 + "MB files for " + NUMS + " times...");

    file = new OFileMMap(FILE_NAME, "rw");

    // DELETE THE TEST FILE EVERY TIME
    File f = new File(FILE_NAME);
    if (!f.exists())
      file.create(START_SIZE);
View Full Code Here


@Test(enabled = false)
public class OMMapFileTest extends OFileAbstractTest {
  @Override
  protected OFile getFileImpl() throws IOException {
    return new OFileMMap(FILE_NAME, "rw");
  }
View Full Code Here

      // DELETE THE TEST FILE EVERY TIME
      File f = new File(FILE_NAME + i);
      if (f.exists())
        f.delete();

      files[i] = new OFileMMap(FILE_NAME + i, "rw");
      files[i].create(START_SIZE);

      System.out.println("Created file mmap " + (i + 1) + "/" + NUMS + ". Total: " + (((float) (i + 1) * START_SIZE) / 1000000000)
          + "Gb");
    }
View Full Code Here

TOP

Related Classes of com.orientechnologies.orient.core.storage.fs.OFileMMap

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.