Package dovetaildb.fileaccessor

Examples of dovetaildb.fileaccessor.PagedFile


      boolean newIndex = ! pagesFile.exists();
      if (newIndex) {
        System.out.println("No index present at "+homeDir+"; creating a new index.");
      }

      pages = new PagedFile(pagesFile);
      pageBi = pages.getBytesInterface();
     
      maxDocIdFile      = new MappedBytesInterface(openFile("maxdocid"));
      if (newIndex) {
        maxDocIdFile = maxDocIdFile.ensureSizeAtLeast(8);
View Full Code Here


  }
 
  public String getHomedir() { return homeDir; }
 
    private void open() {
    terms = new PagedFile(termsFile=new File(homeDir + File.separator + "terms"));
    postings = new PagedFile(postingsFile=new File(homeDir + File.separator + "postings"));
    docData = new OffsetValueFilePair(
        docOffsetFile=new File(homeDir + File.separator + "docOffset"),
        docValueFile=new File(homeDir + File.separator + "docValue")
        );
    }
View Full Code Here

TOP

Related Classes of dovetaildb.fileaccessor.PagedFile

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.