コード例 #1
0
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 ++;
}