Update pom.xml and Example.java

This commit is contained in:
Andrea Cavalli 2021-02-01 12:08:16 +01:00
parent ffc7e3c35a
commit 1b9b2b187a
2 changed files with 7 additions and 3 deletions

View File

@ -98,7 +98,7 @@
<dependency>
<groupId>org.rocksdb</groupId>
<artifactId>rocksdbjni</artifactId>
<version>6.11.4</version>
<version>6.15.2</version>
</dependency>
<dependency>
<groupId>org.apache.lucene</groupId>

View File

@ -255,7 +255,7 @@ public class Example {
}
private static <U> Mono<? extends LLKeyValueDatabase> tempDb() {
var wrkspcPath = Path.of("/home/ubuntu/tempdb/");
var wrkspcPath = Path.of("/tmp/tempdb/");
return Mono
.fromCallable(() -> {
if (Files.exists(wrkspcPath)) {
@ -277,7 +277,11 @@ public class Example {
.flatMap(conn -> conn.getDatabase("testdb", List.of(Column.dictionary("testmap")), false));
}
public static <A, B, C> Mono<Void> test(String name, Mono<A> setup, Function<A, Mono<B>> test, long numRepeats, Function<A, Mono<C>> close) {
public static <A, B, C> Mono<Void> test(String name,
Mono<A> setup,
Function<A, Mono<B>> test,
long numRepeats,
Function<A, Mono<C>> close) {
One<Instant> instantInit = Sinks.one();
One<Instant> instantInitTest = Sinks.one();
One<Instant> instantEndTest = Sinks.one();