public SequencedMap<K, V> asSequencedMap(final Txn<ByteBuffer> txn,
                                             final KeyRange<K> keyRange) {
        return streamEntries(txn, keyRange, stream -> stream
                .collect(Collectors.toMap(
                        Entry::getKey,
                        Entry::getValue,
                        (o, o2) -> o, // Merge shouldn't be an issue as the db is essentially a map
                        LinkedHashMap::new)));
    }
Get all entries found in keyRange in the order they are found in the DB.

@return The result of the stream mapping function.
stroom-lmdb/src/main/java/stroom/lmdb/AbstractLmdbDb.java