APISonar


com.facebook.presto.sql.tree.ExplainFormat.Type.JSON

> com > facebook > presto > sql > tree > ExplainFormat > Type > JSON
com APIs facebook APIs presto APIs sql APIs tree APIs ExplainFormat APIs Type APIs JSON APIs

Example 1
public Node visitExplainFormat(SqlBaseParser.ExplainFormatContext context)
    {
        switch (context.value.getType()) {
            case SqlBaseLexer.GRAPHVIZ:
                return new ExplainFormat(ExplainFormat.Type.GRAPHVIZ);
            case SqlBaseLexer.TEXT:
                return new ExplainFormat(ExplainFormat.Type.TEXT);
            case SqlBaseLexer.JSON:
                return new ExplainFormat(ExplainFormat.Type.JSON);
        }

        throw new IllegalArgumentException("Unsupported EXPLAIN format: " + context.value.getText());
    }