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

Method cloneList

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

Create a deep copy of 'l'. The elements of the returned list are of the same type as the input list.

(List<C> l)

Source from the content-addressed store, hash-verified

1278 * type as the input list.
1279 */
1280 public static <C extends Expr> List<C> cloneList(List<C> l) {
1281 Preconditions.checkNotNull(l);
1282 List<C> result = new ArrayList<>(l.size());
1283 for (Expr element: l) {
1284 result.add((C) element.clone());
1285 }
1286 return result;
1287 }
1288
1289 /**
1290 * Create a deep copy of 'ls'. The elements of the returned list are of the same

Callers 15

getOutputSmapMethod · 0.95
PlanNodeMethod · 0.95
AggregateInfoMethod · 0.95
SortInfoMethod · 0.95
ExprMethod · 0.95
cloneMethod · 0.95
cloneMethod · 0.95
AnalyticInfoMethod · 0.95
QueryStmtMethod · 0.95
toInlineViewRefMethod · 0.95
AggregateInfoBaseMethod · 0.95

Calls 3

sizeMethod · 0.45
addMethod · 0.45
cloneMethod · 0.45

Tested by

no test coverage detected