public List<MapDefinition> getMapDefinitions(final Txn<ByteBuffer> readTxn,
                                                 final RefStreamDefinition refStreamDefinition) {

        final List<MapDefinition> mapDefinitions = new ArrayList<>();
        final MapDefinition mapDefinitionWithNoMapName = new MapDefinition(refStreamDefinition);

        try (PooledByteBuffer pooledStartKeyIncBuffer = getPooledKeyBuffer()) {
            final ByteBuffer startKeyIncBuffer = pooledStartKeyIncBuffer.getByteBuffer();

            getKeySerde().serialize(startKeyIncBuffer, mapDefinitionWithNoMapName);

            final KeyRange<ByteBuffer> keyRange = KeyRange.atLeast(startKeyIncBuffer);

            try (CursorIterable<ByteBuffer> cursorIterable = getLmdbDbi().iterate(readTxn, keyRange)) {
                for (final CursorIterable.KeyVal<ByteBuffer> keyVal : cursorIterable) {

                    // our startKeyIncBuffer contains only the refStreamDefinition part
                    // so ensure the key we get back from the cursor is prefixed with that
                    // else we are on a different refStreamDefinition
                    if (!ByteBufferUtils.containsPrefix(keyVal.key(), startKeyIncBuffer)) {
                        break;
                    }

                    final MapDefinition mapDefinition = deserializeKey(keyVal.key());
                    mapDefinitions.add(mapDefinition);
                }
            }
        }
        return mapDefinitions;
    }
Gets all store map names for a given refStreamDefinition.
stroom-pipeline/src/main/java/stroom/pipeline/refdata/store/offheapstore/databases/MapUidForwardDb.java