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

Method checkQueryOutputsAfterSort

test/org/apache/pig/test/Util.java:579–586  ·  view source on GitHub ↗

Helper function to check if the result of a Pig Query is in line with expected results. It sorts actual and expected results before comparison @param actualResultsIt Result of the executed Pig query @param expectedResList Expected results to validate against

(Iterator<Tuple> actualResultsIt,
                                     List<Tuple> expectedResList)

Source from the content-addressed store, hash-verified

577 * @param expectedResList Expected results to validate against
578 */
579 static public void checkQueryOutputsAfterSort(Iterator<Tuple> actualResultsIt,
580 List<Tuple> expectedResList) {
581 List<Tuple> actualResList = new ArrayList<Tuple>();
582 while(actualResultsIt.hasNext()){
583 actualResList.add(actualResultsIt.next());
584 }
585 checkQueryOutputsAfterSort(actualResList, expectedResList);
586 }
587
588 /**
589 * Helper function to check if the result of Pig Query is in line with expected results.

Calls 9

getInstanceMethod · 0.95
appendMethod · 0.95
sortMethod · 0.80
addMethod · 0.65
newTupleMethod · 0.65
addAllMethod · 0.65
hasNextMethod · 0.45
nextMethod · 0.45
assertEqualsMethod · 0.45

Tested by

no test coverage detected