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

Method sortQueryOutputsIfNeed

test/org/apache/pig/test/Util.java:1337–1344  ·  view source on GitHub ↗
(List<Tuple> actualResList, boolean toSort)

Source from the content-addressed store, hash-verified

1335 }
1336
1337 public static void sortQueryOutputsIfNeed(List<Tuple> actualResList, boolean toSort){
1338 if( toSort == true) {
1339 for (Tuple t : actualResList) {
1340 Util.convertBagToSortedBag(t);
1341 }
1342 Collections.sort(actualResList);
1343 }
1344 }
1345
1346 public static void checkQueryOutputs(Iterator<Tuple> actualResults, List<Tuple> expectedResults, boolean checkAfterSort) {
1347 if (checkAfterSort) {

Calls 2

convertBagToSortedBagMethod · 0.95
sortMethod · 0.80

Tested by

no test coverage detected