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 Classes
    Modifier and Type
    Class
    Description
    static final class 
    Configures and builds a new solr Batcher.

    Nested classes/interfaces inherited from class edu.byu.hbll.misc.BatchExecutorService

    edu.byu.hbll.misc.BatchExecutorService.InterruptableSupplier<T extends Object>
  • Method Summary

    Modifier and Type
    Method
    Description
    List<Future<org.apache.solr.client.solrj.response.UpdateResponse>>
    submitAllDocuments(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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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. Use BatchExecutorService.submitAll(Collection) instead.
      Convenience method to submit each SolrInputDocument in the provided Collection.
      Parameters:
      documents - the documents to add to the queue
      Returns:
      List of Future UpdateResponse
      Throws:
      InterruptedException - if this thread is interrupted