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