(PigServer pigServer, String query)
| 956 | } |
| 957 | |
| 958 | public static void registerMultiLineQuery(PigServer pigServer, String query) throws IOException { |
| 959 | File f = File.createTempFile("tmp", ""); |
| 960 | PrintWriter pw = new PrintWriter(f); |
| 961 | pw.println(query); |
| 962 | pw.close(); |
| 963 | pigServer.registerScript(f.getCanonicalPath()); |
| 964 | } |
| 965 | |
| 966 | public static int executeJavaCommand(String cmd) throws Exception { |
| 967 | return executeJavaCommandAndReturnInfo(cmd).exitCode; |
no test coverage detected