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() {
|
||||
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)
|
||||
.setIndexType(IndexType.kTwoLevelIndexSearch)
|
||||
.setFormatVersion(5)
|
||||
//todo: replace with kxxhash3
|
||||
.setChecksumType(ChecksumType.kxxHash)
|
||||
.setBlockCacheCompressed(optionsWithCache.compressedCache())
|
||||
.setBlockCache(optionsWithCache.standardCache())
|
||||
|
Loading…
Reference in New Issue
Block a user