/** Write the posting to the output collector
*/
@Override
public void writeTerm(final String term, final Posting post) throws IOException
{
final MemorySBOS Docs = post.getDocs();
Docs.pad();
//get the posting array buffer
byte[] buffer = new byte[Docs.getMOS().getPos()+1];
System.arraycopy(Docs.getMOS().getBuffer(), 0,
buffer, 0,
Math.min(Docs.getMOS().getBuffer().length, Docs.getMOS().getPos()+1));
//emit the term and its posting list
outputCollector.collect(
SplitEmittedTerm.createNewTerm(term, splitId, flushNo),
MapEmittedPostingList.create_Hadoop_WritableRunPostingData(