Package org.terrier.structures.postings

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


    public int[] getPositions() {
      return blockIds;
    }
   
    public WritablePosting asWritablePosting() {
      WritablePosting bp = new BlockPostingImpl(docid, frequency, blockIds);
      return bp;
    }
View Full Code Here

TOP

Related Classes of org.terrier.structures.postings.WritablePosting

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.