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();
}
int nbDocLengths = input.readInt();
for(int i = 0; i < nbDocLengths; i++) {
docLengths.put(input.readInt(), input.readInt());