All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.hibernate.search.backend.IndexWorkVisitor Maven / Gradle / Ivy

There is a newer version: 5.11.12.Final
Show newest version
/*
 * 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;

import org.hibernate.search.backend.spi.DeleteByQueryLuceneWork;

/**
 * Contract for visitors of {@link LuceneWork} types.
 * 

* Implementations can receive a specific input parameter and return a specific output type. Use {@link Void} as * parameterization for each of the two not needed. * * @author Sanne Grinovero * @author Gunnar Morling * @param

Context parameter type expected by a specific visitor * @param Return type provided by a specific visitor */ public interface IndexWorkVisitor { R visitAddWork(AddLuceneWork work, P p); R visitDeleteWork(DeleteLuceneWork work, P p); R visitOptimizeWork(OptimizeLuceneWork work, P p); R visitPurgeAllWork(PurgeAllLuceneWork work, P p); R visitUpdateWork(UpdateLuceneWork work, P p); R visitFlushWork(FlushLuceneWork work, P p); R visitDeleteByQueryWork(DeleteByQueryLuceneWork work, P p); }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy