161162163164165166167168169170171
ls.add(s); // Add LOForEach set s = new HashSet<Rule>(); // Add the AddForEach r = new AddForEach("AddForEach"); checkAndAddRule(s, r); if (!s.isEmpty()) ls.add(s); // Add MergeForEach set
323324325326327328329330331332333
// Split Set // This set of rules does splitting of operators only. // It does not move operators s = new HashSet<Rule>(); r = new AddForEach( "AddForEach" ); s.add(r); ls.add(s); s = new HashSet<Rule>(); r = new MergeForEach("MergeForEach");
403404405406407408409410411412413
Rule r = new ColumnMapKeyPrune("ColumnMapKeyPrune"); Set<Rule> s = new HashSet<Rule>(); s.add(r); ls.add(s); r = new AddForEach("AddForEach"); s = new HashSet<Rule>(); s.add(r); ls.add(s); return ls;
159160161162163164165166167168169