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

Method sortUDFs

test/org/apache/pig/test/utils/TestHelper.java:431–441  ·  view source on GitHub ↗

Sort UDFs for golden plan

(String goldenString)

Source from the content-addressed store, hash-verified

429 * Sort UDFs for golden plan
430 */
431 public static String sortUDFs(String goldenString) {
432 String regex = "MapReduce\\([0-9]*\\,(.*)\\) - -[0-9]*\\:";
433 String[] goldenArray = goldenString.split("\n");
434
435 for (int i = 0; i < goldenArray.length; i++) {
436 goldenString = goldenString.replace(goldenArray[i],
437 sortString(regex, goldenArray[i], ","));
438 }
439
440 return goldenString;
441 }
442
443 /**
444 * sort subFields for LogMessages

Callers 3

runMethod · 0.95
runMethod · 0.95
runMethod · 0.95

Calls 3

sortStringMethod · 0.95
splitMethod · 0.80
replaceMethod · 0.65

Tested by

no test coverage detected