Examples of RunIterator


Examples of org.terrier.structures.indexing.singlepass.RunIterator

   * {@inheritDoc}
   */
  public void mergeOne(LexiconOutputStream<String> lexStream) throws Exception
 
    int maxDF = 0;
    RunIterator run = runsSource.createRunIterator(-1);
    HadoopRunPostingIterator _run = (HadoopRunPostingIterator)run;
   
    lastTermWritten = null;
    lastFreq = 0;
    lastDocFreq= 0;
    lastDocument = -1;
    long startOffset = this.getByteOffset();
    byte startBitOffset = this.getBitOffset();
    LexiconEntry le = null;
    // for each run in the list
    int counter = 0;
    //for one term: for each set of postings for that term
    while (run.hasNext()) {
      PostingInRun posting = run.next();
      lastTermWritten = posting.getTerm();
     
      if (posting.getDf() > maxDF)
        maxDF = posting.getDf();
     
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.