14 lines
403 B
Java
14 lines
403 B
Java
package it.cavallium.dbengine.database;
|
|
|
|
import java.util.function.BiFunction;
|
|
import org.jetbrains.annotations.NotNull;
|
|
import reactor.core.publisher.Flux;
|
|
|
|
public record LLSearchResult(Flux<LLSearchResultShard> results) {
|
|
|
|
@NotNull
|
|
public static BiFunction<LLSearchResult, LLSearchResult, LLSearchResult> accumulator() {
|
|
return (a, b) -> new LLSearchResult(Flux.merge(a.results, b.results));
|
|
}
|
|
}
|