public void forEachEntry(final Txn<ByteBuffer> txn,
                             final KeyRange<K> keyRange,
                             final Consumer<Entry<K, V>> keyValueTupleConsumer) {

        try (final PooledByteBuffer startKeyPooledBuffer = getPooledKeyBuffer();
                final PooledByteBuffer stopKeyPooledBuffer = getPooledKeyBuffer()) {

            final KeyRange<ByteBuffer> serialisedKeyRange = serialiseKeyRange(
                    startKeyPooledBuffer,
                    stopKeyPooledBuffer,
                    keyRange);
            forEachEntryAsBytes(txn, serialisedKeyRange, keyVal -> {
                final Entry<K, V> deSerialisedKeyValue = deserializeKeyVal(keyVal);
                keyValueTupleConsumer.accept(deSerialisedKeyValue);
            });
        }
    }
Apply the passes entryConsumer for each entry found in the keyRange.
stroom-lmdb/src/main/java/stroom/lmdb/AbstractLmdbDb.java