Package org.terrier.structures.indexing

Examples of org.terrier.structures.indexing.BlockDocumentPostingList


   * @param _docPostings BlockDocumentPostingList containing the posting information for one document.
   * @param docid Document id of the indexed document
   * @throws IOException if an I/O error occurs.   
   */
  public void addTerms(DocumentPostingList _docPostings, int docid) throws IOException {    
    BlockDocumentPostingList docPostings = (BlockDocumentPostingList_docPostings;   
    for (String term : docPostings.termSet())   
      add(term, docid, docPostings.getFrequency(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.BlockDocumentPostingList

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.