diff --git a/pom.xml b/pom.xml
index 1abce4f..6642cf9 100644
--- a/pom.xml
+++ b/pom.xml
@@ -26,6 +26,23 @@
https://mvn.mchv.eu/repository/mchv-snapshot
+
+
+ mchv-release-distribution
+ MCHV Release Apache Maven Packages Distribution
+ https://mvn.mchv.eu/repository/mchv
+
+
+ mchv-snapshot-distribution
+ MCHV Snapshot Apache Maven Packages Distribution
+ https://mvn.mchv.eu/repository/mchv-snapshot
+
+
+
+ scm:git:https://git.ignuranza.net/andreacavalli/CavalliumDBEngine.git
+ scm:git:https://git.ignuranza.net/andreacavalli/CavalliumDBEngine.git
+ HEAD
+
org.slf4j
diff --git a/src/example/java/it.cavallium.dbengine.client/SpeedExample.java b/src/example/java/it.cavallium.dbengine.client/SpeedExample.java
index c64e771..371210a 100644
--- a/src/example/java/it.cavallium.dbengine.client/SpeedExample.java
+++ b/src/example/java/it.cavallium.dbengine.client/SpeedExample.java
@@ -8,13 +8,12 @@ import it.cavallium.dbengine.database.collections.DatabaseMapDictionary;
import it.cavallium.dbengine.database.collections.DatabaseMapDictionaryDeep;
import it.cavallium.dbengine.database.collections.DatabaseStageEntry;
import it.cavallium.dbengine.database.collections.DatabaseStageMap;
-import it.cavallium.dbengine.database.collections.QueryableBuilder;
-import it.cavallium.dbengine.database.serialization.Serializer;
-import it.cavallium.dbengine.database.serialization.SerializerFixedBinaryLength;
import it.cavallium.dbengine.database.collections.SubStageGetterMap;
import it.cavallium.dbengine.database.collections.SubStageGetterMapDeep;
import it.cavallium.dbengine.database.collections.SubStageGetterSingleBytes;
import it.cavallium.dbengine.database.disk.LLLocalDatabaseConnection;
+import it.cavallium.dbengine.database.serialization.Serializer;
+import it.cavallium.dbengine.database.serialization.SerializerFixedBinaryLength;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Path;
@@ -55,36 +54,6 @@ public class SpeedExample {
.blockOptional();
}
- private static Mono testCreateQueryable() {
- var ssg = new SubStageGetterSingleBytes();
- var ser = SerializerFixedBinaryLength.noop(4);
- var itemKey = new byte[]{0, 1, 2, 3};
- var newValue = new byte[]{4, 5, 6, 7};
- return test("Create Queryable",
- tempDb()
- .flatMap(db -> db.getDictionary("testmap").map(dict -> Tuples.of(db, dict)))
- .map(tuple -> tuple.mapT2(dict -> {
- var builder = new QueryableBuilder(2);
- return builder.wrap(DatabaseMapDictionaryDeep.simple(dict, builder.serializer(), builder.tail(ssg, ser)));
- })),
- tuple -> Flux.range(0, batchSize).flatMap(n -> Mono
- .defer(() -> Mono
- .fromRunnable(() -> {
- if (printPreviousValue)
- System.out.println("Setting new value at key " + Arrays.toString(itemKey) + ": " + Arrays.toString(newValue));
- })
- .then(tuple.getT2().at(null, itemKey))
- .flatMap(handle -> handle.setAndGetPrevious(newValue))
- .doOnSuccess(oldValue -> {
- if (printPreviousValue)
- System.out.println("Old value: " + (oldValue == null ? "None" : Arrays.toString(oldValue)));
- })
- ))
- .then(),
- numRepeats,
- tuple -> tuple.getT1().close());
- }
-
private static Mono test2LevelPut() {
var k1ser = SerializerFixedBinaryLength.noop(4);
var k2ser = SerializerFixedBinaryLength.noop(4);
diff --git a/src/main/java/it/cavallium/dbengine/client/CompositeDatabasePartLocation.java b/src/main/java/it/cavallium/dbengine/client/CompositeDatabasePartLocation.java
index 6b41dcb..c1f6b42 100644
--- a/src/main/java/it/cavallium/dbengine/client/CompositeDatabasePartLocation.java
+++ b/src/main/java/it/cavallium/dbengine/client/CompositeDatabasePartLocation.java
@@ -3,6 +3,7 @@ package it.cavallium.dbengine.client;
import java.util.Objects;
import java.util.StringJoiner;
+@SuppressWarnings("unused")
public class CompositeDatabasePartLocation {
private final CompositeDatabasePartType partType;
private final String partName;
diff --git a/src/main/java/it/cavallium/dbengine/database/LLDatabaseConnection.java b/src/main/java/it/cavallium/dbengine/database/LLDatabaseConnection.java
index 569c568..1f383f4 100644
--- a/src/main/java/it/cavallium/dbengine/database/LLDatabaseConnection.java
+++ b/src/main/java/it/cavallium/dbengine/database/LLDatabaseConnection.java
@@ -5,6 +5,7 @@ import java.time.Duration;
import java.util.List;
import reactor.core.publisher.Mono;
+@SuppressWarnings("UnusedReturnValue")
public interface LLDatabaseConnection {
Mono extends LLDatabaseConnection> connect();
diff --git a/src/main/java/it/cavallium/dbengine/database/LLDictionary.java b/src/main/java/it/cavallium/dbengine/database/LLDictionary.java
index e2fc98f..cd6d2d3 100644
--- a/src/main/java/it/cavallium/dbengine/database/LLDictionary.java
+++ b/src/main/java/it/cavallium/dbengine/database/LLDictionary.java
@@ -8,6 +8,7 @@ import org.warp.commonutils.concurrency.atomicity.NotAtomic;
import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;
+@SuppressWarnings("unused")
@NotAtomic
public interface LLDictionary extends LLKeyValueDatabaseStructure {
diff --git a/src/main/java/it/cavallium/dbengine/database/LLDictionaryResultType.java b/src/main/java/it/cavallium/dbengine/database/LLDictionaryResultType.java
index f09809f..d6b5d04 100644
--- a/src/main/java/it/cavallium/dbengine/database/LLDictionaryResultType.java
+++ b/src/main/java/it/cavallium/dbengine/database/LLDictionaryResultType.java
@@ -1,5 +1,5 @@
package it.cavallium.dbengine.database;
public enum LLDictionaryResultType {
- VOID, VALUE_CHANGED, PREVIOUS_VALUE;
+ VOID, VALUE_CHANGED, PREVIOUS_VALUE
}
diff --git a/src/main/java/it/cavallium/dbengine/database/LLItem.java b/src/main/java/it/cavallium/dbengine/database/LLItem.java
index 55f1c8c..10ba409 100644
--- a/src/main/java/it/cavallium/dbengine/database/LLItem.java
+++ b/src/main/java/it/cavallium/dbengine/database/LLItem.java
@@ -8,17 +8,16 @@ import java.util.Arrays;
import java.util.Objects;
import java.util.StringJoiner;
import org.apache.lucene.document.Field;
-import org.jetbrains.annotations.Nullable;
public class LLItem {
private final LLType type;
private final String name;
private final byte[] data;
- @Nullable
+ // nullable
private final byte[] data2;
- public LLItem(LLType type, String name, byte[] data, @Nullable byte[] data2) {
+ public LLItem(LLType type, String name, byte[] data, byte[] data2) {
this.type = type;
this.name = name;
this.data = data;
diff --git a/src/main/java/it/cavallium/dbengine/database/collections/DatabaseMapDictionary.java b/src/main/java/it/cavallium/dbengine/database/collections/DatabaseMapDictionary.java
index 1467132..9403749 100644
--- a/src/main/java/it/cavallium/dbengine/database/collections/DatabaseMapDictionary.java
+++ b/src/main/java/it/cavallium/dbengine/database/collections/DatabaseMapDictionary.java
@@ -74,10 +74,6 @@ public class DatabaseMapDictionary extends DatabaseMapDictionaryDeep stripPrefix(Entry entry) {
- return Map.entry(stripPrefix(entry.getKey()), entry.getValue());
- }
-
@Override
public Mono