Examples of termSet()


Examples of org.terrier.structures.indexing.BlockDocumentPostingList.termSet()

   * @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));   
  }

  /** Add the specified to the term posting to the memory postings.
   * @param term The String form of the term
View Full Code Here

Examples of org.terrier.structures.indexing.BlockFieldDocumentPostingList.termSet()

  /**
   * {@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));
  }
 
  /**
   * add
 
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.