2021-09-19 19:59:37 +02:00
|
|
|
package it.cavallium.dbengine.lucene.searcher;
|
|
|
|
|
2021-09-20 11:35:01 +02:00
|
|
|
import it.cavallium.dbengine.database.disk.LLIndexSearcher;
|
|
|
|
import java.util.List;
|
|
|
|
import org.apache.lucene.index.IndexReader;
|
2021-09-19 19:59:37 +02:00
|
|
|
import reactor.core.publisher.Mono;
|
|
|
|
|
|
|
|
public interface LLSearchTransformer {
|
|
|
|
|
2021-09-20 11:35:01 +02:00
|
|
|
LLSearchTransformer NO_TRANSFORMATION = queryParamsMono -> queryParamsMono
|
|
|
|
.map(TransformerInput::queryParams);
|
2021-09-19 19:59:37 +02:00
|
|
|
|
2021-09-20 11:35:01 +02:00
|
|
|
record TransformerInput(List<LLIndexSearcher> indexSearchers,
|
|
|
|
LocalQueryParams queryParams) {}
|
|
|
|
|
|
|
|
Mono<LocalQueryParams> transform(Mono<TransformerInput> inputMono);
|
2021-09-19 19:59:37 +02:00
|
|
|
}
|