fastmodel-transform/fastmodel-transform-doris/src/main/java/com/aliyun/fastmodel/transform/doris/format/DorisOutVisitor.java [383:401]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    public Boolean visitTableIndex(TableIndex tableIndex, Integer ident) {
        builder.append(indentString(ident));
        builder.append("INDEX ").append(formatExpression(tableIndex.getIndexName()));
        appendTableIndex(tableIndex.getIndexColumnNames());
        List<Property> properties = tableIndex.getProperties();
        if (CollectionUtils.isEmpty(properties)) {
            return true;
        }
        Optional<Property> first = properties.stream().filter(p -> {
            return StringUtils.equalsIgnoreCase(p.getName(), TABLE_INDEX_TYPE.getValue());
        }).findFirst();
        first.ifPresent(property -> builder.append(" USING ").append(property.getValue()));

        Optional<Property> comment = properties.stream().filter(p -> {
            return StringUtils.equalsIgnoreCase(p.getName(), TABLE_INDEX_COMMENT.getValue());
        }).findFirst();
        comment.ifPresent(property -> builder.append(" COMMENT ").append(formatStringLiteral(property.getValue())));
        return true;
    }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



fastmodel-transform/fastmodel-transform-starrocks/src/main/java/com/aliyun/fastmodel/transform/starrocks/format/StarRocksOutVisitor.java [387:405]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    public Boolean visitTableIndex(TableIndex tableIndex, Integer ident) {
        builder.append(indentString(ident));
        builder.append("INDEX ").append(formatExpression(tableIndex.getIndexName()));
        appendTableIndex(tableIndex.getIndexColumnNames());
        List<Property> properties = tableIndex.getProperties();
        if (CollectionUtils.isEmpty(properties)) {
            return true;
        }
        Optional<Property> first = properties.stream().filter(p -> {
            return StringUtils.equalsIgnoreCase(p.getName(), TABLE_INDEX_TYPE.getValue());
        }).findFirst();
        first.ifPresent(property -> builder.append(" USING ").append(property.getValue()));

        Optional<Property> comment = properties.stream().filter(p -> {
            return StringUtils.equalsIgnoreCase(p.getName(), TABLE_INDEX_COMMENT.getValue());
        }).findFirst();
        comment.ifPresent(property -> builder.append(" COMMENT ").append(formatStringLiteral(property.getValue())));
        return true;
    }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



