package cn.edu.ruc.iir.rainbow.benchmark.util;

import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.concurrent.atomic.AtomicInteger;

/**
 * @version V1.0
 * @Package: cn.edu.ruc.iir.rainbow.benchmark
 * @ClassName: DataUtil
 * @Description: To sum some static useful functions
 * @author: Tao
 * @date: Create in 2017-07-28 7:11
 **/
public class DataUtil
{
    private static AtomicInteger count = new AtomicInteger(0);

    /**
     * @ClassName: DataUtil
     * @Title:
     * @Description: judge "abc,ab," contains "abc" ?
     * @param:
     * @date: 7:15 2017/7/28
     */
    public static boolean isContainsStr(String str1, String str2)
    {
        boolean flag = false;
        str1 = str1.substring(0, str1.length() - 1);
        String[] str = str1.split(",");
        for (String s : str)
        {
            if (s.equals(str2))
            {
                flag = true;
                break;
            }
        }
        return flag;
    }

    public static String getCurTime()
    {
        SimpleDateFormat df = new SimpleDateFormat("yyyyMMddHHmmss");//set the style
        return df.format(new Date()) + "_" + count.getAndIncrement();
    }

}

@@ -1151,14 +1151,8 @@
 )) +
- %22_%22 +
  cou

fix thread issues