if (isEndOfCommand(extendedLine)) {
queryStr.append(" " + extendedLine);
long start = System.currentTimeMillis();
HQLClient hql = new HQLClient(conf, MASTER_ADDRESS, out, tableFormater);
ReturnMsg rs = hql.executeQuery(queryStr.toString());
long end = System.currentTimeMillis();
if (rs != null) {
if (rs != null && rs.getType() > -1)
System.out.println(rs.getMsg() +
executeTime((rs.getType() == 1), start, end));
else if (rs.getType() == -9)
System.out.println(rs.getMsg());
}
queryStr = new StringBuilder();
} else {
queryStr.append(" " + extendedLine);
}