public void add(int shard, Map<String, SolrInputDocument> inputDocumentMap) throws SolrServerException, IOException {
for (Entry<String, SolrInputDocument> documentEntry : inputDocumentMap.entrySet()) {
try {
context.write(
new Text(documentEntry.getKey()),
new SolrInputDocumentWritable(documentEntry.getValue()));
context.getCounter(HBaseIndexerCounters.OUTPUT_INDEX_DOCUMENTS).increment(1L);
} catch (InterruptedException e) {
Thread.currentThread().interrupt();
throw new RuntimeException(e);
}