MCPcopy Create free account
hub / github.com/apache/pig / getLogToDataMap

Method getLogToDataMap

src/org/apache/pig/pen/ExampleGenerator.java:290–304  ·  view source on GitHub ↗
(Map<PhysicalOperator, DataBag> phyToDataMap)

Source from the content-addressed store, hash-verified

288 }
289
290 private void getLogToDataMap(Map<PhysicalOperator, DataBag> phyToDataMap) {
291 logToDataMap.clear();
292 for (Operator lo : logToPhyMap.keySet()) {
293 if (logToPhyMap.get(lo) != null)
294 logToDataMap.put(lo, phyToDataMap.get(logToPhyMap.get(lo)));
295 }
296
297 // set the LO-to-Data mapping for the ForEach inner plans
298 for (Map.Entry<LOForEach, Map<LogicalRelationalOperator, DataBag>> entry : forEachInnerLogToDataMap.entrySet()) {
299 entry.getValue().clear();
300 for (Map.Entry<LogicalRelationalOperator, PhysicalOperator> innerEntry : forEachInnerLogToPhyMap.get(entry.getKey()).entrySet()) {
301 entry.getValue().put(innerEntry.getKey(), phyToDataMap.get(innerEntry.getValue()));
302 }
303 }
304 }
305
306 private void setLoadDataMap() {
307 // This function sets up the LO-TO-Data map, eq. class, and lineage for the base data used in the coming runner

Callers 1

getDataMethod · 0.95

Calls 7

entrySetMethod · 0.80
clearMethod · 0.65
getMethod · 0.65
getValueMethod · 0.65
keySetMethod · 0.45
putMethod · 0.45
getKeyMethod · 0.45

Tested by

no test coverage detected