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

Method setUpInputFileOnCluster

test/org/apache/pig/test/TestStore.java:203–211  ·  view source on GitHub ↗

@param inpD @throws IOException

(DataBag inpD)

Source from the content-addressed store, hash-verified

201 * @throws IOException
202 */
203 private void setUpInputFileOnCluster(DataBag inpD) throws IOException {
204 String[] data = new String[(int) inpD.size()];
205 int i = 0;
206 for (Tuple tuple : inpD) {
207 data[i] = toDelimitedString(tuple, "\t");
208 i++;
209 }
210 Util.createInputFile(cluster, inputFileName, data);
211 }
212
213 @SuppressWarnings("unchecked")
214 private String toDelimitedString(Tuple t, String delim) throws ExecException {

Callers 1

storeAndCopyLocallyMethod · 0.95

Calls 3

toDelimitedStringMethod · 0.95
createInputFileMethod · 0.95
sizeMethod · 0.65

Tested by

no test coverage detected