Ejemplo n.º 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 ++;
}
Ejemplo n.º 2
0
void PostingStream::write(const Posting &posting, double score) {
	assert (score == 0);
	posting.writeTo(out, baseDocID);
	baseDocID = posting.getDocID();
	end = out.tellp();
	df ++;
}