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

Method setScript

src/org/apache/pig/tools/pigstats/ScriptState.java:280–295  ·  view source on GitHub ↗
(File file)

Source from the content-addressed store, hash-verified

278 }
279
280 public void setScript(File file) throws IOException {
281 BufferedReader reader = null;
282 try {
283 reader = new BufferedReader(new FileReader(file));
284 setScript(reader);
285 } catch (FileNotFoundException e) {
286 LOG.warn("unable to find the file", e);
287 } finally {
288 if (reader != null) {
289 try {
290 reader.close();
291 } catch (IOException ignored) {
292 }
293 }
294 }
295 }
296
297 public void setScript(String script) throws IOException {
298 if (script == null)

Callers 5

runMethod · 0.95
addSettingsToConfMethod · 0.80
addSettingsToConfMethod · 0.80
execMethod · 0.80
callMethod · 0.80

Calls 7

setTruncatedScriptMethod · 0.95
serializeMethod · 0.95
warnMethod · 0.65
closeMethod · 0.65
appendMethod · 0.65
readLineMethod · 0.45
toStringMethod · 0.45

Tested by 2

addSettingsToConfMethod · 0.64
addSettingsToConfMethod · 0.64