Add utility method to lazyhitentry
This commit is contained in:
parent
87c031fe71
commit
6bd3fdb677
@ -8,4 +8,8 @@ public record LazyHitEntry<T, U>(Mono<T> key, Mono<U> value, float score) {
|
|||||||
public Mono<HitEntry<T, U>> resolve() {
|
public Mono<HitEntry<T, U>> resolve() {
|
||||||
return Mono.zip(key, value, (k, v) -> new HitEntry<>(k, v, score));
|
return Mono.zip(key, value, (k, v) -> new HitEntry<>(k, v, score));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public Mono<HitKey<T>> resolveKey() {
|
||||||
|
return key.map(k -> new HitKey<>(k, score));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -205,6 +205,7 @@ public class LLLocalKeyValueDatabase implements LLKeyValueDatabase {
|
|||||||
.setPartitionFilters(true)
|
.setPartitionFilters(true)
|
||||||
.setIndexType(IndexType.kTwoLevelIndexSearch)
|
.setIndexType(IndexType.kTwoLevelIndexSearch)
|
||||||
.setFormatVersion(5)
|
.setFormatVersion(5)
|
||||||
|
//todo: replace with kxxhash3
|
||||||
.setChecksumType(ChecksumType.kxxHash)
|
.setChecksumType(ChecksumType.kxxHash)
|
||||||
.setBlockCacheCompressed(optionsWithCache.compressedCache())
|
.setBlockCacheCompressed(optionsWithCache.compressedCache())
|
||||||
.setBlockCache(optionsWithCache.standardCache())
|
.setBlockCache(optionsWithCache.standardCache())
|
||||||
|
Loading…
Reference in New Issue
Block a user