[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:52 UTC 2009 --> |
---|
| 6 | <TITLE> |
---|
| 7 | GenericWritable (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="GenericWritable (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/GenericWritable.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/io/FloatWritable.Comparator.html" title="class in org.apache.hadoop.io"><B>PREV CLASS</B></A> |
---|
| 59 | <A HREF="../../../../org/apache/hadoop/io/InputBuffer.html" title="class in org.apache.hadoop.io"><B>NEXT CLASS</B></A></FONT></TD> |
---|
| 60 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
---|
| 61 | <A HREF="../../../../index.html?org/apache/hadoop/io/GenericWritable.html" target="_top"><B>FRAMES</B></A> |
---|
| 62 | <A HREF="GenericWritable.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.io</FONT> |
---|
| 92 | <BR> |
---|
| 93 | Class GenericWritable</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.io.GenericWritable</B> |
---|
| 97 | </PRE> |
---|
| 98 | <DL> |
---|
| 99 | <DT><B>All Implemented Interfaces:</B> <DD><A HREF="../../../../org/apache/hadoop/conf/Configurable.html" title="interface in org.apache.hadoop.conf">Configurable</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 abstract class <B>GenericWritable</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="../../../../org/apache/hadoop/conf/Configurable.html" title="interface in org.apache.hadoop.conf">Configurable</A></DL> |
---|
| 104 | </PRE> |
---|
| 105 | |
---|
| 106 | <P> |
---|
| 107 | A wrapper for Writable instances. |
---|
| 108 | <p> |
---|
| 109 | When two sequence files, which have same Key type but different Value |
---|
| 110 | types, are mapped out to reduce, multiple Value types is not allowed. |
---|
| 111 | In this case, this class can help you wrap instances with different types. |
---|
| 112 | </p> |
---|
| 113 | |
---|
| 114 | <p> |
---|
| 115 | Compared with <code>ObjectWritable</code>, this class is much more effective, |
---|
| 116 | because <code>ObjectWritable</code> will append the class declaration as a String |
---|
| 117 | into the output file in every Key-Value pair. |
---|
| 118 | </p> |
---|
| 119 | |
---|
| 120 | <p> |
---|
| 121 | Generic Writable implements <A HREF="../../../../org/apache/hadoop/conf/Configurable.html" title="interface in org.apache.hadoop.conf"><CODE>Configurable</CODE></A> interface, so that it will be |
---|
| 122 | configured by the framework. The configuration is passed to the wrapped objects |
---|
| 123 | implementing <A HREF="../../../../org/apache/hadoop/conf/Configurable.html" title="interface in org.apache.hadoop.conf"><CODE>Configurable</CODE></A> interface <i>before deserialization</i>. |
---|
| 124 | </p> |
---|
| 125 | |
---|
| 126 | how to use it: <br> |
---|
| 127 | 1. Write your own class, such as GenericObject, which extends GenericWritable.<br> |
---|
| 128 | 2. Implements the abstract method <code>getTypes()</code>, defines |
---|
| 129 | the classes which will be wrapped in GenericObject in application. |
---|
| 130 | Attention: this classes defined in <code>getTypes()</code> method, must |
---|
| 131 | implement <code>Writable</code> interface. |
---|
| 132 | <br><br> |
---|
| 133 | |
---|
| 134 | The code looks like this: |
---|
| 135 | <blockquote><pre> |
---|
| 136 | public class GenericObject extends GenericWritable { |
---|
| 137 | |
---|
| 138 | private static Class[] CLASSES = { |
---|
| 139 | ClassType1.class, |
---|
| 140 | ClassType2.class, |
---|
| 141 | ClassType3.class, |
---|
| 142 | }; |
---|
| 143 | |
---|
| 144 | protected Class[] getTypes() { |
---|
| 145 | return CLASSES; |
---|
| 146 | } |
---|
| 147 | |
---|
| 148 | } |
---|
| 149 | </pre></blockquote> |
---|
| 150 | <P> |
---|
| 151 | |
---|
| 152 | <P> |
---|
| 153 | <DL> |
---|
| 154 | <DT><B>Since:</B></DT> |
---|
| 155 | <DD>Nov 8, 2006</DD> |
---|
| 156 | </DL> |
---|
| 157 | <HR> |
---|
| 158 | |
---|
| 159 | <P> |
---|
| 160 | |
---|
| 161 | <!-- ======== CONSTRUCTOR SUMMARY ======== --> |
---|
| 162 | |
---|
| 163 | <A NAME="constructor_summary"><!-- --></A> |
---|
| 164 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
---|
| 165 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
---|
| 166 | <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> |
---|
| 167 | <B>Constructor Summary</B></FONT></TH> |
---|
| 168 | </TR> |
---|
| 169 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 170 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/io/GenericWritable.html#GenericWritable()">GenericWritable</A></B>()</CODE> |
---|
| 171 | |
---|
| 172 | <BR> |
---|
| 173 | </TD> |
---|
| 174 | </TR> |
---|
| 175 | </TABLE> |
---|
| 176 | |
---|
| 177 | <!-- ========== METHOD SUMMARY =========== --> |
---|
| 178 | |
---|
| 179 | <A NAME="method_summary"><!-- --></A> |
---|
| 180 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
---|
| 181 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
---|
| 182 | <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> |
---|
| 183 | <B>Method Summary</B></FONT></TH> |
---|
| 184 | </TR> |
---|
| 185 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 186 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 187 | <CODE> <A HREF="../../../../org/apache/hadoop/io/Writable.html" title="interface in org.apache.hadoop.io">Writable</A></CODE></FONT></TD> |
---|
| 188 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/io/GenericWritable.html#get()">get</A></B>()</CODE> |
---|
| 189 | |
---|
| 190 | <BR> |
---|
| 191 | Return the wrapped instance.</TD> |
---|
| 192 | </TR> |
---|
| 193 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 194 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 195 | <CODE> <A HREF="../../../../org/apache/hadoop/conf/Configuration.html" title="class in org.apache.hadoop.conf">Configuration</A></CODE></FONT></TD> |
---|
| 196 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/io/GenericWritable.html#getConf()">getConf</A></B>()</CODE> |
---|
| 197 | |
---|
| 198 | <BR> |
---|
| 199 | Return the configuration used by this object.</TD> |
---|
| 200 | </TR> |
---|
| 201 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 202 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 203 | <CODE>protected abstract <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A><? extends <A HREF="../../../../org/apache/hadoop/io/Writable.html" title="interface in org.apache.hadoop.io">Writable</A>>[]</CODE></FONT></TD> |
---|
| 204 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/io/GenericWritable.html#getTypes()">getTypes</A></B>()</CODE> |
---|
| 205 | |
---|
| 206 | <BR> |
---|
| 207 | Return all classes that may be wrapped.</TD> |
---|
| 208 | </TR> |
---|
| 209 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 210 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 211 | <CODE> void</CODE></FONT></TD> |
---|
| 212 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/io/GenericWritable.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> |
---|
| 213 | |
---|
| 214 | <BR> |
---|
| 215 | Deserialize the fields of this object from <code>in</code>.</TD> |
---|
| 216 | </TR> |
---|
| 217 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 218 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 219 | <CODE> void</CODE></FONT></TD> |
---|
| 220 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/io/GenericWritable.html#set(org.apache.hadoop.io.Writable)">set</A></B>(<A HREF="../../../../org/apache/hadoop/io/Writable.html" title="interface in org.apache.hadoop.io">Writable</A> obj)</CODE> |
---|
| 221 | |
---|
| 222 | <BR> |
---|
| 223 | Set the instance that is wrapped.</TD> |
---|
| 224 | </TR> |
---|
| 225 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 226 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 227 | <CODE> void</CODE></FONT></TD> |
---|
| 228 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/io/GenericWritable.html#setConf(org.apache.hadoop.conf.Configuration)">setConf</A></B>(<A HREF="../../../../org/apache/hadoop/conf/Configuration.html" title="class in org.apache.hadoop.conf">Configuration</A> conf)</CODE> |
---|
| 229 | |
---|
| 230 | <BR> |
---|
| 231 | Set the configuration to be used by this object.</TD> |
---|
| 232 | </TR> |
---|
| 233 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 234 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 235 | <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> |
---|
| 236 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/io/GenericWritable.html#toString()">toString</A></B>()</CODE> |
---|
| 237 | |
---|
| 238 | <BR> |
---|
| 239 | </TD> |
---|
| 240 | </TR> |
---|
| 241 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 242 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 243 | <CODE> void</CODE></FONT></TD> |
---|
| 244 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/io/GenericWritable.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> |
---|
| 245 | |
---|
| 246 | <BR> |
---|
| 247 | Serialize the fields of this object to <code>out</code>.</TD> |
---|
| 248 | </TR> |
---|
| 249 | </TABLE> |
---|
| 250 | <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A> |
---|
| 251 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
---|
| 252 | <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> |
---|
| 253 | <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> |
---|
| 254 | </TR> |
---|
| 255 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 256 | <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#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/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#hashCode()" title="class or interface in java.lang">hashCode</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> |
---|
| 257 | </TR> |
---|
| 258 | </TABLE> |
---|
| 259 | |
---|
| 260 | <P> |
---|
| 261 | |
---|
| 262 | <!-- ========= CONSTRUCTOR DETAIL ======== --> |
---|
| 263 | |
---|
| 264 | <A NAME="constructor_detail"><!-- --></A> |
---|
| 265 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
---|
| 266 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
---|
| 267 | <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> |
---|
| 268 | <B>Constructor Detail</B></FONT></TH> |
---|
| 269 | </TR> |
---|
| 270 | </TABLE> |
---|
| 271 | |
---|
| 272 | <A NAME="GenericWritable()"><!-- --></A><H3> |
---|
| 273 | GenericWritable</H3> |
---|
| 274 | <PRE> |
---|
| 275 | public <B>GenericWritable</B>()</PRE> |
---|
| 276 | <DL> |
---|
| 277 | </DL> |
---|
| 278 | |
---|
| 279 | <!-- ============ METHOD DETAIL ========== --> |
---|
| 280 | |
---|
| 281 | <A NAME="method_detail"><!-- --></A> |
---|
| 282 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
---|
| 283 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
---|
| 284 | <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> |
---|
| 285 | <B>Method Detail</B></FONT></TH> |
---|
| 286 | </TR> |
---|
| 287 | </TABLE> |
---|
| 288 | |
---|
| 289 | <A NAME="set(org.apache.hadoop.io.Writable)"><!-- --></A><H3> |
---|
| 290 | set</H3> |
---|
| 291 | <PRE> |
---|
| 292 | public void <B>set</B>(<A HREF="../../../../org/apache/hadoop/io/Writable.html" title="interface in org.apache.hadoop.io">Writable</A> obj)</PRE> |
---|
| 293 | <DL> |
---|
| 294 | <DD>Set the instance that is wrapped. |
---|
| 295 | <P> |
---|
| 296 | <DD><DL> |
---|
| 297 | </DL> |
---|
| 298 | </DD> |
---|
| 299 | <DD><DL> |
---|
| 300 | <DT><B>Parameters:</B><DD><CODE>obj</CODE> - </DL> |
---|
| 301 | </DD> |
---|
| 302 | </DL> |
---|
| 303 | <HR> |
---|
| 304 | |
---|
| 305 | <A NAME="get()"><!-- --></A><H3> |
---|
| 306 | get</H3> |
---|
| 307 | <PRE> |
---|
| 308 | public <A HREF="../../../../org/apache/hadoop/io/Writable.html" title="interface in org.apache.hadoop.io">Writable</A> <B>get</B>()</PRE> |
---|
| 309 | <DL> |
---|
| 310 | <DD>Return the wrapped instance. |
---|
| 311 | <P> |
---|
| 312 | <DD><DL> |
---|
| 313 | </DL> |
---|
| 314 | </DD> |
---|
| 315 | <DD><DL> |
---|
| 316 | </DL> |
---|
| 317 | </DD> |
---|
| 318 | </DL> |
---|
| 319 | <HR> |
---|
| 320 | |
---|
| 321 | <A NAME="toString()"><!-- --></A><H3> |
---|
| 322 | toString</H3> |
---|
| 323 | <PRE> |
---|
| 324 | 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> |
---|
| 325 | <DL> |
---|
| 326 | <DD><DL> |
---|
| 327 | <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> |
---|
| 328 | </DD> |
---|
| 329 | <DD><DL> |
---|
| 330 | </DL> |
---|
| 331 | </DD> |
---|
| 332 | </DL> |
---|
| 333 | <HR> |
---|
| 334 | |
---|
| 335 | <A NAME="readFields(java.io.DataInput)"><!-- --></A><H3> |
---|
| 336 | readFields</H3> |
---|
| 337 | <PRE> |
---|
| 338 | 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) |
---|
| 339 | 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> |
---|
| 340 | <DL> |
---|
| 341 | <DD><B>Description copied from interface: <CODE><A HREF="../../../../org/apache/hadoop/io/Writable.html#readFields(java.io.DataInput)">Writable</A></CODE></B></DD> |
---|
| 342 | <DD>Deserialize the fields of this object from <code>in</code>. |
---|
| 343 | |
---|
| 344 | <p>For efficiency, implementations should attempt to re-use storage in the |
---|
| 345 | existing object where possible.</p> |
---|
| 346 | <P> |
---|
| 347 | <DD><DL> |
---|
| 348 | <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> |
---|
| 349 | </DD> |
---|
| 350 | <DD><DL> |
---|
| 351 | <DT><B>Parameters:</B><DD><CODE>in</CODE> - <code>DataInput</code> to deseriablize this object from. |
---|
| 352 | <DT><B>Throws:</B> |
---|
| 353 | <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> |
---|
| 354 | </DD> |
---|
| 355 | </DL> |
---|
| 356 | <HR> |
---|
| 357 | |
---|
| 358 | <A NAME="write(java.io.DataOutput)"><!-- --></A><H3> |
---|
| 359 | write</H3> |
---|
| 360 | <PRE> |
---|
| 361 | 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) |
---|
| 362 | 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> |
---|
| 363 | <DL> |
---|
| 364 | <DD><B>Description copied from interface: <CODE><A HREF="../../../../org/apache/hadoop/io/Writable.html#write(java.io.DataOutput)">Writable</A></CODE></B></DD> |
---|
| 365 | <DD>Serialize the fields of this object to <code>out</code>. |
---|
| 366 | <P> |
---|
| 367 | <DD><DL> |
---|
| 368 | <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> |
---|
| 369 | </DD> |
---|
| 370 | <DD><DL> |
---|
| 371 | <DT><B>Parameters:</B><DD><CODE>out</CODE> - <code>DataOuput</code> to serialize this object into. |
---|
| 372 | <DT><B>Throws:</B> |
---|
| 373 | <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> |
---|
| 374 | </DD> |
---|
| 375 | </DL> |
---|
| 376 | <HR> |
---|
| 377 | |
---|
| 378 | <A NAME="getTypes()"><!-- --></A><H3> |
---|
| 379 | getTypes</H3> |
---|
| 380 | <PRE> |
---|
| 381 | protected abstract <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A><? extends <A HREF="../../../../org/apache/hadoop/io/Writable.html" title="interface in org.apache.hadoop.io">Writable</A>>[] <B>getTypes</B>()</PRE> |
---|
| 382 | <DL> |
---|
| 383 | <DD>Return all classes that may be wrapped. Subclasses should implement this |
---|
| 384 | to return a constant array of classes. |
---|
| 385 | <P> |
---|
| 386 | <DD><DL> |
---|
| 387 | </DL> |
---|
| 388 | </DD> |
---|
| 389 | <DD><DL> |
---|
| 390 | </DL> |
---|
| 391 | </DD> |
---|
| 392 | </DL> |
---|
| 393 | <HR> |
---|
| 394 | |
---|
| 395 | <A NAME="getConf()"><!-- --></A><H3> |
---|
| 396 | getConf</H3> |
---|
| 397 | <PRE> |
---|
| 398 | public <A HREF="../../../../org/apache/hadoop/conf/Configuration.html" title="class in org.apache.hadoop.conf">Configuration</A> <B>getConf</B>()</PRE> |
---|
| 399 | <DL> |
---|
| 400 | <DD><B>Description copied from interface: <CODE><A HREF="../../../../org/apache/hadoop/conf/Configurable.html#getConf()">Configurable</A></CODE></B></DD> |
---|
| 401 | <DD>Return the configuration used by this object. |
---|
| 402 | <P> |
---|
| 403 | <DD><DL> |
---|
| 404 | <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/apache/hadoop/conf/Configurable.html#getConf()">getConf</A></CODE> in interface <CODE><A HREF="../../../../org/apache/hadoop/conf/Configurable.html" title="interface in org.apache.hadoop.conf">Configurable</A></CODE></DL> |
---|
| 405 | </DD> |
---|
| 406 | <DD><DL> |
---|
| 407 | </DL> |
---|
| 408 | </DD> |
---|
| 409 | </DL> |
---|
| 410 | <HR> |
---|
| 411 | |
---|
| 412 | <A NAME="setConf(org.apache.hadoop.conf.Configuration)"><!-- --></A><H3> |
---|
| 413 | setConf</H3> |
---|
| 414 | <PRE> |
---|
| 415 | public void <B>setConf</B>(<A HREF="../../../../org/apache/hadoop/conf/Configuration.html" title="class in org.apache.hadoop.conf">Configuration</A> conf)</PRE> |
---|
| 416 | <DL> |
---|
| 417 | <DD><B>Description copied from interface: <CODE><A HREF="../../../../org/apache/hadoop/conf/Configurable.html#setConf(org.apache.hadoop.conf.Configuration)">Configurable</A></CODE></B></DD> |
---|
| 418 | <DD>Set the configuration to be used by this object. |
---|
| 419 | <P> |
---|
| 420 | <DD><DL> |
---|
| 421 | <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/apache/hadoop/conf/Configurable.html#setConf(org.apache.hadoop.conf.Configuration)">setConf</A></CODE> in interface <CODE><A HREF="../../../../org/apache/hadoop/conf/Configurable.html" title="interface in org.apache.hadoop.conf">Configurable</A></CODE></DL> |
---|
| 422 | </DD> |
---|
| 423 | <DD><DL> |
---|
| 424 | </DL> |
---|
| 425 | </DD> |
---|
| 426 | </DL> |
---|
| 427 | <!-- ========= END OF CLASS DATA ========= --> |
---|
| 428 | <HR> |
---|
| 429 | |
---|
| 430 | |
---|
| 431 | <!-- ======= START OF BOTTOM NAVBAR ====== --> |
---|
| 432 | <A NAME="navbar_bottom"><!-- --></A> |
---|
| 433 | <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A> |
---|
| 434 | <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> |
---|
| 435 | <TR> |
---|
| 436 | <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> |
---|
| 437 | <A NAME="navbar_bottom_firstrow"><!-- --></A> |
---|
| 438 | <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> |
---|
| 439 | <TR ALIGN="center" VALIGN="top"> |
---|
| 440 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> |
---|
| 441 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> |
---|
| 442 | <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> |
---|
| 443 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/GenericWritable.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> |
---|
| 444 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> |
---|
| 445 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> |
---|
| 446 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> |
---|
| 447 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> |
---|
| 448 | </TR> |
---|
| 449 | </TABLE> |
---|
| 450 | </TD> |
---|
| 451 | <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> |
---|
| 452 | </EM> |
---|
| 453 | </TD> |
---|
| 454 | </TR> |
---|
| 455 | |
---|
| 456 | <TR> |
---|
| 457 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
---|
| 458 | <A HREF="../../../../org/apache/hadoop/io/FloatWritable.Comparator.html" title="class in org.apache.hadoop.io"><B>PREV CLASS</B></A> |
---|
| 459 | <A HREF="../../../../org/apache/hadoop/io/InputBuffer.html" title="class in org.apache.hadoop.io"><B>NEXT CLASS</B></A></FONT></TD> |
---|
| 460 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
---|
| 461 | <A HREF="../../../../index.html?org/apache/hadoop/io/GenericWritable.html" target="_top"><B>FRAMES</B></A> |
---|
| 462 | <A HREF="GenericWritable.html" target="_top"><B>NO FRAMES</B></A> |
---|
| 463 | <SCRIPT type="text/javascript"> |
---|
| 464 | <!-- |
---|
| 465 | if(window==top) { |
---|
| 466 | document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>'); |
---|
| 467 | } |
---|
| 468 | //--> |
---|
| 469 | </SCRIPT> |
---|
| 470 | <NOSCRIPT> |
---|
| 471 | <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A> |
---|
| 472 | </NOSCRIPT> |
---|
| 473 | |
---|
| 474 | |
---|
| 475 | </FONT></TD> |
---|
| 476 | </TR> |
---|
| 477 | <TR> |
---|
| 478 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
---|
| 479 | SUMMARY: NESTED | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> |
---|
| 480 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
---|
| 481 | DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> |
---|
| 482 | </TR> |
---|
| 483 | </TABLE> |
---|
| 484 | <A NAME="skip-navbar_bottom"></A> |
---|
| 485 | <!-- ======== END OF BOTTOM NAVBAR ======= --> |
---|
| 486 | |
---|
| 487 | <HR> |
---|
| 488 | Copyright © 2009 The Apache Software Foundation |
---|
| 489 | </BODY> |
---|
| 490 | </HTML> |
---|