public static List listTags()

in paimon-web-api/src/main/java/org/apache/paimon/web/api/table/TableManager.java [480:503]


    public static List<TagTableMetadata> listTags(Catalog catalog, String dbName, String tableName)
            throws Catalog.TableNotExistException, IOException {
        checkNotNull(catalog, dbName, tableName);

        List<TagTableMetadata> tags = new ArrayList<>();

        Table table = getTable(catalog, dbName, "`" + tableName + "$" + TAGS + "`");

        RecordReader<InternalRow> reader = getReader(table);
        reader.forEachRemaining(
                row -> {
                    TagTableMetadata tagTableMetadata =
                            TagTableMetadata.builder()
                                    .tagName(row.getString(1).toString())
                                    .snapshotId(row.getLong(2))
                                    .schemaId(row.getLong(3))
                                    .createTime(row.getTimestamp(4, 3).toLocalDateTime())
                                    .recordCount(row.getLong(5))
                                    .build();
                    tags.add(tagTableMetadata);
                });

        return tags;
    }