public void queueBatch(Collection<SolrInputDocument> batch) throws IOException, SolrServerException { throwIf(); Batch b = new Batch(batch); if (batchPool != null) { batchPool.execute(b); } else { // single threaded case b.run(); throwIf(); } }
public void queueBatch(Collection<SolrInputDocument> batch) throws IOException, SolrServerException { throwIf(); Batch b = new Batch(batch); if (batchPool != null) { batchPool.execute(b); } else { // single threaded case b.run(); throwIf(); } }