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

Method getIds

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

Find all unique slot and/or tuple ids referenced by this expr tree. @param tupleIds unique tuple IDs from this expr tree are appended here. @param slotIds unique slot IDs from this expr tree are appended here.

(List<TupleId> tupleIds, List<SlotId> slotIds)

Source from the content-addressed store, hash-verified

1495 * @param slotIds unique slot IDs from this expr tree are appended here.
1496 */
1497 public void getIds(List<TupleId> tupleIds, List<SlotId> slotIds) {
1498 Set<TupleId> tupleIdSet = new HashSet<>();
1499 Set<SlotId> slotIdSet = new HashSet<>();
1500 getIdsHelper(tupleIdSet, slotIdSet);
1501 if (tupleIds != null) tupleIds.addAll(tupleIdSet);
1502 if (slotIds != null) slotIds.addAll(slotIdSet);
1503 }
1504
1505 protected void getIdsHelper(Set<TupleId> tupleIds, Set<SlotId> slotIds) {
1506 for (Expr child: children_) {

Callers 15

convertToCNFMethod · 0.95
mergeExprMethod · 0.95
getBoundPredicatesMethod · 0.95
getTableConjunctsMethod · 0.95
makeExprExecutableMethod · 0.80
getColumnsInExprMethod · 0.80
toThriftMethod · 0.80

Calls 2

getIdsHelperMethod · 0.95
addAllMethod · 0.80

Tested by 1

makeExprExecutableMethod · 0.64