1 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> |
---|
2 | <!--NewPage--> |
---|
3 | <HTML> |
---|
4 | <HEAD> |
---|
5 | <!-- Generated by javadoc (build 1.6.0_07) on Tue Sep 01 20:56:56 UTC 2009 --> |
---|
6 | <TITLE> |
---|
7 | Reporter (Hadoop 0.20.1 API) |
---|
8 | </TITLE> |
---|
9 | |
---|
10 | <META NAME="date" CONTENT="2009-09-01"> |
---|
11 | |
---|
12 | <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style"> |
---|
13 | |
---|
14 | <SCRIPT type="text/javascript"> |
---|
15 | function windowTitle() |
---|
16 | { |
---|
17 | if (location.href.indexOf('is-external=true') == -1) { |
---|
18 | parent.document.title="Reporter (Hadoop 0.20.1 API)"; |
---|
19 | } |
---|
20 | } |
---|
21 | </SCRIPT> |
---|
22 | <NOSCRIPT> |
---|
23 | </NOSCRIPT> |
---|
24 | |
---|
25 | </HEAD> |
---|
26 | |
---|
27 | <BODY BGCOLOR="white" onload="windowTitle();"> |
---|
28 | <HR> |
---|
29 | |
---|
30 | |
---|
31 | <!-- ========= START OF TOP NAVBAR ======= --> |
---|
32 | <A NAME="navbar_top"><!-- --></A> |
---|
33 | <A HREF="#skip-navbar_top" title="Skip navigation links"></A> |
---|
34 | <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> |
---|
35 | <TR> |
---|
36 | <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> |
---|
37 | <A NAME="navbar_top_firstrow"><!-- --></A> |
---|
38 | <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> |
---|
39 | <TR ALIGN="center" VALIGN="top"> |
---|
40 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> |
---|
41 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> |
---|
42 | <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> |
---|
43 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/Reporter.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> |
---|
44 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> |
---|
45 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> |
---|
46 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> |
---|
47 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> |
---|
48 | </TR> |
---|
49 | </TABLE> |
---|
50 | </TD> |
---|
51 | <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> |
---|
52 | </EM> |
---|
53 | </TD> |
---|
54 | </TR> |
---|
55 | |
---|
56 | <TR> |
---|
57 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
---|
58 | <A HREF="../../../../org/apache/hadoop/mapred/Reducer.html" title="interface in org.apache.hadoop.mapred"><B>PREV CLASS</B></A> |
---|
59 | <A HREF="../../../../org/apache/hadoop/mapred/RunningJob.html" title="interface in org.apache.hadoop.mapred"><B>NEXT CLASS</B></A></FONT></TD> |
---|
60 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
---|
61 | <A HREF="../../../../index.html?org/apache/hadoop/mapred/Reporter.html" target="_top"><B>FRAMES</B></A> |
---|
62 | <A HREF="Reporter.html" target="_top"><B>NO FRAMES</B></A> |
---|
63 | <SCRIPT type="text/javascript"> |
---|
64 | <!-- |
---|
65 | if(window==top) { |
---|
66 | document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>'); |
---|
67 | } |
---|
68 | //--> |
---|
69 | </SCRIPT> |
---|
70 | <NOSCRIPT> |
---|
71 | <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A> |
---|
72 | </NOSCRIPT> |
---|
73 | |
---|
74 | |
---|
75 | </FONT></TD> |
---|
76 | </TR> |
---|
77 | <TR> |
---|
78 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
---|
79 | SUMMARY: NESTED | <A HREF="#field_summary">FIELD</A> | CONSTR | <A HREF="#method_summary">METHOD</A></FONT></TD> |
---|
80 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
---|
81 | DETAIL: <A HREF="#field_detail">FIELD</A> | CONSTR | <A HREF="#method_detail">METHOD</A></FONT></TD> |
---|
82 | </TR> |
---|
83 | </TABLE> |
---|
84 | <A NAME="skip-navbar_top"></A> |
---|
85 | <!-- ========= END OF TOP NAVBAR ========= --> |
---|
86 | |
---|
87 | <HR> |
---|
88 | <!-- ======== START OF CLASS DATA ======== --> |
---|
89 | <H2> |
---|
90 | <FONT SIZE="-1"> |
---|
91 | org.apache.hadoop.mapred</FONT> |
---|
92 | <BR> |
---|
93 | Interface Reporter</H2> |
---|
94 | <DL> |
---|
95 | <DT><B>All Superinterfaces:</B> <DD><A HREF="../../../../org/apache/hadoop/util/Progressable.html" title="interface in org.apache.hadoop.util">Progressable</A></DD> |
---|
96 | </DL> |
---|
97 | <HR> |
---|
98 | <DL> |
---|
99 | <DT><PRE>public interface <B>Reporter</B><DT>extends <A HREF="../../../../org/apache/hadoop/util/Progressable.html" title="interface in org.apache.hadoop.util">Progressable</A></DL> |
---|
100 | </PRE> |
---|
101 | |
---|
102 | <P> |
---|
103 | A facility for Map-Reduce applications to report progress and update |
---|
104 | counters, status information etc. |
---|
105 | |
---|
106 | <p><A HREF="../../../../org/apache/hadoop/mapred/Mapper.html" title="interface in org.apache.hadoop.mapred"><CODE>Mapper</CODE></A> and <A HREF="../../../../org/apache/hadoop/mapred/Reducer.html" title="interface in org.apache.hadoop.mapred"><CODE>Reducer</CODE></A> can use the <code>Reporter</code> |
---|
107 | provided to report progress or just indicate that they are alive. In |
---|
108 | scenarios where the application takes an insignificant amount of time to |
---|
109 | process individual key/value pairs, this is crucial since the framework |
---|
110 | might assume that the task has timed-out and kill that task. |
---|
111 | |
---|
112 | <p>Applications can also update <A HREF="../../../../org/apache/hadoop/mapred/Counters.html" title="class in org.apache.hadoop.mapred"><CODE>Counters</CODE></A> via the provided |
---|
113 | <code>Reporter</code> .</p> |
---|
114 | <P> |
---|
115 | |
---|
116 | <P> |
---|
117 | <DL> |
---|
118 | <DT><B>See Also:</B><DD><A HREF="../../../../org/apache/hadoop/util/Progressable.html" title="interface in org.apache.hadoop.util"><CODE>Progressable</CODE></A>, |
---|
119 | <A HREF="../../../../org/apache/hadoop/mapred/Counters.html" title="class in org.apache.hadoop.mapred"><CODE>Counters</CODE></A></DL> |
---|
120 | <HR> |
---|
121 | |
---|
122 | <P> |
---|
123 | <!-- =========== FIELD SUMMARY =========== --> |
---|
124 | |
---|
125 | <A NAME="field_summary"><!-- --></A> |
---|
126 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
---|
127 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
---|
128 | <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> |
---|
129 | <B>Field Summary</B></FONT></TH> |
---|
130 | </TR> |
---|
131 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
132 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
133 | <CODE>static <A HREF="../../../../org/apache/hadoop/mapred/Reporter.html" title="interface in org.apache.hadoop.mapred">Reporter</A></CODE></FONT></TD> |
---|
134 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/mapred/Reporter.html#NULL">NULL</A></B></CODE> |
---|
135 | |
---|
136 | <BR> |
---|
137 | A constant of Reporter type that does nothing.</TD> |
---|
138 | </TR> |
---|
139 | </TABLE> |
---|
140 | |
---|
141 | <!-- ========== METHOD SUMMARY =========== --> |
---|
142 | |
---|
143 | <A NAME="method_summary"><!-- --></A> |
---|
144 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
---|
145 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
---|
146 | <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> |
---|
147 | <B>Method Summary</B></FONT></TH> |
---|
148 | </TR> |
---|
149 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
150 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
151 | <CODE> <A HREF="../../../../org/apache/hadoop/mapred/Counters.Counter.html" title="class in org.apache.hadoop.mapred">Counters.Counter</A></CODE></FONT></TD> |
---|
152 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/mapred/Reporter.html#getCounter(java.lang.Enum)">getCounter</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Enum.html?is-external=true" title="class or interface in java.lang">Enum</A><?> name)</CODE> |
---|
153 | |
---|
154 | <BR> |
---|
155 | Get the <A HREF="../../../../org/apache/hadoop/mapred/Counters.Counter.html" title="class in org.apache.hadoop.mapred"><CODE>Counters.Counter</CODE></A> of the given group with the given name.</TD> |
---|
156 | </TR> |
---|
157 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
158 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
159 | <CODE> <A HREF="../../../../org/apache/hadoop/mapred/Counters.Counter.html" title="class in org.apache.hadoop.mapred">Counters.Counter</A></CODE></FONT></TD> |
---|
160 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/mapred/Reporter.html#getCounter(java.lang.String, java.lang.String)">getCounter</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> group, |
---|
161 | <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> name)</CODE> |
---|
162 | |
---|
163 | <BR> |
---|
164 | Get the <A HREF="../../../../org/apache/hadoop/mapred/Counters.Counter.html" title="class in org.apache.hadoop.mapred"><CODE>Counters.Counter</CODE></A> of the given group with the given name.</TD> |
---|
165 | </TR> |
---|
166 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
167 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
168 | <CODE> <A HREF="../../../../org/apache/hadoop/mapred/InputSplit.html" title="interface in org.apache.hadoop.mapred">InputSplit</A></CODE></FONT></TD> |
---|
169 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/mapred/Reporter.html#getInputSplit()">getInputSplit</A></B>()</CODE> |
---|
170 | |
---|
171 | <BR> |
---|
172 | Get the <A HREF="../../../../org/apache/hadoop/mapred/InputSplit.html" title="interface in org.apache.hadoop.mapred"><CODE>InputSplit</CODE></A> object for a map.</TD> |
---|
173 | </TR> |
---|
174 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
175 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
176 | <CODE> void</CODE></FONT></TD> |
---|
177 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/mapred/Reporter.html#incrCounter(java.lang.Enum, long)">incrCounter</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Enum.html?is-external=true" title="class or interface in java.lang">Enum</A><?> key, |
---|
178 | long amount)</CODE> |
---|
179 | |
---|
180 | <BR> |
---|
181 | Increments the counter identified by the key, which can be of |
---|
182 | any <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Enum.html?is-external=true" title="class or interface in java.lang"><CODE>Enum</CODE></A> type, by the specified amount.</TD> |
---|
183 | </TR> |
---|
184 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
185 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
186 | <CODE> void</CODE></FONT></TD> |
---|
187 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/mapred/Reporter.html#incrCounter(java.lang.String, java.lang.String, long)">incrCounter</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> group, |
---|
188 | <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> counter, |
---|
189 | long amount)</CODE> |
---|
190 | |
---|
191 | <BR> |
---|
192 | Increments the counter identified by the group and counter name |
---|
193 | by the specified amount.</TD> |
---|
194 | </TR> |
---|
195 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
196 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
197 | <CODE> void</CODE></FONT></TD> |
---|
198 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/mapred/Reporter.html#setStatus(java.lang.String)">setStatus</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> status)</CODE> |
---|
199 | |
---|
200 | <BR> |
---|
201 | Set the status description for the task.</TD> |
---|
202 | </TR> |
---|
203 | </TABLE> |
---|
204 | <A NAME="methods_inherited_from_class_org.apache.hadoop.util.Progressable"><!-- --></A> |
---|
205 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
---|
206 | <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> |
---|
207 | <TH ALIGN="left"><B>Methods inherited from interface org.apache.hadoop.util.<A HREF="../../../../org/apache/hadoop/util/Progressable.html" title="interface in org.apache.hadoop.util">Progressable</A></B></TH> |
---|
208 | </TR> |
---|
209 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
210 | <TD><CODE><A HREF="../../../../org/apache/hadoop/util/Progressable.html#progress()">progress</A></CODE></TD> |
---|
211 | </TR> |
---|
212 | </TABLE> |
---|
213 | |
---|
214 | <P> |
---|
215 | |
---|
216 | <!-- ============ FIELD DETAIL =========== --> |
---|
217 | |
---|
218 | <A NAME="field_detail"><!-- --></A> |
---|
219 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
---|
220 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
---|
221 | <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> |
---|
222 | <B>Field Detail</B></FONT></TH> |
---|
223 | </TR> |
---|
224 | </TABLE> |
---|
225 | |
---|
226 | <A NAME="NULL"><!-- --></A><H3> |
---|
227 | NULL</H3> |
---|
228 | <PRE> |
---|
229 | static final <A HREF="../../../../org/apache/hadoop/mapred/Reporter.html" title="interface in org.apache.hadoop.mapred">Reporter</A> <B>NULL</B></PRE> |
---|
230 | <DL> |
---|
231 | <DD>A constant of Reporter type that does nothing. |
---|
232 | <P> |
---|
233 | <DL> |
---|
234 | </DL> |
---|
235 | </DL> |
---|
236 | |
---|
237 | <!-- ============ METHOD DETAIL ========== --> |
---|
238 | |
---|
239 | <A NAME="method_detail"><!-- --></A> |
---|
240 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
---|
241 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
---|
242 | <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> |
---|
243 | <B>Method Detail</B></FONT></TH> |
---|
244 | </TR> |
---|
245 | </TABLE> |
---|
246 | |
---|
247 | <A NAME="setStatus(java.lang.String)"><!-- --></A><H3> |
---|
248 | setStatus</H3> |
---|
249 | <PRE> |
---|
250 | void <B>setStatus</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> status)</PRE> |
---|
251 | <DL> |
---|
252 | <DD>Set the status description for the task. |
---|
253 | <P> |
---|
254 | <DD><DL> |
---|
255 | </DL> |
---|
256 | </DD> |
---|
257 | <DD><DL> |
---|
258 | <DT><B>Parameters:</B><DD><CODE>status</CODE> - brief description of the current status.</DL> |
---|
259 | </DD> |
---|
260 | </DL> |
---|
261 | <HR> |
---|
262 | |
---|
263 | <A NAME="getCounter(java.lang.Enum)"><!-- --></A><H3> |
---|
264 | getCounter</H3> |
---|
265 | <PRE> |
---|
266 | <A HREF="../../../../org/apache/hadoop/mapred/Counters.Counter.html" title="class in org.apache.hadoop.mapred">Counters.Counter</A> <B>getCounter</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Enum.html?is-external=true" title="class or interface in java.lang">Enum</A><?> name)</PRE> |
---|
267 | <DL> |
---|
268 | <DD>Get the <A HREF="../../../../org/apache/hadoop/mapred/Counters.Counter.html" title="class in org.apache.hadoop.mapred"><CODE>Counters.Counter</CODE></A> of the given group with the given name. |
---|
269 | <P> |
---|
270 | <DD><DL> |
---|
271 | </DL> |
---|
272 | </DD> |
---|
273 | <DD><DL> |
---|
274 | <DT><B>Parameters:</B><DD><CODE>name</CODE> - counter name |
---|
275 | <DT><B>Returns:</B><DD>the <code>Counter</code> of the given group/name.</DL> |
---|
276 | </DD> |
---|
277 | </DL> |
---|
278 | <HR> |
---|
279 | |
---|
280 | <A NAME="getCounter(java.lang.String, java.lang.String)"><!-- --></A><H3> |
---|
281 | getCounter</H3> |
---|
282 | <PRE> |
---|
283 | <A HREF="../../../../org/apache/hadoop/mapred/Counters.Counter.html" title="class in org.apache.hadoop.mapred">Counters.Counter</A> <B>getCounter</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> group, |
---|
284 | <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> name)</PRE> |
---|
285 | <DL> |
---|
286 | <DD>Get the <A HREF="../../../../org/apache/hadoop/mapred/Counters.Counter.html" title="class in org.apache.hadoop.mapred"><CODE>Counters.Counter</CODE></A> of the given group with the given name. |
---|
287 | <P> |
---|
288 | <DD><DL> |
---|
289 | </DL> |
---|
290 | </DD> |
---|
291 | <DD><DL> |
---|
292 | <DT><B>Parameters:</B><DD><CODE>group</CODE> - counter group<DD><CODE>name</CODE> - counter name |
---|
293 | <DT><B>Returns:</B><DD>the <code>Counter</code> of the given group/name.</DL> |
---|
294 | </DD> |
---|
295 | </DL> |
---|
296 | <HR> |
---|
297 | |
---|
298 | <A NAME="incrCounter(java.lang.Enum, long)"><!-- --></A><H3> |
---|
299 | incrCounter</H3> |
---|
300 | <PRE> |
---|
301 | void <B>incrCounter</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Enum.html?is-external=true" title="class or interface in java.lang">Enum</A><?> key, |
---|
302 | long amount)</PRE> |
---|
303 | <DL> |
---|
304 | <DD>Increments the counter identified by the key, which can be of |
---|
305 | any <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Enum.html?is-external=true" title="class or interface in java.lang"><CODE>Enum</CODE></A> type, by the specified amount. |
---|
306 | <P> |
---|
307 | <DD><DL> |
---|
308 | </DL> |
---|
309 | </DD> |
---|
310 | <DD><DL> |
---|
311 | <DT><B>Parameters:</B><DD><CODE>key</CODE> - key to identify the counter to be incremented. The key can be |
---|
312 | be any <code>Enum</code>.<DD><CODE>amount</CODE> - A non-negative amount by which the counter is to |
---|
313 | be incremented.</DL> |
---|
314 | </DD> |
---|
315 | </DL> |
---|
316 | <HR> |
---|
317 | |
---|
318 | <A NAME="incrCounter(java.lang.String, java.lang.String, long)"><!-- --></A><H3> |
---|
319 | incrCounter</H3> |
---|
320 | <PRE> |
---|
321 | void <B>incrCounter</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> group, |
---|
322 | <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> counter, |
---|
323 | long amount)</PRE> |
---|
324 | <DL> |
---|
325 | <DD>Increments the counter identified by the group and counter name |
---|
326 | by the specified amount. |
---|
327 | <P> |
---|
328 | <DD><DL> |
---|
329 | </DL> |
---|
330 | </DD> |
---|
331 | <DD><DL> |
---|
332 | <DT><B>Parameters:</B><DD><CODE>group</CODE> - name to identify the group of the counter to be incremented.<DD><CODE>counter</CODE> - name to identify the counter within the group.<DD><CODE>amount</CODE> - A non-negative amount by which the counter is to |
---|
333 | be incremented.</DL> |
---|
334 | </DD> |
---|
335 | </DL> |
---|
336 | <HR> |
---|
337 | |
---|
338 | <A NAME="getInputSplit()"><!-- --></A><H3> |
---|
339 | getInputSplit</H3> |
---|
340 | <PRE> |
---|
341 | <A HREF="../../../../org/apache/hadoop/mapred/InputSplit.html" title="interface in org.apache.hadoop.mapred">InputSplit</A> <B>getInputSplit</B>() |
---|
342 | throws <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/UnsupportedOperationException.html?is-external=true" title="class or interface in java.lang">UnsupportedOperationException</A></PRE> |
---|
343 | <DL> |
---|
344 | <DD>Get the <A HREF="../../../../org/apache/hadoop/mapred/InputSplit.html" title="interface in org.apache.hadoop.mapred"><CODE>InputSplit</CODE></A> object for a map. |
---|
345 | <P> |
---|
346 | <DD><DL> |
---|
347 | </DL> |
---|
348 | </DD> |
---|
349 | <DD><DL> |
---|
350 | |
---|
351 | <DT><B>Returns:</B><DD>the <code>InputSplit</code> that the map is reading from. |
---|
352 | <DT><B>Throws:</B> |
---|
353 | <DD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/lang/UnsupportedOperationException.html?is-external=true" title="class or interface in java.lang">UnsupportedOperationException</A></CODE> - if called outside a mapper</DL> |
---|
354 | </DD> |
---|
355 | </DL> |
---|
356 | <!-- ========= END OF CLASS DATA ========= --> |
---|
357 | <HR> |
---|
358 | |
---|
359 | |
---|
360 | <!-- ======= START OF BOTTOM NAVBAR ====== --> |
---|
361 | <A NAME="navbar_bottom"><!-- --></A> |
---|
362 | <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A> |
---|
363 | <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> |
---|
364 | <TR> |
---|
365 | <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> |
---|
366 | <A NAME="navbar_bottom_firstrow"><!-- --></A> |
---|
367 | <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> |
---|
368 | <TR ALIGN="center" VALIGN="top"> |
---|
369 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> |
---|
370 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> |
---|
371 | <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> |
---|
372 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/Reporter.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> |
---|
373 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> |
---|
374 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> |
---|
375 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> |
---|
376 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> |
---|
377 | </TR> |
---|
378 | </TABLE> |
---|
379 | </TD> |
---|
380 | <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> |
---|
381 | </EM> |
---|
382 | </TD> |
---|
383 | </TR> |
---|
384 | |
---|
385 | <TR> |
---|
386 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
---|
387 | <A HREF="../../../../org/apache/hadoop/mapred/Reducer.html" title="interface in org.apache.hadoop.mapred"><B>PREV CLASS</B></A> |
---|
388 | <A HREF="../../../../org/apache/hadoop/mapred/RunningJob.html" title="interface in org.apache.hadoop.mapred"><B>NEXT CLASS</B></A></FONT></TD> |
---|
389 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
---|
390 | <A HREF="../../../../index.html?org/apache/hadoop/mapred/Reporter.html" target="_top"><B>FRAMES</B></A> |
---|
391 | <A HREF="Reporter.html" target="_top"><B>NO FRAMES</B></A> |
---|
392 | <SCRIPT type="text/javascript"> |
---|
393 | <!-- |
---|
394 | if(window==top) { |
---|
395 | document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>'); |
---|
396 | } |
---|
397 | //--> |
---|
398 | </SCRIPT> |
---|
399 | <NOSCRIPT> |
---|
400 | <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A> |
---|
401 | </NOSCRIPT> |
---|
402 | |
---|
403 | |
---|
404 | </FONT></TD> |
---|
405 | </TR> |
---|
406 | <TR> |
---|
407 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
---|
408 | SUMMARY: NESTED | <A HREF="#field_summary">FIELD</A> | CONSTR | <A HREF="#method_summary">METHOD</A></FONT></TD> |
---|
409 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
---|
410 | DETAIL: <A HREF="#field_detail">FIELD</A> | CONSTR | <A HREF="#method_detail">METHOD</A></FONT></TD> |
---|
411 | </TR> |
---|
412 | </TABLE> |
---|
413 | <A NAME="skip-navbar_bottom"></A> |
---|
414 | <!-- ======== END OF BOTTOM NAVBAR ======= --> |
---|
415 | |
---|
416 | <HR> |
---|
417 | Copyright © 2009 The Apache Software Foundation |
---|
418 | </BODY> |
---|
419 | </HTML> |
---|