public void logAllContents(Consumer<String> logEntryConsumer) {
        AtomicLong counter = new AtomicLong();
        final Consumer<String> countingConsumer = str -> {
            counter.incrementAndGet();
            logEntryConsumer.accept(str);
        };
        databaseMap.entrySet().stream()
                .sorted(Map.Entry.comparingByKey())
                .map(Map.Entry::getValue)
                .forEach(lmdbDb ->
                        lmdbDb.logDatabaseContents(countingConsumer));
        if (counter.get() == 0) {
            logEntryConsumer.accept("All databases are empty");
        }
    }
For use in testing at SMALL scale. Dumps the content of each DB to the logger.
stroom-pipeline/src/main/java/stroom/pipeline/refdata/store/offheapstore/RefDataLmdbEnv.java