public <T> T streamEntriesAsBytes(final Txn<ByteBuffer> txn,
                                      final KeyRange<ByteBuffer> keyRange,
                                      final Function<Stream<CursorIterable.KeyVal<ByteBuffer>>, T> streamFunction) {

        try (CursorIterable<ByteBuffer> cursorIterable = getLmdbDbi().iterate(txn, keyRange)) {
            final Stream<CursorIterable.KeyVal<ByteBuffer>> stream =
                    StreamSupport.stream(cursorIterable.spliterator(), false);

            return streamFunction.apply(stream);
        }
    }
Find the first entry matching the supplied key buffer predicate in the supplied key range.
Only de-serialises matched entries.
stroom-lmdb/src/main/java/stroom/lmdb/AbstractLmdbDb.java