Package org.terrier.structures.postings

Examples of org.terrier.structures.postings.BlockPosting


  }
 
  @Override
  protected void writePostingNotDocid(Posting _p) throws IOException
  {
    BlockPosting p = (BlockPosting)_p;
    output.writeUnary(p.getFrequency());
    final int positions[] = p.getPositions();
    final int l = positions.length;
    output.writeUnary(l+1);
    if (l== 0)
      return;
    //System.err.println("posting has " + l + "blocks");
View Full Code Here


 
  @Override
  protected void writePostingNotDocid(Posting _p) throws IOException
  {
    super.writePostingNotDocid(_p);
    final BlockPosting p = (BlockPosting)_p;
    final int positions[] = p.getPositions();
    final int l = positions.length;
    //System.err.println("posting has " + l + "blocks");
    output.writeUnary(l+1);
    if (l == 0)
      return;
View Full Code Here

TOP

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

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.