org.hibernate.search.batchindexing
Class EntityConsumerLuceneworkProducer

java.lang.Object
  extended by org.hibernate.search.batchindexing.EntityConsumerLuceneworkProducer
All Implemented Interfaces:
java.lang.Runnable

public class EntityConsumerLuceneworkProducer
extends java.lang.Object
implements java.lang.Runnable

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.

Author:
Sanne Grinovero

Constructor Summary
EntityConsumerLuceneworkProducer(ProducerConsumerQueue<java.util.List<?>> entitySource, MassIndexerProgressMonitor monitor, org.hibernate.SessionFactory sessionFactory, java.util.concurrent.CountDownLatch producerEndSignal, SearchFactoryImplementor searchFactory, org.hibernate.CacheMode cacheMode, BatchBackend backend)
           
 
Method Summary
 void run()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EntityConsumerLuceneworkProducer

public EntityConsumerLuceneworkProducer(ProducerConsumerQueue<java.util.List<?>> entitySource,
                                        MassIndexerProgressMonitor monitor,
                                        org.hibernate.SessionFactory sessionFactory,
                                        java.util.concurrent.CountDownLatch producerEndSignal,
                                        SearchFactoryImplementor searchFactory,
                                        org.hibernate.CacheMode cacheMode,
                                        BatchBackend backend)
Method Detail

run

public void run()
Specified by:
run in interface java.lang.Runnable


Copyright © 2006-2010 Hibernate. All Rights Reserved.