MCPcopy Create free account
hub / github.com/apache/impala / removeDuplicates

Method removeDuplicates

fe/src/main/java/org/apache/impala/analysis/Expr.java:1324–1329  ·  view source on GitHub ↗

Removes duplicate exprs (according to equals()).

(List<C> l)

Source from the content-addressed store, hash-verified

1322 * Removes duplicate exprs (according to equals()).
1323 */
1324 public static <C extends Expr> void removeDuplicates(List<C> l) {
1325 if (l == null) return;
1326 List<C> origList = Lists.newArrayList(l);
1327 l.clear();
1328 for (C expr: origList) if (!l.contains(expr)) l.add(expr);
1329 }
1330
1331 /**
1332 * Return a new list without duplicate exprs (according to matches() using cmp).

Callers 10

createScanNodeMethod · 0.95
createSortTupleInfoMethod · 0.95
optimizeConjunctsMethod · 0.95
createMethod · 0.95
buildAggregateExprsMethod · 0.95
analyzeGroupingSetsMethod · 0.95
getBoundPredicatesMethod · 0.95
setsHaveValueTransferMethod · 0.95
collectConjunctsMethod · 0.95

Calls 4

clearMethod · 0.65
matchesMethod · 0.65
containsMethod · 0.45
addMethod · 0.45

Tested by

no test coverage detected