Class ThreadedBatchIndexing


  • public class ThreadedBatchIndexing
    extends BatchIndexing
    An implementation of BatchIndexing that uses Java 8 parallel streams to increase indexing speed on multi-core machines.
    Since:
    4.2
    Author:
    Craig Macdonald
    • Field Detail

      • logger

        protected static org.slf4j.Logger logger
        The logger used
    • Constructor Detail

      • ThreadedBatchIndexing

        public ThreadedBatchIndexing​(java.lang.String _path,
                                     java.lang.String _prefix,
                                     boolean _singlePass)
      • ThreadedBatchIndexing

        public ThreadedBatchIndexing​(java.lang.String _path,
                                     java.lang.String _prefix,
                                     boolean _singlePass,
                                     int threads)
    • Method Detail

      • setMaxThreads

        public void setMaxThreads​(int threads)
        Define maximum number of threads in use. -1 for no limit.