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

Method getBytesWritten

src/org/apache/pig/tools/pigstats/PigStats.java:241–249  ·  view source on GitHub ↗

Returns the total bytes written to user specified HDFS locations of this script.

()

Source from the content-addressed store, hash-verified

239 * locations of this script.
240 */
241 public long getBytesWritten() {
242 Iterator<JobStats> it = jobPlan.iterator();
243 long ret = 0;
244 while (it.hasNext()) {
245 long n = it.next().getBytesWritten();
246 if (n > 0) ret += n;
247 }
248 return ret;
249 }
250
251 /**
252 * Returns the total number of records in user specified output

Callers 15

testOutputStatsMethod · 0.95
simpleTestMethod · 0.95
scriptsInDfsTestMethod · 0.95
orderByTestMethod · 0.95
simpleMultiQueryTestMethod · 0.95
simpleMultiQueryTest2Method · 0.95
simpleMultiQueryTest3Method · 0.95
firstTestMethod · 0.95
secondTestMethod · 0.95
pigRunnerTestMethod · 0.95
bindLocalVariableTestMethod · 0.95

Calls 3

iteratorMethod · 0.65
hasNextMethod · 0.45
nextMethod · 0.45

Tested by 15

testOutputStatsMethod · 0.76
simpleTestMethod · 0.76
scriptsInDfsTestMethod · 0.76
orderByTestMethod · 0.76
simpleMultiQueryTestMethod · 0.76
simpleMultiQueryTest2Method · 0.76
simpleMultiQueryTest3Method · 0.76
firstTestMethod · 0.76
secondTestMethod · 0.76
pigRunnerTestMethod · 0.76
bindLocalVariableTestMethod · 0.76