class MySqlInsertParser extends MySqlSqlParser {

    @Override
    public void parse(ParseResult result) {

        // 解析sql
        statement = parser.parseStatement();

        MySqlInsertStatement insert = (MySqlInsertStatement)statement;

        String tableName = StringUtil.removeBackquote(insert.getTableName().getSimpleName());

        result.addTable(tableName);

        // 不是分区表
        if (!BaymaxContext.isPartitionTable(tableName)){
            return;
        }

        if (isMultiInsert(insert)){
            // 批量插入
            throw new UnsupportedOperationException("分区表不支持insert into ...values (),()...或 insert into ...select.....形式的批量插入");
        }else {
            // 单条插入
            result.setCalculateUnits(parserSingleInsert(tableName, insert));
        }
    }

}