[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:59 UTC 2009 --> |
---|
| 6 | <TITLE> |
---|
| 7 | org.apache.hadoop.io.serializer (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="org.apache.hadoop.io.serializer (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="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Package</B></FONT> </TD> |
---|
| 42 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <FONT CLASS="NavBarFont1">Class</FONT> </TD> |
---|
| 43 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-use.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/retry/package-summary.html"><B>PREV PACKAGE</B></A> |
---|
| 59 | <A HREF="../../../../../org/apache/hadoop/ipc/package-summary.html"><B>NEXT PACKAGE</B></A></FONT></TD> |
---|
| 60 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
---|
| 61 | <A HREF="../../../../../index.html?org/apache/hadoop/io/serializer/package-summary.html" target="_top"><B>FRAMES</B></A> |
---|
| 62 | <A HREF="package-summary.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 | </TABLE> |
---|
| 78 | <A NAME="skip-navbar_top"></A> |
---|
| 79 | <!-- ========= END OF TOP NAVBAR ========= --> |
---|
| 80 | |
---|
| 81 | <HR> |
---|
| 82 | <H2> |
---|
| 83 | Package org.apache.hadoop.io.serializer |
---|
| 84 | </H2> |
---|
| 85 | |
---|
| 86 | This package provides a mechanism for using different serialization frameworks |
---|
| 87 | in Hadoop. |
---|
| 88 | <P> |
---|
| 89 | <B>See:</B> |
---|
| 90 | <BR> |
---|
| 91 | <A HREF="#package_description"><B>Description</B></A> |
---|
| 92 | <P> |
---|
| 93 | |
---|
| 94 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
---|
| 95 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
---|
| 96 | <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> |
---|
| 97 | <B>Interface Summary</B></FONT></TH> |
---|
| 98 | </TR> |
---|
| 99 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 100 | <TD WIDTH="15%"><B><A HREF="../../../../../org/apache/hadoop/io/serializer/Deserializer.html" title="interface in org.apache.hadoop.io.serializer">Deserializer<T></A></B></TD> |
---|
| 101 | <TD> |
---|
| 102 | Provides a facility for deserializing objects of type <T> from an |
---|
| 103 | <A HREF="http://java.sun.com/javase/6/docs/api/java/io/InputStream.html?is-external=true" title="class or interface in java.io"><CODE>InputStream</CODE></A>.</TD> |
---|
| 104 | </TR> |
---|
| 105 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 106 | <TD WIDTH="15%"><B><A HREF="../../../../../org/apache/hadoop/io/serializer/Serialization.html" title="interface in org.apache.hadoop.io.serializer">Serialization<T></A></B></TD> |
---|
| 107 | <TD> |
---|
| 108 | Encapsulates a <A HREF="../../../../../org/apache/hadoop/io/serializer/Serializer.html" title="interface in org.apache.hadoop.io.serializer"><CODE>Serializer</CODE></A>/<A HREF="../../../../../org/apache/hadoop/io/serializer/Deserializer.html" title="interface in org.apache.hadoop.io.serializer"><CODE>Deserializer</CODE></A> pair.</TD> |
---|
| 109 | </TR> |
---|
| 110 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 111 | <TD WIDTH="15%"><B><A HREF="../../../../../org/apache/hadoop/io/serializer/Serializer.html" title="interface in org.apache.hadoop.io.serializer">Serializer<T></A></B></TD> |
---|
| 112 | <TD> |
---|
| 113 | Provides a facility for serializing objects of type <T> to an |
---|
| 114 | <A HREF="http://java.sun.com/javase/6/docs/api/java/io/OutputStream.html?is-external=true" title="class or interface in java.io"><CODE>OutputStream</CODE></A>.</TD> |
---|
| 115 | </TR> |
---|
| 116 | </TABLE> |
---|
| 117 | |
---|
| 118 | |
---|
| 119 | <P> |
---|
| 120 | |
---|
| 121 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
---|
| 122 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
---|
| 123 | <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> |
---|
| 124 | <B>Class Summary</B></FONT></TH> |
---|
| 125 | </TR> |
---|
| 126 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 127 | <TD WIDTH="15%"><B><A HREF="../../../../../org/apache/hadoop/io/serializer/DeserializerComparator.html" title="class in org.apache.hadoop.io.serializer">DeserializerComparator<T></A></B></TD> |
---|
| 128 | <TD> |
---|
| 129 | A <A HREF="../../../../../org/apache/hadoop/io/RawComparator.html" title="interface in org.apache.hadoop.io"><CODE>RawComparator</CODE></A> that uses a <A HREF="../../../../../org/apache/hadoop/io/serializer/Deserializer.html" title="interface in org.apache.hadoop.io.serializer"><CODE>Deserializer</CODE></A> to deserialize |
---|
| 130 | the objects to be compared so that the standard <A HREF="http://java.sun.com/javase/6/docs/api/java/util/Comparator.html?is-external=true" title="class or interface in java.util"><CODE>Comparator</CODE></A> can |
---|
| 131 | be used to compare them.</TD> |
---|
| 132 | </TR> |
---|
| 133 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 134 | <TD WIDTH="15%"><B><A HREF="../../../../../org/apache/hadoop/io/serializer/JavaSerialization.html" title="class in org.apache.hadoop.io.serializer">JavaSerialization</A></B></TD> |
---|
| 135 | <TD> |
---|
| 136 | An experimental <A HREF="../../../../../org/apache/hadoop/io/serializer/Serialization.html" title="interface in org.apache.hadoop.io.serializer"><CODE>Serialization</CODE></A> for Java <A HREF="http://java.sun.com/javase/6/docs/api/java/io/Serializable.html?is-external=true" title="class or interface in java.io"><CODE>Serializable</CODE></A> classes.</TD> |
---|
| 137 | </TR> |
---|
| 138 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 139 | <TD WIDTH="15%"><B><A HREF="../../../../../org/apache/hadoop/io/serializer/JavaSerializationComparator.html" title="class in org.apache.hadoop.io.serializer">JavaSerializationComparator<T extends Serializable & Comparable<T>></A></B></TD> |
---|
| 140 | <TD> |
---|
| 141 | A <A HREF="../../../../../org/apache/hadoop/io/RawComparator.html" title="interface in org.apache.hadoop.io"><CODE>RawComparator</CODE></A> that uses a <A HREF="../../../../../org/apache/hadoop/io/serializer/JavaSerialization.html" title="class in org.apache.hadoop.io.serializer"><CODE>JavaSerialization</CODE></A> |
---|
| 142 | <A HREF="../../../../../org/apache/hadoop/io/serializer/Deserializer.html" title="interface in org.apache.hadoop.io.serializer"><CODE>Deserializer</CODE></A> to deserialize objects that are then compared via |
---|
| 143 | their <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Comparable.html?is-external=true" title="class or interface in java.lang"><CODE>Comparable</CODE></A> interfaces.</TD> |
---|
| 144 | </TR> |
---|
| 145 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 146 | <TD WIDTH="15%"><B><A HREF="../../../../../org/apache/hadoop/io/serializer/SerializationFactory.html" title="class in org.apache.hadoop.io.serializer">SerializationFactory</A></B></TD> |
---|
| 147 | <TD> |
---|
| 148 | A factory for <A HREF="../../../../../org/apache/hadoop/io/serializer/Serialization.html" title="interface in org.apache.hadoop.io.serializer"><CODE>Serialization</CODE></A>s.</TD> |
---|
| 149 | </TR> |
---|
| 150 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 151 | <TD WIDTH="15%"><B><A HREF="../../../../../org/apache/hadoop/io/serializer/WritableSerialization.html" title="class in org.apache.hadoop.io.serializer">WritableSerialization</A></B></TD> |
---|
| 152 | <TD>A <A HREF="../../../../../org/apache/hadoop/io/serializer/Serialization.html" title="interface in org.apache.hadoop.io.serializer"><CODE>Serialization</CODE></A> for <A HREF="../../../../../org/apache/hadoop/io/Writable.html" title="interface in org.apache.hadoop.io"><CODE>Writable</CODE></A>s that delegates to |
---|
| 153 | <A HREF="../../../../../org/apache/hadoop/io/Writable.html#write(java.io.DataOutput)"><CODE>Writable.write(java.io.DataOutput)</CODE></A> and |
---|
| 154 | <A HREF="../../../../../org/apache/hadoop/io/Writable.html#readFields(java.io.DataInput)"><CODE>Writable.readFields(java.io.DataInput)</CODE></A>.</TD> |
---|
| 155 | </TR> |
---|
| 156 | </TABLE> |
---|
| 157 | |
---|
| 158 | |
---|
| 159 | <P> |
---|
| 160 | <A NAME="package_description"><!-- --></A><H2> |
---|
| 161 | Package org.apache.hadoop.io.serializer Description |
---|
| 162 | </H2> |
---|
| 163 | |
---|
| 164 | <P> |
---|
| 165 | <p> |
---|
| 166 | This package provides a mechanism for using different serialization frameworks |
---|
| 167 | in Hadoop. The property "io.serializations" defines a list of |
---|
| 168 | <A HREF="../../../../../org/apache/hadoop/io/serializer/Serialization.html" title="interface in org.apache.hadoop.io.serializer"><CODE>Serialization</CODE></A>s that know how to create |
---|
| 169 | <A HREF="../../../../../org/apache/hadoop/io/serializer/Serializer.html" title="interface in org.apache.hadoop.io.serializer"><CODE>Serializer</CODE></A>s and |
---|
| 170 | <A HREF="../../../../../org/apache/hadoop/io/serializer/Deserializer.html" title="interface in org.apache.hadoop.io.serializer"><CODE>Deserializer</CODE></A>s. |
---|
| 171 | </p> |
---|
| 172 | |
---|
| 173 | <p> |
---|
| 174 | To add a new serialization framework write an implementation of |
---|
| 175 | <A HREF="../../../../../org/apache/hadoop/io/serializer/Serialization.html" title="interface in org.apache.hadoop.io.serializer"><CODE>Serialization</CODE></A> and add its name to the |
---|
| 176 | "io.serializations" property. |
---|
| 177 | </p> |
---|
| 178 | <P> |
---|
| 179 | |
---|
| 180 | <P> |
---|
| 181 | <DL> |
---|
| 182 | </DL> |
---|
| 183 | <HR> |
---|
| 184 | |
---|
| 185 | |
---|
| 186 | <!-- ======= START OF BOTTOM NAVBAR ====== --> |
---|
| 187 | <A NAME="navbar_bottom"><!-- --></A> |
---|
| 188 | <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A> |
---|
| 189 | <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> |
---|
| 190 | <TR> |
---|
| 191 | <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> |
---|
| 192 | <A NAME="navbar_bottom_firstrow"><!-- --></A> |
---|
| 193 | <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> |
---|
| 194 | <TR ALIGN="center" VALIGN="top"> |
---|
| 195 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> |
---|
| 196 | <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Package</B></FONT> </TD> |
---|
| 197 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <FONT CLASS="NavBarFont1">Class</FONT> </TD> |
---|
| 198 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-use.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> |
---|
| 199 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> |
---|
| 200 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> |
---|
| 201 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> |
---|
| 202 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> |
---|
| 203 | </TR> |
---|
| 204 | </TABLE> |
---|
| 205 | </TD> |
---|
| 206 | <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> |
---|
| 207 | </EM> |
---|
| 208 | </TD> |
---|
| 209 | </TR> |
---|
| 210 | |
---|
| 211 | <TR> |
---|
| 212 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
---|
| 213 | <A HREF="../../../../../org/apache/hadoop/io/retry/package-summary.html"><B>PREV PACKAGE</B></A> |
---|
| 214 | <A HREF="../../../../../org/apache/hadoop/ipc/package-summary.html"><B>NEXT PACKAGE</B></A></FONT></TD> |
---|
| 215 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
---|
| 216 | <A HREF="../../../../../index.html?org/apache/hadoop/io/serializer/package-summary.html" target="_top"><B>FRAMES</B></A> |
---|
| 217 | <A HREF="package-summary.html" target="_top"><B>NO FRAMES</B></A> |
---|
| 218 | <SCRIPT type="text/javascript"> |
---|
| 219 | <!-- |
---|
| 220 | if(window==top) { |
---|
| 221 | document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>'); |
---|
| 222 | } |
---|
| 223 | //--> |
---|
| 224 | </SCRIPT> |
---|
| 225 | <NOSCRIPT> |
---|
| 226 | <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A> |
---|
| 227 | </NOSCRIPT> |
---|
| 228 | |
---|
| 229 | |
---|
| 230 | </FONT></TD> |
---|
| 231 | </TR> |
---|
| 232 | </TABLE> |
---|
| 233 | <A NAME="skip-navbar_bottom"></A> |
---|
| 234 | <!-- ======== END OF BOTTOM NAVBAR ======= --> |
---|
| 235 | |
---|
| 236 | <HR> |
---|
| 237 | Copyright © 2009 The Apache Software Foundation |
---|
| 238 | </BODY> |
---|
| 239 | </HTML> |
---|