[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:55 UTC 2009 --> |
---|
| 6 | <TITLE> |
---|
| 7 | StringUtils.TraditionalBinaryPrefix (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="StringUtils.TraditionalBinaryPrefix (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/StringUtils.TraditionalBinaryPrefix.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/util/StringUtils.html" title="class in org.apache.hadoop.util"><B>PREV CLASS</B></A> |
---|
| 59 | <A HREF="../../../../org/apache/hadoop/util/Tool.html" title="interface in org.apache.hadoop.util"><B>NEXT CLASS</B></A></FONT></TD> |
---|
| 60 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
---|
| 61 | <A HREF="../../../../index.html?org/apache/hadoop/util/StringUtils.TraditionalBinaryPrefix.html" target="_top"><B>FRAMES</B></A> |
---|
| 62 | <A HREF="StringUtils.TraditionalBinaryPrefix.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="#enum_constant_summary">ENUM CONSTANTS</A> | <A HREF="#field_summary">FIELD</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> |
---|
| 80 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
---|
| 81 | DETAIL: <A HREF="#enum_constant_detail">ENUM CONSTANTS</A> | <A HREF="#field_detail">FIELD</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.util</FONT> |
---|
| 92 | <BR> |
---|
| 93 | Enum StringUtils.TraditionalBinaryPrefix</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 "><A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Enum.html?is-external=true" title="class or interface in java.lang">java.lang.Enum</A><<A HREF="../../../../org/apache/hadoop/util/StringUtils.TraditionalBinaryPrefix.html" title="enum in org.apache.hadoop.util">StringUtils.TraditionalBinaryPrefix</A>> |
---|
| 97 | <IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><B>org.apache.hadoop.util.StringUtils.TraditionalBinaryPrefix</B> |
---|
| 98 | </PRE> |
---|
| 99 | <DL> |
---|
| 100 | <DT><B>All Implemented Interfaces:</B> <DD><A HREF="http://java.sun.com/javase/6/docs/api/java/io/Serializable.html?is-external=true" title="class or interface in java.io">Serializable</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Comparable.html?is-external=true" title="class or interface in java.lang">Comparable</A><<A HREF="../../../../org/apache/hadoop/util/StringUtils.TraditionalBinaryPrefix.html" title="enum in org.apache.hadoop.util">StringUtils.TraditionalBinaryPrefix</A>></DD> |
---|
| 101 | </DL> |
---|
| 102 | <DL> |
---|
| 103 | <DT><B>Enclosing class:</B><DD><A HREF="../../../../org/apache/hadoop/util/StringUtils.html" title="class in org.apache.hadoop.util">StringUtils</A></DD> |
---|
| 104 | </DL> |
---|
| 105 | <HR> |
---|
| 106 | <DL> |
---|
| 107 | <DT><PRE>public static enum <B>StringUtils.TraditionalBinaryPrefix</B><DT>extends <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><<A HREF="../../../../org/apache/hadoop/util/StringUtils.TraditionalBinaryPrefix.html" title="enum in org.apache.hadoop.util">StringUtils.TraditionalBinaryPrefix</A>></DL> |
---|
| 108 | </PRE> |
---|
| 109 | |
---|
| 110 | <P> |
---|
| 111 | The traditional binary prefixes, kilo, mega, ..., exa, |
---|
| 112 | which can be represented by a 64-bit integer. |
---|
| 113 | TraditionalBinaryPrefix symbol are case insensitive. |
---|
| 114 | <P> |
---|
| 115 | |
---|
| 116 | <P> |
---|
| 117 | <HR> |
---|
| 118 | |
---|
| 119 | <P> |
---|
| 120 | <!-- =========== ENUM CONSTANT SUMMARY =========== --> |
---|
| 121 | |
---|
| 122 | <A NAME="enum_constant_summary"><!-- --></A> |
---|
| 123 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
---|
| 124 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
---|
| 125 | <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> |
---|
| 126 | <B>Enum Constant Summary</B></FONT></TH> |
---|
| 127 | </TR> |
---|
| 128 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 129 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/util/StringUtils.TraditionalBinaryPrefix.html#EXA">EXA</A></B></CODE> |
---|
| 130 | |
---|
| 131 | <BR> |
---|
| 132 | </TD> |
---|
| 133 | </TR> |
---|
| 134 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 135 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/util/StringUtils.TraditionalBinaryPrefix.html#GIGA">GIGA</A></B></CODE> |
---|
| 136 | |
---|
| 137 | <BR> |
---|
| 138 | </TD> |
---|
| 139 | </TR> |
---|
| 140 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 141 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/util/StringUtils.TraditionalBinaryPrefix.html#KILO">KILO</A></B></CODE> |
---|
| 142 | |
---|
| 143 | <BR> |
---|
| 144 | </TD> |
---|
| 145 | </TR> |
---|
| 146 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 147 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/util/StringUtils.TraditionalBinaryPrefix.html#MEGA">MEGA</A></B></CODE> |
---|
| 148 | |
---|
| 149 | <BR> |
---|
| 150 | </TD> |
---|
| 151 | </TR> |
---|
| 152 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 153 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/util/StringUtils.TraditionalBinaryPrefix.html#PETA">PETA</A></B></CODE> |
---|
| 154 | |
---|
| 155 | <BR> |
---|
| 156 | </TD> |
---|
| 157 | </TR> |
---|
| 158 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 159 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/util/StringUtils.TraditionalBinaryPrefix.html#TERA">TERA</A></B></CODE> |
---|
| 160 | |
---|
| 161 | <BR> |
---|
| 162 | </TD> |
---|
| 163 | </TR> |
---|
| 164 | </TABLE> |
---|
| 165 | <!-- =========== FIELD SUMMARY =========== --> |
---|
| 166 | |
---|
| 167 | <A NAME="field_summary"><!-- --></A> |
---|
| 168 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
---|
| 169 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
---|
| 170 | <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> |
---|
| 171 | <B>Field Summary</B></FONT></TH> |
---|
| 172 | </TR> |
---|
| 173 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 174 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 175 | <CODE> char</CODE></FONT></TD> |
---|
| 176 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/util/StringUtils.TraditionalBinaryPrefix.html#symbol">symbol</A></B></CODE> |
---|
| 177 | |
---|
| 178 | <BR> |
---|
| 179 | </TD> |
---|
| 180 | </TR> |
---|
| 181 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 182 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 183 | <CODE> long</CODE></FONT></TD> |
---|
| 184 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/util/StringUtils.TraditionalBinaryPrefix.html#value">value</A></B></CODE> |
---|
| 185 | |
---|
| 186 | <BR> |
---|
| 187 | </TD> |
---|
| 188 | </TR> |
---|
| 189 | </TABLE> |
---|
| 190 | |
---|
| 191 | <!-- ========== METHOD SUMMARY =========== --> |
---|
| 192 | |
---|
| 193 | <A NAME="method_summary"><!-- --></A> |
---|
| 194 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
---|
| 195 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
---|
| 196 | <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> |
---|
| 197 | <B>Method Summary</B></FONT></TH> |
---|
| 198 | </TR> |
---|
| 199 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 200 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 201 | <CODE>static long</CODE></FONT></TD> |
---|
| 202 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/util/StringUtils.TraditionalBinaryPrefix.html#string2long(java.lang.String)">string2long</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> s)</CODE> |
---|
| 203 | |
---|
| 204 | <BR> |
---|
| 205 | Convert a string to long.</TD> |
---|
| 206 | </TR> |
---|
| 207 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 208 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 209 | <CODE>static <A HREF="../../../../org/apache/hadoop/util/StringUtils.TraditionalBinaryPrefix.html" title="enum in org.apache.hadoop.util">StringUtils.TraditionalBinaryPrefix</A></CODE></FONT></TD> |
---|
| 210 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/util/StringUtils.TraditionalBinaryPrefix.html#valueOf(char)">valueOf</A></B>(char symbol)</CODE> |
---|
| 211 | |
---|
| 212 | <BR> |
---|
| 213 | </TD> |
---|
| 214 | </TR> |
---|
| 215 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 216 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 217 | <CODE>static <A HREF="../../../../org/apache/hadoop/util/StringUtils.TraditionalBinaryPrefix.html" title="enum in org.apache.hadoop.util">StringUtils.TraditionalBinaryPrefix</A></CODE></FONT></TD> |
---|
| 218 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/util/StringUtils.TraditionalBinaryPrefix.html#valueOf(java.lang.String)">valueOf</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> name)</CODE> |
---|
| 219 | |
---|
| 220 | <BR> |
---|
| 221 | Returns the enum constant of this type with the specified name.</TD> |
---|
| 222 | </TR> |
---|
| 223 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 224 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 225 | <CODE>static <A HREF="../../../../org/apache/hadoop/util/StringUtils.TraditionalBinaryPrefix.html" title="enum in org.apache.hadoop.util">StringUtils.TraditionalBinaryPrefix</A>[]</CODE></FONT></TD> |
---|
| 226 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/util/StringUtils.TraditionalBinaryPrefix.html#values()">values</A></B>()</CODE> |
---|
| 227 | |
---|
| 228 | <BR> |
---|
| 229 | Returns an array containing the constants of this enum type, in |
---|
| 230 | the order they are declared.</TD> |
---|
| 231 | </TR> |
---|
| 232 | </TABLE> |
---|
| 233 | <A NAME="methods_inherited_from_class_java.lang.Enum"><!-- --></A> |
---|
| 234 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
---|
| 235 | <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> |
---|
| 236 | <TH ALIGN="left"><B>Methods inherited from class java.lang.<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></B></TH> |
---|
| 237 | </TR> |
---|
| 238 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 239 | <TD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Enum.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/Enum.html?is-external=true#compareTo(E)" title="class or interface in java.lang">compareTo</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Enum.html?is-external=true#equals(java.lang.Object)" title="class or interface in java.lang">equals</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Enum.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/Enum.html?is-external=true#getDeclaringClass()" title="class or interface in java.lang">getDeclaringClass</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Enum.html?is-external=true#hashCode()" title="class or interface in java.lang">hashCode</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Enum.html?is-external=true#name()" title="class or interface in java.lang">name</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Enum.html?is-external=true#ordinal()" title="class or interface in java.lang">ordinal</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Enum.html?is-external=true#toString()" title="class or interface in java.lang">toString</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Enum.html?is-external=true#valueOf(java.lang.Class, java.lang.String)" title="class or interface in java.lang">valueOf</A></CODE></TD> |
---|
| 240 | </TR> |
---|
| 241 | </TABLE> |
---|
| 242 | <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A> |
---|
| 243 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
---|
| 244 | <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> |
---|
| 245 | <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> |
---|
| 246 | </TR> |
---|
| 247 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 248 | <TD><CODE><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> |
---|
| 249 | </TR> |
---|
| 250 | </TABLE> |
---|
| 251 | |
---|
| 252 | <P> |
---|
| 253 | |
---|
| 254 | <!-- ============ ENUM CONSTANT DETAIL =========== --> |
---|
| 255 | |
---|
| 256 | <A NAME="enum_constant_detail"><!-- --></A> |
---|
| 257 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
---|
| 258 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
---|
| 259 | <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> |
---|
| 260 | <B>Enum Constant Detail</B></FONT></TH> |
---|
| 261 | </TR> |
---|
| 262 | </TABLE> |
---|
| 263 | |
---|
| 264 | <A NAME="KILO"><!-- --></A><H3> |
---|
| 265 | KILO</H3> |
---|
| 266 | <PRE> |
---|
| 267 | public static final <A HREF="../../../../org/apache/hadoop/util/StringUtils.TraditionalBinaryPrefix.html" title="enum in org.apache.hadoop.util">StringUtils.TraditionalBinaryPrefix</A> <B>KILO</B></PRE> |
---|
| 268 | <DL> |
---|
| 269 | <DL> |
---|
| 270 | </DL> |
---|
| 271 | </DL> |
---|
| 272 | <HR> |
---|
| 273 | |
---|
| 274 | <A NAME="MEGA"><!-- --></A><H3> |
---|
| 275 | MEGA</H3> |
---|
| 276 | <PRE> |
---|
| 277 | public static final <A HREF="../../../../org/apache/hadoop/util/StringUtils.TraditionalBinaryPrefix.html" title="enum in org.apache.hadoop.util">StringUtils.TraditionalBinaryPrefix</A> <B>MEGA</B></PRE> |
---|
| 278 | <DL> |
---|
| 279 | <DL> |
---|
| 280 | </DL> |
---|
| 281 | </DL> |
---|
| 282 | <HR> |
---|
| 283 | |
---|
| 284 | <A NAME="GIGA"><!-- --></A><H3> |
---|
| 285 | GIGA</H3> |
---|
| 286 | <PRE> |
---|
| 287 | public static final <A HREF="../../../../org/apache/hadoop/util/StringUtils.TraditionalBinaryPrefix.html" title="enum in org.apache.hadoop.util">StringUtils.TraditionalBinaryPrefix</A> <B>GIGA</B></PRE> |
---|
| 288 | <DL> |
---|
| 289 | <DL> |
---|
| 290 | </DL> |
---|
| 291 | </DL> |
---|
| 292 | <HR> |
---|
| 293 | |
---|
| 294 | <A NAME="TERA"><!-- --></A><H3> |
---|
| 295 | TERA</H3> |
---|
| 296 | <PRE> |
---|
| 297 | public static final <A HREF="../../../../org/apache/hadoop/util/StringUtils.TraditionalBinaryPrefix.html" title="enum in org.apache.hadoop.util">StringUtils.TraditionalBinaryPrefix</A> <B>TERA</B></PRE> |
---|
| 298 | <DL> |
---|
| 299 | <DL> |
---|
| 300 | </DL> |
---|
| 301 | </DL> |
---|
| 302 | <HR> |
---|
| 303 | |
---|
| 304 | <A NAME="PETA"><!-- --></A><H3> |
---|
| 305 | PETA</H3> |
---|
| 306 | <PRE> |
---|
| 307 | public static final <A HREF="../../../../org/apache/hadoop/util/StringUtils.TraditionalBinaryPrefix.html" title="enum in org.apache.hadoop.util">StringUtils.TraditionalBinaryPrefix</A> <B>PETA</B></PRE> |
---|
| 308 | <DL> |
---|
| 309 | <DL> |
---|
| 310 | </DL> |
---|
| 311 | </DL> |
---|
| 312 | <HR> |
---|
| 313 | |
---|
| 314 | <A NAME="EXA"><!-- --></A><H3> |
---|
| 315 | EXA</H3> |
---|
| 316 | <PRE> |
---|
| 317 | public static final <A HREF="../../../../org/apache/hadoop/util/StringUtils.TraditionalBinaryPrefix.html" title="enum in org.apache.hadoop.util">StringUtils.TraditionalBinaryPrefix</A> <B>EXA</B></PRE> |
---|
| 318 | <DL> |
---|
| 319 | <DL> |
---|
| 320 | </DL> |
---|
| 321 | </DL> |
---|
| 322 | |
---|
| 323 | <!-- ============ FIELD DETAIL =========== --> |
---|
| 324 | |
---|
| 325 | <A NAME="field_detail"><!-- --></A> |
---|
| 326 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
---|
| 327 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
---|
| 328 | <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> |
---|
| 329 | <B>Field Detail</B></FONT></TH> |
---|
| 330 | </TR> |
---|
| 331 | </TABLE> |
---|
| 332 | |
---|
| 333 | <A NAME="value"><!-- --></A><H3> |
---|
| 334 | value</H3> |
---|
| 335 | <PRE> |
---|
| 336 | public final long <B>value</B></PRE> |
---|
| 337 | <DL> |
---|
| 338 | <DL> |
---|
| 339 | </DL> |
---|
| 340 | </DL> |
---|
| 341 | <HR> |
---|
| 342 | |
---|
| 343 | <A NAME="symbol"><!-- --></A><H3> |
---|
| 344 | symbol</H3> |
---|
| 345 | <PRE> |
---|
| 346 | public final char <B>symbol</B></PRE> |
---|
| 347 | <DL> |
---|
| 348 | <DL> |
---|
| 349 | </DL> |
---|
| 350 | </DL> |
---|
| 351 | |
---|
| 352 | <!-- ============ METHOD DETAIL ========== --> |
---|
| 353 | |
---|
| 354 | <A NAME="method_detail"><!-- --></A> |
---|
| 355 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
---|
| 356 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
---|
| 357 | <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> |
---|
| 358 | <B>Method Detail</B></FONT></TH> |
---|
| 359 | </TR> |
---|
| 360 | </TABLE> |
---|
| 361 | |
---|
| 362 | <A NAME="values()"><!-- --></A><H3> |
---|
| 363 | values</H3> |
---|
| 364 | <PRE> |
---|
| 365 | public static <A HREF="../../../../org/apache/hadoop/util/StringUtils.TraditionalBinaryPrefix.html" title="enum in org.apache.hadoop.util">StringUtils.TraditionalBinaryPrefix</A>[] <B>values</B>()</PRE> |
---|
| 366 | <DL> |
---|
| 367 | <DD>Returns an array containing the constants of this enum type, in |
---|
| 368 | the order they are declared. This method may be used to iterate |
---|
| 369 | over the constants as follows: |
---|
| 370 | <pre> |
---|
| 371 | for (StringUtils.TraditionalBinaryPrefix c : StringUtils.TraditionalBinaryPrefix.values()) |
---|
| 372 | System.out.println(c); |
---|
| 373 | </pre> |
---|
| 374 | <P> |
---|
| 375 | <DD><DL> |
---|
| 376 | |
---|
| 377 | <DT><B>Returns:</B><DD>an array containing the constants of this enum type, in |
---|
| 378 | the order they are declared</DL> |
---|
| 379 | </DD> |
---|
| 380 | </DL> |
---|
| 381 | <HR> |
---|
| 382 | |
---|
| 383 | <A NAME="valueOf(java.lang.String)"><!-- --></A><H3> |
---|
| 384 | valueOf</H3> |
---|
| 385 | <PRE> |
---|
| 386 | public static <A HREF="../../../../org/apache/hadoop/util/StringUtils.TraditionalBinaryPrefix.html" title="enum in org.apache.hadoop.util">StringUtils.TraditionalBinaryPrefix</A> <B>valueOf</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> name)</PRE> |
---|
| 387 | <DL> |
---|
| 388 | <DD>Returns the enum constant of this type with the specified name. |
---|
| 389 | The string must match <I>exactly</I> an identifier used to declare an |
---|
| 390 | enum constant in this type. (Extraneous whitespace characters are |
---|
| 391 | not permitted.) |
---|
| 392 | <P> |
---|
| 393 | <DD><DL> |
---|
| 394 | <DT><B>Parameters:</B><DD><CODE>name</CODE> - the name of the enum constant to be returned. |
---|
| 395 | <DT><B>Returns:</B><DD>the enum constant with the specified name |
---|
| 396 | <DT><B>Throws:</B> |
---|
| 397 | <DD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</A></CODE> - if this enum type has no constant |
---|
| 398 | with the specified name |
---|
| 399 | <DD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang">NullPointerException</A></CODE> - if the argument is null</DL> |
---|
| 400 | </DD> |
---|
| 401 | </DL> |
---|
| 402 | <HR> |
---|
| 403 | |
---|
| 404 | <A NAME="valueOf(char)"><!-- --></A><H3> |
---|
| 405 | valueOf</H3> |
---|
| 406 | <PRE> |
---|
| 407 | public static <A HREF="../../../../org/apache/hadoop/util/StringUtils.TraditionalBinaryPrefix.html" title="enum in org.apache.hadoop.util">StringUtils.TraditionalBinaryPrefix</A> <B>valueOf</B>(char symbol)</PRE> |
---|
| 408 | <DL> |
---|
| 409 | <DD><DL> |
---|
| 410 | |
---|
| 411 | <DT><B>Returns:</B><DD>The TraditionalBinaryPrefix object corresponding to the symbol.</DL> |
---|
| 412 | </DD> |
---|
| 413 | </DL> |
---|
| 414 | <HR> |
---|
| 415 | |
---|
| 416 | <A NAME="string2long(java.lang.String)"><!-- --></A><H3> |
---|
| 417 | string2long</H3> |
---|
| 418 | <PRE> |
---|
| 419 | public static long <B>string2long</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> s)</PRE> |
---|
| 420 | <DL> |
---|
| 421 | <DD>Convert a string to long. |
---|
| 422 | The input string is first be trimmed |
---|
| 423 | and then it is parsed with traditional binary prefix. |
---|
| 424 | |
---|
| 425 | For example, |
---|
| 426 | "-1230k" will be converted to -1230 * 1024 = -1259520; |
---|
| 427 | "891g" will be converted to 891 * 1024^3 = 956703965184; |
---|
| 428 | <P> |
---|
| 429 | <DD><DL> |
---|
| 430 | <DT><B>Parameters:</B><DD><CODE>s</CODE> - input string |
---|
| 431 | <DT><B>Returns:</B><DD>a long value represented by the input string.</DL> |
---|
| 432 | </DD> |
---|
| 433 | </DL> |
---|
| 434 | <!-- ========= END OF CLASS DATA ========= --> |
---|
| 435 | <HR> |
---|
| 436 | |
---|
| 437 | |
---|
| 438 | <!-- ======= START OF BOTTOM NAVBAR ====== --> |
---|
| 439 | <A NAME="navbar_bottom"><!-- --></A> |
---|
| 440 | <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A> |
---|
| 441 | <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> |
---|
| 442 | <TR> |
---|
| 443 | <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> |
---|
| 444 | <A NAME="navbar_bottom_firstrow"><!-- --></A> |
---|
| 445 | <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> |
---|
| 446 | <TR ALIGN="center" VALIGN="top"> |
---|
| 447 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> |
---|
| 448 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> |
---|
| 449 | <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> |
---|
| 450 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/StringUtils.TraditionalBinaryPrefix.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> |
---|
| 451 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> |
---|
| 452 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> |
---|
| 453 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> |
---|
| 454 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> |
---|
| 455 | </TR> |
---|
| 456 | </TABLE> |
---|
| 457 | </TD> |
---|
| 458 | <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> |
---|
| 459 | </EM> |
---|
| 460 | </TD> |
---|
| 461 | </TR> |
---|
| 462 | |
---|
| 463 | <TR> |
---|
| 464 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
---|
| 465 | <A HREF="../../../../org/apache/hadoop/util/StringUtils.html" title="class in org.apache.hadoop.util"><B>PREV CLASS</B></A> |
---|
| 466 | <A HREF="../../../../org/apache/hadoop/util/Tool.html" title="interface in org.apache.hadoop.util"><B>NEXT CLASS</B></A></FONT></TD> |
---|
| 467 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
---|
| 468 | <A HREF="../../../../index.html?org/apache/hadoop/util/StringUtils.TraditionalBinaryPrefix.html" target="_top"><B>FRAMES</B></A> |
---|
| 469 | <A HREF="StringUtils.TraditionalBinaryPrefix.html" target="_top"><B>NO FRAMES</B></A> |
---|
| 470 | <SCRIPT type="text/javascript"> |
---|
| 471 | <!-- |
---|
| 472 | if(window==top) { |
---|
| 473 | document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>'); |
---|
| 474 | } |
---|
| 475 | //--> |
---|
| 476 | </SCRIPT> |
---|
| 477 | <NOSCRIPT> |
---|
| 478 | <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A> |
---|
| 479 | </NOSCRIPT> |
---|
| 480 | |
---|
| 481 | |
---|
| 482 | </FONT></TD> |
---|
| 483 | </TR> |
---|
| 484 | <TR> |
---|
| 485 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
---|
| 486 | SUMMARY: NESTED | <A HREF="#enum_constant_summary">ENUM CONSTANTS</A> | <A HREF="#field_summary">FIELD</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> |
---|
| 487 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
---|
| 488 | DETAIL: <A HREF="#enum_constant_detail">ENUM CONSTANTS</A> | <A HREF="#field_detail">FIELD</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> |
---|
| 489 | </TR> |
---|
| 490 | </TABLE> |
---|
| 491 | <A NAME="skip-navbar_bottom"></A> |
---|
| 492 | <!-- ======== END OF BOTTOM NAVBAR ======= --> |
---|
| 493 | |
---|
| 494 | <HR> |
---|
| 495 | Copyright © 2009 The Apache Software Foundation |
---|
| 496 | </BODY> |
---|
| 497 | </HTML> |
---|