postings = new HMapIV<CompressedPositionalPostings>();
dfs = new HMapII();
docLengths = new HMapII();
FSDataInputStream input = fs.open(new Path(postingsPath));
int termid = input.readInt();
while(termid != -1) {
dfs.put(termid, input.readInt());
postings.put(termid, CompressedPositionalPostings.readInstance(input));
termid = input.readInt();
}