Examples of WritablePosting


Examples of org.terrier.structures.postings.WritablePosting

  {
    final IterablePosting postingIterator = postingWrapper.getObject();
    reporter.setStatus("Mapping for id " + termId);
    while(postingIterator.next() != IterablePosting.EOL)
    {
      WritablePosting wp = postingIterator.asWritablePosting();
      int docid = postingIterator.getId();
      wp.setId(termId.get());
      reporter.progress();
      collector.collect(new VIntWritable(docid), wp);
    }
  }
View Full Code Here

Examples of org.terrier.structures.postings.WritablePosting

    public int[] getPositions() {
      return blockIds;
    }
   
    public WritablePosting asWritablePosting() {
      WritablePosting bp = new BlockPostingImpl(docid, frequency, blockIds);
      return bp;
    }
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.