void TmpPostingStream::write(const Posting &posting, double score) { // cout << "tmp: " << baseDocID << endl; posting.writeTo(fp, score, baseDocID); baseDocID = posting.getDocID(); end = ftell(fp); df ++; }
void PostingStream::write(const Posting &posting, double score) { assert (score == 0); posting.writeTo(out, baseDocID); baseDocID = posting.getDocID(); end = out.tellp(); df ++; }