Package org.terrier.structures.indexing

Examples of org.terrier.structures.indexing.BlockFieldDocumentPostingList$blockFieldPostings


public class BlockFieldMemoryPostings extends BlockMemoryPostings{
  /**
   * {@inheritDoc}
   */
  public void addTerms(DocumentPostingList _docPostings, int docid) throws IOException {
    BlockFieldDocumentPostingList docPostings = (BlockFieldDocumentPostingList) _docPostings;
    for (String term : docPostings.termSet())
      add(term, docid, docPostings.getFrequency(term) , docPostings.getFieldFrequencies(term), docPostings.getBlocks(term));
  }
View Full Code Here


  }


  protected void createDocumentPostings(){
    if (FieldScore.FIELDS_COUNT > 0)
      termsInDocument = new BlockFieldDocumentPostingList(FieldScore.FIELDS_COUNT);
    else
      termsInDocument = new BlockDocumentPostingList();
    blockId = 0;
    numOfTokensInBlock = 0;
  }
View Full Code Here

  }

 
  protected void createDocumentPostings(){
    if (FieldScore.FIELDS_COUNT > 0)
      termsInDocument = new BlockFieldDocumentPostingList(FieldScore.FIELDS_COUNT);
    else
      termsInDocument = new BlockDocumentPostingList();
    blockId = 0;
    numOfTokensInBlock = 0
  }
View Full Code Here

  }


  protected void createDocumentPostings(){
    if (FieldScore.FIELDS_COUNT > 0)
      termsInDocument = new BlockFieldDocumentPostingList(FieldScore.FIELDS_COUNT);
    else
      termsInDocument = new BlockDocumentPostingList();
    blockId = 0;
    numOfTokensInBlock = 0;
  }
View Full Code Here

TOP

Related Classes of org.terrier.structures.indexing.BlockFieldDocumentPostingList$blockFieldPostings

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.