Creates a clone of the current DAG @return A Graph object which is a clone of the current DAG @throws IOException
()
| 801 | * @throws IOException |
| 802 | */ |
| 803 | protected Graph getClonedGraph() throws IOException { |
| 804 | Graph graph = currDAG.duplicate(); |
| 805 | |
| 806 | if (graph == null) { |
| 807 | int errCode = 2127; |
| 808 | String msg = "Cloning of plan failed."; |
| 809 | throw new FrontendException(msg, errCode, PigException.BUG); |
| 810 | } |
| 811 | return graph; |
| 812 | } |
| 813 | |
| 814 | |
| 815 | /** |
no test coverage detected