org.hibernate.search.backend.impl.lucene.works.LuceneWorkDelegate Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of infinispan-embedded-query
Show all versions of infinispan-embedded-query
Infinispan Embedded Query All-in-One module
/*
* Hibernate Search, full-text search for your domain model
*
* License: GNU Lesser General Public License (LGPL), version 2.1 or later
* See the lgpl.txt file in the root directory or .
*/
package org.hibernate.search.backend.impl.lucene.works;
import org.apache.lucene.index.IndexWriter;
import org.hibernate.search.backend.IndexingMonitor;
import org.hibernate.search.backend.LuceneWork;
/**
* LuceneWorkDelegate interface.
*
* @author Sanne Grinovero
*/
public interface LuceneWorkDelegate {
/**
* Will perform work on an IndexWriter.
*
* @param work the LuceneWork to apply to the IndexWriter.
* @param writer the IndexWriter to use.
* @param monitor will be notified of performed operations
* @throws java.lang.UnsupportedOperationException when the work is not compatible with an IndexWriter.
*/
void performWork(LuceneWork work, IndexWriter writer, IndexingMonitor monitor);
}