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

Method phyToMRTransform

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

Source from the content-addressed store, hash-verified

276 }
277
278 private void phyToMRTransform(PhysicalPlan plan, Map<PhysicalOperator, DataBag> phyToDataMap) {
279 // remap the LO to PO as result of the MR compilation may have changed PO in the MR plans
280 Map<PhysicalOperator, PhysicalOperator> phyToMRMap = localMRRunner.getPhyToMRMap();
281 for (Map.Entry<PhysicalOperator, Operator> entry : poToLogMap.entrySet()) {
282 if (phyToMRMap.get(entry.getKey()) != null) {
283 PhysicalOperator poInMR = phyToMRMap.get(entry.getKey());
284 logToDataMap.put(entry.getValue(), phyToDataMap.get(poInMR));
285 poToEqclassesMap.put(entry.getKey(), poToEqclassesMap.get(poInMR));
286 }
287 }
288 }
289
290 private void getLogToDataMap(Map<PhysicalOperator, DataBag> phyToDataMap) {
291 logToDataMap.clear();

Callers 1

getDataMethod · 0.95

Calls 6

getPhyToMRMapMethod · 0.80
entrySetMethod · 0.80
getMethod · 0.65
getValueMethod · 0.65
getKeyMethod · 0.45
putMethod · 0.45

Tested by

no test coverage detected