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

Method runPreprocessor

src/org/apache/pig/tools/grunt/GruntParser.java:467–475  ·  view source on GitHub ↗
(String scriptPath, List<String> params, List<String> paramFiles)

Source from the content-addressed store, hash-verified

465 }
466
467 private String runPreprocessor(String scriptPath, List<String> params, List<String> paramFiles)
468 throws IOException, ParseException {
469
470 PigContext context = mPigServer.getPigContext();
471 BufferedReader reader = new BufferedReader(new FileReader(scriptPath));
472 String result = context.doParamSubstitution(reader, params, paramFiles);
473 reader.close();
474 return result;
475 }
476
477 @Override
478 protected void processScript(String script, boolean batch,

Callers 1

loadScriptMethod · 0.95

Calls 3

doParamSubstitutionMethod · 0.95
closeMethod · 0.65
getPigContextMethod · 0.45

Tested by

no test coverage detected