001 002package gudusoft.gsqlparser.dlineage.dataflow.model; 003 004public enum ResultSetType { 005 select_list, array, struct, result_of, cte, insert_select, update_select, merge_update, merge_insert, output, update_set, 006 pivot_table, unpivot_table, alias, function, case_when, cursor, variable; 007 008 public static ResultSetType of(String type) { 009 if (type == null) { 010 return null; 011 } 012 for (ResultSetType resultSetType : ResultSetType.values()) { 013 if (resultSetType.name().equalsIgnoreCase(type.trim())) { 014 return resultSetType; 015 } 016 017 if (resultSetType.name().equalsIgnoreCase(type.trim().replace("-", "_"))) { 018 return resultSetType; 019 } 020 } 021 return null; 022 } 023}