@param inpD @throws IOException
(DataBag inpD)
| 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 { |
no test coverage detected