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

Method getPigStats

src/org/apache/pig/tools/pigstats/PigStatsUtil.java:94–101  ·  view source on GitHub ↗

Returns the PigStats with the given return code @param code the return code @return the PigStats with the given return code

(int code)

Source from the content-addressed store, hash-verified

92 * @return the PigStats with the given return code
93 */
94 public static PigStats getPigStats(int code) {
95 PigStats ps = PigStats.get();
96 if (ps == null) {
97 ps = PigStats.start(new EmptyPigStats());
98 }
99 ps.setReturnCode(code);
100 return ps;
101 }
102
103 public static void setErrorMessage(String msg) {
104 PigStats ps = PigStats.get();

Callers 3

runMethod · 0.95
launchPigMethod · 0.95
runMethod · 0.95

Calls 3

getMethod · 0.95
startMethod · 0.95
setReturnCodeMethod · 0.95

Tested by

no test coverage detected