use PersistentMap in DataStore

Replaces the use of in-memory data structures with the PersistentMap.
This is the crucial step in reducing memory usage for both persistent
storage and main memory.
This commit is contained in:
2018-11-17 09:45:35 +01:00
parent 3ccf526608
commit fce0f6a04d
12 changed files with 379 additions and 459 deletions

View File

@@ -58,4 +58,10 @@ public class Preconditions {
}
}
public static void checkNull(final Object actual, final String message, final Object... args) {
if (actual != null) {
throw new IllegalStateException(MessageFormat.format(message, args));
}
}
}