WritableUtils.writeVInt(out, numTerms);
if (numTerms == 0)
return;
bytesOut = new ByteArrayOutputStream();
bitsOut = new BitOutputStream(bytesOut);
Iterator<Map.Entry<Integer, int[]>> it = termPositionsMap.entrySet().iterator();
Map.Entry<Integer, int[]> posting = it.next();
int[] positions = posting.getValue();
TermPositions tp = new TermPositions();