[120] | 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:58 UTC 2009 --> |
---|
| 6 | <TITLE> |
---|
| 7 | Counters (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="Counters (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/Counters.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/mapreduce/CounterGroup.html" title="class in org.apache.hadoop.mapreduce"><B>PREV CLASS</B></A> |
---|
| 59 | <A HREF="../../../../org/apache/hadoop/mapreduce/ID.html" title="class in org.apache.hadoop.mapreduce"><B>NEXT CLASS</B></A></FONT></TD> |
---|
| 60 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
---|
| 61 | <A HREF="../../../../index.html?org/apache/hadoop/mapreduce/Counters.html" target="_top"><B>FRAMES</B></A> |
---|
| 62 | <A HREF="Counters.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 | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> |
---|
| 80 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
---|
| 81 | DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <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.mapreduce</FONT> |
---|
| 92 | <BR> |
---|
| 93 | Class Counters</H2> |
---|
| 94 | <PRE> |
---|
| 95 | <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</A> |
---|
| 96 | <IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><B>org.apache.hadoop.mapreduce.Counters</B> |
---|
| 97 | </PRE> |
---|
| 98 | <DL> |
---|
| 99 | <DT><B>All Implemented Interfaces:</B> <DD><A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang">Iterable</A><<A HREF="../../../../org/apache/hadoop/mapreduce/CounterGroup.html" title="class in org.apache.hadoop.mapreduce">CounterGroup</A>>, <A HREF="../../../../org/apache/hadoop/io/Writable.html" title="interface in org.apache.hadoop.io">Writable</A></DD> |
---|
| 100 | </DL> |
---|
| 101 | <HR> |
---|
| 102 | <DL> |
---|
| 103 | <DT><PRE>public class <B>Counters</B><DT>extends <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A><DT>implements <A HREF="../../../../org/apache/hadoop/io/Writable.html" title="interface in org.apache.hadoop.io">Writable</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang">Iterable</A><<A HREF="../../../../org/apache/hadoop/mapreduce/CounterGroup.html" title="class in org.apache.hadoop.mapreduce">CounterGroup</A>></DL> |
---|
| 104 | </PRE> |
---|
| 105 | |
---|
| 106 | <P> |
---|
| 107 | <HR> |
---|
| 108 | |
---|
| 109 | <P> |
---|
| 110 | |
---|
| 111 | <!-- ======== CONSTRUCTOR SUMMARY ======== --> |
---|
| 112 | |
---|
| 113 | <A NAME="constructor_summary"><!-- --></A> |
---|
| 114 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
---|
| 115 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
---|
| 116 | <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> |
---|
| 117 | <B>Constructor Summary</B></FONT></TH> |
---|
| 118 | </TR> |
---|
| 119 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 120 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/mapreduce/Counters.html#Counters()">Counters</A></B>()</CODE> |
---|
| 121 | |
---|
| 122 | <BR> |
---|
| 123 | </TD> |
---|
| 124 | </TR> |
---|
| 125 | </TABLE> |
---|
| 126 | |
---|
| 127 | <!-- ========== METHOD SUMMARY =========== --> |
---|
| 128 | |
---|
| 129 | <A NAME="method_summary"><!-- --></A> |
---|
| 130 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
---|
| 131 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
---|
| 132 | <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> |
---|
| 133 | <B>Method Summary</B></FONT></TH> |
---|
| 134 | </TR> |
---|
| 135 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 136 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 137 | <CODE> int</CODE></FONT></TD> |
---|
| 138 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/mapreduce/Counters.html#countCounters()">countCounters</A></B>()</CODE> |
---|
| 139 | |
---|
| 140 | <BR> |
---|
| 141 | Returns the total number of counters, by summing the number of counters |
---|
| 142 | in each group.</TD> |
---|
| 143 | </TR> |
---|
| 144 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 145 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 146 | <CODE> boolean</CODE></FONT></TD> |
---|
| 147 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/mapreduce/Counters.html#equals(java.lang.Object)">equals</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A> genericRight)</CODE> |
---|
| 148 | |
---|
| 149 | <BR> |
---|
| 150 | </TD> |
---|
| 151 | </TR> |
---|
| 152 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 153 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 154 | <CODE> <A HREF="../../../../org/apache/hadoop/mapreduce/Counter.html" title="class in org.apache.hadoop.mapreduce">Counter</A></CODE></FONT></TD> |
---|
| 155 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/mapreduce/Counters.html#findCounter(java.lang.Enum)">findCounter</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)</CODE> |
---|
| 156 | |
---|
| 157 | <BR> |
---|
| 158 | Find the counter for the given enum.</TD> |
---|
| 159 | </TR> |
---|
| 160 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 161 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 162 | <CODE> <A HREF="../../../../org/apache/hadoop/mapreduce/Counter.html" title="class in org.apache.hadoop.mapreduce">Counter</A></CODE></FONT></TD> |
---|
| 163 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/mapreduce/Counters.html#findCounter(java.lang.String, java.lang.String)">findCounter</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> groupName, |
---|
| 164 | <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> counterName)</CODE> |
---|
| 165 | |
---|
| 166 | <BR> |
---|
| 167 | </TD> |
---|
| 168 | </TR> |
---|
| 169 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 170 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 171 | <CODE> <A HREF="../../../../org/apache/hadoop/mapreduce/CounterGroup.html" title="class in org.apache.hadoop.mapreduce">CounterGroup</A></CODE></FONT></TD> |
---|
| 172 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/mapreduce/Counters.html#getGroup(java.lang.String)">getGroup</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> groupName)</CODE> |
---|
| 173 | |
---|
| 174 | <BR> |
---|
| 175 | Returns the named counter group, or an empty group if there is none |
---|
| 176 | with the specified name.</TD> |
---|
| 177 | </TR> |
---|
| 178 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 179 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 180 | <CODE> <A HREF="http://java.sun.com/javase/6/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util">Collection</A><<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>></CODE></FONT></TD> |
---|
| 181 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/mapreduce/Counters.html#getGroupNames()">getGroupNames</A></B>()</CODE> |
---|
| 182 | |
---|
| 183 | <BR> |
---|
| 184 | Returns the names of all counter classes.</TD> |
---|
| 185 | </TR> |
---|
| 186 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 187 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 188 | <CODE> int</CODE></FONT></TD> |
---|
| 189 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/mapreduce/Counters.html#hashCode()">hashCode</A></B>()</CODE> |
---|
| 190 | |
---|
| 191 | <BR> |
---|
| 192 | </TD> |
---|
| 193 | </TR> |
---|
| 194 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 195 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 196 | <CODE> void</CODE></FONT></TD> |
---|
| 197 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/mapreduce/Counters.html#incrAllCounters(org.apache.hadoop.mapreduce.Counters)">incrAllCounters</A></B>(<A HREF="../../../../org/apache/hadoop/mapreduce/Counters.html" title="class in org.apache.hadoop.mapreduce">Counters</A> other)</CODE> |
---|
| 198 | |
---|
| 199 | <BR> |
---|
| 200 | Increments multiple counters by their amounts in another Counters |
---|
| 201 | instance.</TD> |
---|
| 202 | </TR> |
---|
| 203 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 204 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 205 | <CODE> <A HREF="http://java.sun.com/javase/6/docs/api/java/util/Iterator.html?is-external=true" title="class or interface in java.util">Iterator</A><<A HREF="../../../../org/apache/hadoop/mapreduce/CounterGroup.html" title="class in org.apache.hadoop.mapreduce">CounterGroup</A>></CODE></FONT></TD> |
---|
| 206 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/mapreduce/Counters.html#iterator()">iterator</A></B>()</CODE> |
---|
| 207 | |
---|
| 208 | <BR> |
---|
| 209 | </TD> |
---|
| 210 | </TR> |
---|
| 211 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 212 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 213 | <CODE> void</CODE></FONT></TD> |
---|
| 214 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/mapreduce/Counters.html#readFields(java.io.DataInput)">readFields</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/io/DataInput.html?is-external=true" title="class or interface in java.io">DataInput</A> in)</CODE> |
---|
| 215 | |
---|
| 216 | <BR> |
---|
| 217 | Read a set of groups.</TD> |
---|
| 218 | </TR> |
---|
| 219 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 220 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 221 | <CODE> <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></CODE></FONT></TD> |
---|
| 222 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/mapreduce/Counters.html#toString()">toString</A></B>()</CODE> |
---|
| 223 | |
---|
| 224 | <BR> |
---|
| 225 | Return textual representation of the counter values.</TD> |
---|
| 226 | </TR> |
---|
| 227 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 228 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 229 | <CODE> void</CODE></FONT></TD> |
---|
| 230 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/mapreduce/Counters.html#write(java.io.DataOutput)">write</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/io/DataOutput.html?is-external=true" title="class or interface in java.io">DataOutput</A> out)</CODE> |
---|
| 231 | |
---|
| 232 | <BR> |
---|
| 233 | Write the set of groups.</TD> |
---|
| 234 | </TR> |
---|
| 235 | </TABLE> |
---|
| 236 | <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A> |
---|
| 237 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
---|
| 238 | <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> |
---|
| 239 | <TH ALIGN="left"><B>Methods inherited from class java.lang.<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A></B></TH> |
---|
| 240 | </TR> |
---|
| 241 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 242 | <TD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#clone()" title="class or interface in java.lang">clone</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#finalize()" title="class or interface in java.lang">finalize</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#getClass()" title="class or interface in java.lang">getClass</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#notify()" title="class or interface in java.lang">notify</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#notifyAll()" title="class or interface in java.lang">notifyAll</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait()" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait(long)" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait(long, int)" title="class or interface in java.lang">wait</A></CODE></TD> |
---|
| 243 | </TR> |
---|
| 244 | </TABLE> |
---|
| 245 | |
---|
| 246 | <P> |
---|
| 247 | |
---|
| 248 | <!-- ========= CONSTRUCTOR DETAIL ======== --> |
---|
| 249 | |
---|
| 250 | <A NAME="constructor_detail"><!-- --></A> |
---|
| 251 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
---|
| 252 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
---|
| 253 | <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> |
---|
| 254 | <B>Constructor Detail</B></FONT></TH> |
---|
| 255 | </TR> |
---|
| 256 | </TABLE> |
---|
| 257 | |
---|
| 258 | <A NAME="Counters()"><!-- --></A><H3> |
---|
| 259 | Counters</H3> |
---|
| 260 | <PRE> |
---|
| 261 | public <B>Counters</B>()</PRE> |
---|
| 262 | <DL> |
---|
| 263 | </DL> |
---|
| 264 | |
---|
| 265 | <!-- ============ METHOD DETAIL ========== --> |
---|
| 266 | |
---|
| 267 | <A NAME="method_detail"><!-- --></A> |
---|
| 268 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
---|
| 269 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
---|
| 270 | <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> |
---|
| 271 | <B>Method Detail</B></FONT></TH> |
---|
| 272 | </TR> |
---|
| 273 | </TABLE> |
---|
| 274 | |
---|
| 275 | <A NAME="findCounter(java.lang.String, java.lang.String)"><!-- --></A><H3> |
---|
| 276 | findCounter</H3> |
---|
| 277 | <PRE> |
---|
| 278 | public <A HREF="../../../../org/apache/hadoop/mapreduce/Counter.html" title="class in org.apache.hadoop.mapreduce">Counter</A> <B>findCounter</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> groupName, |
---|
| 279 | <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> counterName)</PRE> |
---|
| 280 | <DL> |
---|
| 281 | <DD><DL> |
---|
| 282 | </DL> |
---|
| 283 | </DD> |
---|
| 284 | <DD><DL> |
---|
| 285 | </DL> |
---|
| 286 | </DD> |
---|
| 287 | </DL> |
---|
| 288 | <HR> |
---|
| 289 | |
---|
| 290 | <A NAME="findCounter(java.lang.Enum)"><!-- --></A><H3> |
---|
| 291 | findCounter</H3> |
---|
| 292 | <PRE> |
---|
| 293 | public <A HREF="../../../../org/apache/hadoop/mapreduce/Counter.html" title="class in org.apache.hadoop.mapreduce">Counter</A> <B>findCounter</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)</PRE> |
---|
| 294 | <DL> |
---|
| 295 | <DD>Find the counter for the given enum. The same enum will always return the |
---|
| 296 | same counter. |
---|
| 297 | <P> |
---|
| 298 | <DD><DL> |
---|
| 299 | </DL> |
---|
| 300 | </DD> |
---|
| 301 | <DD><DL> |
---|
| 302 | <DT><B>Parameters:</B><DD><CODE>key</CODE> - the counter key |
---|
| 303 | <DT><B>Returns:</B><DD>the matching counter object</DL> |
---|
| 304 | </DD> |
---|
| 305 | </DL> |
---|
| 306 | <HR> |
---|
| 307 | |
---|
| 308 | <A NAME="getGroupNames()"><!-- --></A><H3> |
---|
| 309 | getGroupNames</H3> |
---|
| 310 | <PRE> |
---|
| 311 | public <A HREF="http://java.sun.com/javase/6/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util">Collection</A><<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>> <B>getGroupNames</B>()</PRE> |
---|
| 312 | <DL> |
---|
| 313 | <DD>Returns the names of all counter classes. |
---|
| 314 | <P> |
---|
| 315 | <DD><DL> |
---|
| 316 | </DL> |
---|
| 317 | </DD> |
---|
| 318 | <DD><DL> |
---|
| 319 | |
---|
| 320 | <DT><B>Returns:</B><DD>Set of counter names.</DL> |
---|
| 321 | </DD> |
---|
| 322 | </DL> |
---|
| 323 | <HR> |
---|
| 324 | |
---|
| 325 | <A NAME="iterator()"><!-- --></A><H3> |
---|
| 326 | iterator</H3> |
---|
| 327 | <PRE> |
---|
| 328 | public <A HREF="http://java.sun.com/javase/6/docs/api/java/util/Iterator.html?is-external=true" title="class or interface in java.util">Iterator</A><<A HREF="../../../../org/apache/hadoop/mapreduce/CounterGroup.html" title="class in org.apache.hadoop.mapreduce">CounterGroup</A>> <B>iterator</B>()</PRE> |
---|
| 329 | <DL> |
---|
| 330 | <DD><DL> |
---|
| 331 | <DT><B>Specified by:</B><DD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Iterable.html?is-external=true#iterator()" title="class or interface in java.lang">iterator</A></CODE> in interface <CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang">Iterable</A><<A HREF="../../../../org/apache/hadoop/mapreduce/CounterGroup.html" title="class in org.apache.hadoop.mapreduce">CounterGroup</A>></CODE></DL> |
---|
| 332 | </DD> |
---|
| 333 | <DD><DL> |
---|
| 334 | </DL> |
---|
| 335 | </DD> |
---|
| 336 | </DL> |
---|
| 337 | <HR> |
---|
| 338 | |
---|
| 339 | <A NAME="getGroup(java.lang.String)"><!-- --></A><H3> |
---|
| 340 | getGroup</H3> |
---|
| 341 | <PRE> |
---|
| 342 | public <A HREF="../../../../org/apache/hadoop/mapreduce/CounterGroup.html" title="class in org.apache.hadoop.mapreduce">CounterGroup</A> <B>getGroup</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> groupName)</PRE> |
---|
| 343 | <DL> |
---|
| 344 | <DD>Returns the named counter group, or an empty group if there is none |
---|
| 345 | with the specified name. |
---|
| 346 | <P> |
---|
| 347 | <DD><DL> |
---|
| 348 | </DL> |
---|
| 349 | </DD> |
---|
| 350 | <DD><DL> |
---|
| 351 | </DL> |
---|
| 352 | </DD> |
---|
| 353 | </DL> |
---|
| 354 | <HR> |
---|
| 355 | |
---|
| 356 | <A NAME="countCounters()"><!-- --></A><H3> |
---|
| 357 | countCounters</H3> |
---|
| 358 | <PRE> |
---|
| 359 | public int <B>countCounters</B>()</PRE> |
---|
| 360 | <DL> |
---|
| 361 | <DD>Returns the total number of counters, by summing the number of counters |
---|
| 362 | in each group. |
---|
| 363 | <P> |
---|
| 364 | <DD><DL> |
---|
| 365 | </DL> |
---|
| 366 | </DD> |
---|
| 367 | <DD><DL> |
---|
| 368 | </DL> |
---|
| 369 | </DD> |
---|
| 370 | </DL> |
---|
| 371 | <HR> |
---|
| 372 | |
---|
| 373 | <A NAME="write(java.io.DataOutput)"><!-- --></A><H3> |
---|
| 374 | write</H3> |
---|
| 375 | <PRE> |
---|
| 376 | public void <B>write</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/io/DataOutput.html?is-external=true" title="class or interface in java.io">DataOutput</A> out) |
---|
| 377 | throws <A HREF="http://java.sun.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></PRE> |
---|
| 378 | <DL> |
---|
| 379 | <DD>Write the set of groups. |
---|
| 380 | The external format is: |
---|
| 381 | #groups (groupName group)* |
---|
| 382 | |
---|
| 383 | i.e. the number of groups followed by 0 or more groups, where each |
---|
| 384 | group is of the form: |
---|
| 385 | |
---|
| 386 | groupDisplayName #counters (false | true counter)* |
---|
| 387 | |
---|
| 388 | where each counter is of the form: |
---|
| 389 | |
---|
| 390 | name (false | true displayName) value |
---|
| 391 | <P> |
---|
| 392 | <DD><DL> |
---|
| 393 | <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/apache/hadoop/io/Writable.html#write(java.io.DataOutput)">write</A></CODE> in interface <CODE><A HREF="../../../../org/apache/hadoop/io/Writable.html" title="interface in org.apache.hadoop.io">Writable</A></CODE></DL> |
---|
| 394 | </DD> |
---|
| 395 | <DD><DL> |
---|
| 396 | <DT><B>Parameters:</B><DD><CODE>out</CODE> - <code>DataOuput</code> to serialize this object into. |
---|
| 397 | <DT><B>Throws:</B> |
---|
| 398 | <DD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></CODE></DL> |
---|
| 399 | </DD> |
---|
| 400 | </DL> |
---|
| 401 | <HR> |
---|
| 402 | |
---|
| 403 | <A NAME="readFields(java.io.DataInput)"><!-- --></A><H3> |
---|
| 404 | readFields</H3> |
---|
| 405 | <PRE> |
---|
| 406 | public void <B>readFields</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/io/DataInput.html?is-external=true" title="class or interface in java.io">DataInput</A> in) |
---|
| 407 | throws <A HREF="http://java.sun.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></PRE> |
---|
| 408 | <DL> |
---|
| 409 | <DD>Read a set of groups. |
---|
| 410 | <P> |
---|
| 411 | <DD><DL> |
---|
| 412 | <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/apache/hadoop/io/Writable.html#readFields(java.io.DataInput)">readFields</A></CODE> in interface <CODE><A HREF="../../../../org/apache/hadoop/io/Writable.html" title="interface in org.apache.hadoop.io">Writable</A></CODE></DL> |
---|
| 413 | </DD> |
---|
| 414 | <DD><DL> |
---|
| 415 | <DT><B>Parameters:</B><DD><CODE>in</CODE> - <code>DataInput</code> to deseriablize this object from. |
---|
| 416 | <DT><B>Throws:</B> |
---|
| 417 | <DD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></CODE></DL> |
---|
| 418 | </DD> |
---|
| 419 | </DL> |
---|
| 420 | <HR> |
---|
| 421 | |
---|
| 422 | <A NAME="toString()"><!-- --></A><H3> |
---|
| 423 | toString</H3> |
---|
| 424 | <PRE> |
---|
| 425 | public <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> <B>toString</B>()</PRE> |
---|
| 426 | <DL> |
---|
| 427 | <DD>Return textual representation of the counter values. |
---|
| 428 | <P> |
---|
| 429 | <DD><DL> |
---|
| 430 | <DT><B>Overrides:</B><DD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#toString()" title="class or interface in java.lang">toString</A></CODE> in class <CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A></CODE></DL> |
---|
| 431 | </DD> |
---|
| 432 | <DD><DL> |
---|
| 433 | </DL> |
---|
| 434 | </DD> |
---|
| 435 | </DL> |
---|
| 436 | <HR> |
---|
| 437 | |
---|
| 438 | <A NAME="incrAllCounters(org.apache.hadoop.mapreduce.Counters)"><!-- --></A><H3> |
---|
| 439 | incrAllCounters</H3> |
---|
| 440 | <PRE> |
---|
| 441 | public void <B>incrAllCounters</B>(<A HREF="../../../../org/apache/hadoop/mapreduce/Counters.html" title="class in org.apache.hadoop.mapreduce">Counters</A> other)</PRE> |
---|
| 442 | <DL> |
---|
| 443 | <DD>Increments multiple counters by their amounts in another Counters |
---|
| 444 | instance. |
---|
| 445 | <P> |
---|
| 446 | <DD><DL> |
---|
| 447 | </DL> |
---|
| 448 | </DD> |
---|
| 449 | <DD><DL> |
---|
| 450 | <DT><B>Parameters:</B><DD><CODE>other</CODE> - the other Counters instance</DL> |
---|
| 451 | </DD> |
---|
| 452 | </DL> |
---|
| 453 | <HR> |
---|
| 454 | |
---|
| 455 | <A NAME="equals(java.lang.Object)"><!-- --></A><H3> |
---|
| 456 | equals</H3> |
---|
| 457 | <PRE> |
---|
| 458 | public boolean <B>equals</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A> genericRight)</PRE> |
---|
| 459 | <DL> |
---|
| 460 | <DD><DL> |
---|
| 461 | <DT><B>Overrides:</B><DD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#equals(java.lang.Object)" title="class or interface in java.lang">equals</A></CODE> in class <CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A></CODE></DL> |
---|
| 462 | </DD> |
---|
| 463 | <DD><DL> |
---|
| 464 | </DL> |
---|
| 465 | </DD> |
---|
| 466 | </DL> |
---|
| 467 | <HR> |
---|
| 468 | |
---|
| 469 | <A NAME="hashCode()"><!-- --></A><H3> |
---|
| 470 | hashCode</H3> |
---|
| 471 | <PRE> |
---|
| 472 | public int <B>hashCode</B>()</PRE> |
---|
| 473 | <DL> |
---|
| 474 | <DD><DL> |
---|
| 475 | <DT><B>Overrides:</B><DD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#hashCode()" title="class or interface in java.lang">hashCode</A></CODE> in class <CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A></CODE></DL> |
---|
| 476 | </DD> |
---|
| 477 | <DD><DL> |
---|
| 478 | </DL> |
---|
| 479 | </DD> |
---|
| 480 | </DL> |
---|
| 481 | <!-- ========= END OF CLASS DATA ========= --> |
---|
| 482 | <HR> |
---|
| 483 | |
---|
| 484 | |
---|
| 485 | <!-- ======= START OF BOTTOM NAVBAR ====== --> |
---|
| 486 | <A NAME="navbar_bottom"><!-- --></A> |
---|
| 487 | <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A> |
---|
| 488 | <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> |
---|
| 489 | <TR> |
---|
| 490 | <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> |
---|
| 491 | <A NAME="navbar_bottom_firstrow"><!-- --></A> |
---|
| 492 | <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> |
---|
| 493 | <TR ALIGN="center" VALIGN="top"> |
---|
| 494 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> |
---|
| 495 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> |
---|
| 496 | <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> |
---|
| 497 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/Counters.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> |
---|
| 498 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> |
---|
| 499 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> |
---|
| 500 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> |
---|
| 501 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> |
---|
| 502 | </TR> |
---|
| 503 | </TABLE> |
---|
| 504 | </TD> |
---|
| 505 | <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> |
---|
| 506 | </EM> |
---|
| 507 | </TD> |
---|
| 508 | </TR> |
---|
| 509 | |
---|
| 510 | <TR> |
---|
| 511 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
---|
| 512 | <A HREF="../../../../org/apache/hadoop/mapreduce/CounterGroup.html" title="class in org.apache.hadoop.mapreduce"><B>PREV CLASS</B></A> |
---|
| 513 | <A HREF="../../../../org/apache/hadoop/mapreduce/ID.html" title="class in org.apache.hadoop.mapreduce"><B>NEXT CLASS</B></A></FONT></TD> |
---|
| 514 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
---|
| 515 | <A HREF="../../../../index.html?org/apache/hadoop/mapreduce/Counters.html" target="_top"><B>FRAMES</B></A> |
---|
| 516 | <A HREF="Counters.html" target="_top"><B>NO FRAMES</B></A> |
---|
| 517 | <SCRIPT type="text/javascript"> |
---|
| 518 | <!-- |
---|
| 519 | if(window==top) { |
---|
| 520 | document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>'); |
---|
| 521 | } |
---|
| 522 | //--> |
---|
| 523 | </SCRIPT> |
---|
| 524 | <NOSCRIPT> |
---|
| 525 | <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A> |
---|
| 526 | </NOSCRIPT> |
---|
| 527 | |
---|
| 528 | |
---|
| 529 | </FONT></TD> |
---|
| 530 | </TR> |
---|
| 531 | <TR> |
---|
| 532 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
---|
| 533 | SUMMARY: NESTED | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> |
---|
| 534 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
---|
| 535 | DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> |
---|
| 536 | </TR> |
---|
| 537 | </TABLE> |
---|
| 538 | <A NAME="skip-navbar_bottom"></A> |
---|
| 539 | <!-- ======== END OF BOTTOM NAVBAR ======= --> |
---|
| 540 | |
---|
| 541 | <HR> |
---|
| 542 | Copyright © 2009 The Apache Software Foundation |
---|
| 543 | </BODY> |
---|
| 544 | </HTML> |
---|