@Test
public void getStatistic() {

    String arg = "5ff6b2e4db4e8245bd1e809a8ec98b65";
    String filePath = SysConfig.Catalog_Project + "pipline/" + arg + "/presto_duration.csv";
    List<Statistic> list = new ArrayList<Statistic>();
    try (BufferedReader reader = InputFactory.Instance().getReader(filePath)) {
        String line;
        String[] splits;
        int i = 0;
        List<double[]> li1 = new ArrayList<double[]>();
        List<double[]> li2 = new ArrayList<double[]>();
        while ((line = reader.readLine()) != null) {
            splits = line.split(",");
            if (splits.length == 2) {
                double[] s = {Double.valueOf(i), Double.valueOf(splits[1])};
                li1.add(s);
            } else {
                double[] s = {Double.valueOf(i), Double.valueOf(splits[1])};
                double[] s1 = {Double.valueOf(i), Double.valueOf(splits[2])};
                li1.add(s);
                li2.add(s1);
            }
            i++;
        }
        Statistic s1, s2;
        s1 = new Statistic("Origin", li1);
        list.add(s1);
        if (li2.size() > 0) {
            s2 = new Statistic("optimization", li2);
            list.add(s2);
        } else {
        }
    } catch (IOException e) {
        e.printStackTrace();
    }
    String aJson = JSON.toJSONString(list);
    System.out.println(aJson);
}