Class EntityConsumerLuceneWorkProducer
java.lang.Object
org.hibernate.search.batchindexing.EntityConsumerLuceneWorkProducer
- All Implemented Interfaces:
SessionAwareRunnable
Component of batch-indexing pipeline, using chained producer-consumers.
This Runnable will consume entities taken one-by-one from the queue
and produce for each entity an AddLuceneWork to the output queue.
-
Constructor Summary
ConstructorsConstructorDescriptionEntityConsumerLuceneWorkProducer(ProducerConsumerQueue<List<?>> entitySource, MassIndexerProgressMonitor monitor, org.hibernate.SessionFactory sessionFactory, CountDownLatch producerEndSignal, SearchFactoryImplementor searchFactory, org.hibernate.CacheMode cacheMode, BatchBackend backend) -
Method Summary
-
Constructor Details
-
EntityConsumerLuceneWorkProducer
public EntityConsumerLuceneWorkProducer(ProducerConsumerQueue<List<?>> entitySource, MassIndexerProgressMonitor monitor, org.hibernate.SessionFactory sessionFactory, CountDownLatch producerEndSignal, SearchFactoryImplementor searchFactory, org.hibernate.CacheMode cacheMode, BatchBackend backend)
-
-
Method Details
-
run
- Specified by:
runin interfaceSessionAwareRunnable
-