CavalliumDBEngine/src/main/java/it/cavallium/dbengine/database/disk/IndexSearcherManager.java

21 lines
633 B
Java
Raw Normal View History

2021-09-18 18:34:21 +02:00
package it.cavallium.dbengine.database.disk;
2022-07-15 02:44:50 +02:00
import io.netty5.util.Send;
2021-09-18 18:34:21 +02:00
import it.cavallium.dbengine.database.LLSnapshot;
2022-06-30 13:54:55 +02:00
import it.cavallium.dbengine.database.SafeCloseable;
2021-09-18 18:34:21 +02:00
import java.io.IOException;
import java.util.function.Function;
import org.apache.lucene.search.IndexSearcher;
import org.jetbrains.annotations.Nullable;
import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;
2022-06-30 13:54:55 +02:00
public interface IndexSearcherManager extends SafeCloseable {
2021-09-18 18:34:21 +02:00
void maybeRefreshBlocking() throws IOException;
void maybeRefresh() throws IOException;
2022-06-14 13:10:38 +02:00
Mono<LLIndexSearcher> retrieveSearcher(@Nullable LLSnapshot snapshot);
2021-09-18 18:34:21 +02:00
}