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

Method setUp

test/org/apache/pig/test/TestStoreOld.java:108–121  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

106 }
107
108 @Before
109 public void setUp() throws Exception {
110 File f = File.createTempFile("tmp", "");
111 PrintWriter pw = new PrintWriter(f);
112 for (int i=0;i<LOOP_COUNT; i++){
113 pw.println(i + "\t" + i);
114 }
115 pw.close();
116 pig = new PigServer(cluster.getExecType(), cluster.getProperties());
117 fileName = "'" + FileLocalizer.hadoopify(f.toString(), pig.getPigContext()) + "'";
118 tmpFile1 = "'" + FileLocalizer.getTemporaryPath(pig.getPigContext()).toString() + "'";
119 tmpFile2 = "'" + FileLocalizer.getTemporaryPath(pig.getPigContext()).toString() + "'";
120 f.delete();
121 }
122
123}

Callers

nothing calls this directly

Calls 9

hadoopifyMethod · 0.95
getTemporaryPathMethod · 0.95
closeMethod · 0.65
deleteMethod · 0.65
createTempFileMethod · 0.45
getExecTypeMethod · 0.45
getPropertiesMethod · 0.45
toStringMethod · 0.45
getPigContextMethod · 0.45

Tested by

no test coverage detected