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

Method getTuples

tutorial/src/org/apache/pig/tutorial/TutorialTest.java:33–40  ·  view source on GitHub ↗
(String[] queries)

Source from the content-addressed store, hash-verified

31public class TutorialTest {
32
33 private static Tuple[] getTuples(String[] queries) {
34 Tuple[] tuples = new Tuple[queries.length];
35 for (int i = 0; i < tuples.length; i++) {
36 tuples[i] = TupleFactory.getInstance().newTuple(1);
37 try{tuples[i].set(0, queries[i]);}catch(Exception e){}
38 }
39 return tuples;
40 }
41
42 public static String[] testDataAtomEvals(EvalFunc<String> eval, Tuple[] tuples) {
43 List<String> res = new ArrayList<String>();

Callers 1

mainMethod · 0.95

Calls 3

getInstanceMethod · 0.95
newTupleMethod · 0.65
setMethod · 0.65

Tested by

no test coverage detected