public void forEachEntryAsBytes(final Txn<ByteBuffer> txn,
                                    final KeyRange<ByteBuffer> keyRange,
                                    final Consumer<CursorIterable.KeyVal<ByteBuffer>> entryConsumer) {

        try (CursorIterable<ByteBuffer> cursorIterable = getLmdbDbi().iterate(txn, keyRange)) {
            for (CursorIterable.KeyVal<ByteBuffer> keyVal : cursorIterable) {
                entryConsumer.accept(keyVal);
            }
        }
    }
Apply the passed entryConsumer for each entry found in the keyRange. The consumer works on
the raw bytes of the entry.
stroom-lmdb/src/main/java/stroom/lmdb/AbstractLmdbDb.java