Package edu.byu.hbll.solr.batch
Class Batcher
java.lang.Object
edu.byu.hbll.misc.BatchExecutorService<org.apache.solr.common.SolrInputDocument,org.apache.solr.client.solrj.response.UpdateResponse>
edu.byu.hbll.solr.batch.Batcher
public final class Batcher
extends edu.byu.hbll.misc.BatchExecutorService<org.apache.solr.common.SolrInputDocument,org.apache.solr.client.solrj.response.UpdateResponse>
Implementation of
BatchExecutorService that submits documents to Solr for indexing.-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class edu.byu.hbll.misc.BatchExecutorService
edu.byu.hbll.misc.BatchExecutorService.InterruptableSupplier<T extends Object> -
Method Summary
Modifier and TypeMethodDescriptionsubmitAllDocuments(Collection<? extends org.apache.solr.common.SolrInputDocument> documents) Deprecated.As of 1.2.0.Methods inherited from class edu.byu.hbll.misc.BatchExecutorService
getBatchCapacity, getBatchDelay, getBatchRunnable, getQueue, getQueueCapacity, getSuspend, getThreadCount, shutdown, shutdownAndWait, submit, submitAll
-
Method Details
-
submitAllDocuments
@Deprecated public List<Future<org.apache.solr.client.solrj.response.UpdateResponse>> submitAllDocuments(Collection<? extends org.apache.solr.common.SolrInputDocument> documents) throws InterruptedException Deprecated.As of 1.2.0. UseBatchExecutorService.submitAll(Collection)instead.Convenience method to submit eachSolrInputDocumentin the providedCollection.- Parameters:
documents- the documents to add to the queue- Returns:
- List of
Future UpdateResponse - Throws:
InterruptedException- if this thread is interrupted
-