public class IdentifierConsumerDocumentProducer extends Object implements SessionAwareRunnable
SessionAwareRunnable
is consuming entity identifiers and
producing corresponding AddLuceneWork
instances being forwarded
to the index writing backend.
It will finish when the queue it is consuming from will
signal there are no more identifiers.Constructor and Description |
---|
IdentifierConsumerDocumentProducer(ProducerConsumerQueue<List<Serializable>> fromIdentifierListToEntities,
org.hibernate.search.batchindexing.MassIndexerProgressMonitor monitor,
SessionFactory sessionFactory,
CountDownLatch producerEndSignal,
CacheMode cacheMode,
Class<?> type,
org.hibernate.search.engine.spi.SearchFactoryImplementor searchFactory,
String idName,
org.hibernate.search.backend.impl.batch.BatchBackend backend,
org.hibernate.search.exception.ErrorHandler errorHandler) |
public IdentifierConsumerDocumentProducer(ProducerConsumerQueue<List<Serializable>> fromIdentifierListToEntities, org.hibernate.search.batchindexing.MassIndexerProgressMonitor monitor, SessionFactory sessionFactory, CountDownLatch producerEndSignal, CacheMode cacheMode, Class<?> type, org.hibernate.search.engine.spi.SearchFactoryImplementor searchFactory, String idName, org.hibernate.search.backend.impl.batch.BatchBackend backend, org.hibernate.search.exception.ErrorHandler errorHandler)
public void run(Session upperSession) throws Exception
run
in interface SessionAwareRunnable
Exception
Copyright © 2018 JBoss by Red Hat. All rights reserved.