while (itr.hasNext()) {
BytesWritable wrtKey = (BytesWritable) itr.next();
Writable wrt = writable.get(wrtKey);
if (wrt instanceof DocumentPutWritable) {
DocumentPutWritable docBytes = (DocumentPutWritable) wrt;
String globalId = docBytes.getGlobalId();
int docId = docBytes.getDocId();
Put mapping = new Put(Bytes.toBytes(globalId));
mapping.add(Bytes.toBytes("docId"), Bytes.toBytes(""), Bytes.toBytes(docId));
context.write(new ImmutableBytesWritable(SolbaseUtil.docKeyIdMapTable), mapping);
context.getCounter(Counters.TOTAL_DOC_KEY_ID_MAP).increment(1);
List<String> fieldKeys = docBytes.getFieldKeys();
List<byte[]> fieldValues = docBytes.getFieldValues();
List<Term> allTerms = docBytes.getAllTerms();
byte[] md5DocId = SolbaseUtil.randomize(docId);
Put documentPut = new Put(md5DocId);