* @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