@Test public void testRemoveIndex() { String sql = "select * from tab"; String remove = GroupHintParser.removeTddlGroupHint(sql); Assert.assertEquals(remove, " select * from tab"); }
public static String removeTddlGroupHint(String sql) { String tddlHint = extractTDDLGroupHint(sql); if (null == tddlHint || "".equals(tddlHint)) { return sql; } sql = TStringUtil.removeBetweenWithSplitor(sql, ""); return sql; }
GroupHintParser { public static String removeTddlGroupHint(String sql) { String tddlHint = extractTDDLGroupHint(sql); if (null == tddlHint || "".equals(tddlHint)) { return sql; } sql = TStringUtil.removeBetweenWithSplitor(sql, ""); return sql; } }
GroupHintParser { public static String removeTddlGroupHint(String sql) { String tddlHint = extractTDDLGroupHint(sql); if (null == tddlHint || "".equals(tddlHint)) { return sql; } sql = TStringUtil.removeBetweenWithSplitor(sql, ""); return sql; }  }
GroupHintParser { public static String removeTddlGroupHint(String sql) { String tddlHint = extractTDDLGroupHint(sql); if (null == tddlHint || "".equals(tddlHint)) { return sql; } sql = TStringUtil.removeBetweenWithSplitor(sql, ""); return sql; }  static GroupIndex convertHint2Index(String sql); static String extractTDDLGroupHint(String sql); static String removeTddlGroupHint(String sql); static String buildTddlGroupHint(String groupHint); static void main(String[] args); }
GroupHintParser { public static String removeTddlGroupHint(String sql) { String tddlHint = extractTDDLGroupHint(sql); if (null == tddlHint || "".equals(tddlHint)) { return sql; } sql = TStringUtil.removeBetweenWithSplitor(sql, ""); return sql; }  static GroupIndex convertHint2Index(String sql); static String extractTDDLGroupHint(String sql); static String removeTddlGroupHint(String sql); static String buildTddlGroupHint(String groupHint); static void main(String[] args); static Logger log; }