public long getEntryCount(final UID mapUid, final Txn<ByteBuffer> readTxn) {
        long cnt = 0;
        try (final PooledByteBuffer startKeyBuffer = getPooledKeyBuffer();
                final PooledByteBuffer endKeyBuffer = getPooledKeyBuffer()) {

            final KeyRange<ByteBuffer> keyRange = buildSingleMapUidKeyRange(
                    mapUid,
                    startKeyBuffer.getByteBuffer(),
                    endKeyBuffer.getByteBuffer());

            try (CursorIterable<ByteBuffer> cursorIterable = getLmdbDbi().iterate(
                    readTxn, keyRange)) {

                for (final KeyVal<ByteBuffer> ignored : cursorIterable) {
                    cnt++;
                }
            }
        }
        return cnt;
    }
Apply the passes entryConsumer for each entry found matching the supplied UID
stroom-pipeline/src/main/java/stroom/pipeline/refdata/store/offheapstore/databases/RangeStoreDb.java