[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:53 UTC 2009 --> |
---|
| 6 | <TITLE> |
---|
| 7 | SequenceFile (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="SequenceFile (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/SequenceFile.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/RawComparator.html" title="interface in org.apache.hadoop.io"><B>PREV CLASS</B></A> |
---|
| 59 | <A HREF="../../../../org/apache/hadoop/io/SequenceFile.CompressionType.html" title="enum 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/SequenceFile.html" target="_top"><B>FRAMES</B></A> |
---|
| 62 | <A HREF="SequenceFile.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: <A HREF="#nested_class_summary">NESTED</A> | <A HREF="#field_summary">FIELD</A> | CONSTR | <A HREF="#method_summary">METHOD</A></FONT></TD> |
---|
| 80 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
---|
| 81 | DETAIL: <A HREF="#field_detail">FIELD</A> | CONSTR | <A HREF="#method_detail">METHOD</A></FONT></TD> |
---|
| 82 | </TR> |
---|
| 83 | </TABLE> |
---|
| 84 | <A NAME="skip-navbar_top"></A> |
---|
| 85 | <!-- ========= END OF TOP NAVBAR ========= --> |
---|
| 86 | |
---|
| 87 | <HR> |
---|
| 88 | <!-- ======== START OF CLASS DATA ======== --> |
---|
| 89 | <H2> |
---|
| 90 | <FONT SIZE="-1"> |
---|
| 91 | org.apache.hadoop.io</FONT> |
---|
| 92 | <BR> |
---|
| 93 | Class SequenceFile</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.SequenceFile</B> |
---|
| 97 | </PRE> |
---|
| 98 | <HR> |
---|
| 99 | <DL> |
---|
| 100 | <DT><PRE>public class <B>SequenceFile</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></DL> |
---|
| 101 | </PRE> |
---|
| 102 | |
---|
| 103 | <P> |
---|
| 104 | <code>SequenceFile</code>s are flat files consisting of binary key/value |
---|
| 105 | pairs. |
---|
| 106 | |
---|
| 107 | <p><code>SequenceFile</code> provides <A HREF="http://java.sun.com/javase/6/docs/api/java/io/Writer.html?is-external=true" title="class or interface in java.io"><CODE>Writer</CODE></A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/io/Reader.html?is-external=true" title="class or interface in java.io"><CODE>Reader</CODE></A> and |
---|
| 108 | <A HREF="../../../../org/apache/hadoop/io/SequenceFile.Sorter.html" title="class in org.apache.hadoop.io"><CODE>SequenceFile.Sorter</CODE></A> classes for writing, reading and sorting respectively.</p> |
---|
| 109 | |
---|
| 110 | There are three <code>SequenceFile</code> <code>Writer</code>s based on the |
---|
| 111 | <A HREF="../../../../org/apache/hadoop/io/SequenceFile.CompressionType.html" title="enum in org.apache.hadoop.io"><CODE>SequenceFile.CompressionType</CODE></A> used to compress key/value pairs: |
---|
| 112 | <ol> |
---|
| 113 | <li> |
---|
| 114 | <code>Writer</code> : Uncompressed records. |
---|
| 115 | </li> |
---|
| 116 | <li> |
---|
| 117 | <code>RecordCompressWriter</code> : Record-compressed files, only compress |
---|
| 118 | values. |
---|
| 119 | </li> |
---|
| 120 | <li> |
---|
| 121 | <code>BlockCompressWriter</code> : Block-compressed files, both keys & |
---|
| 122 | values are collected in 'blocks' |
---|
| 123 | separately and compressed. The size of |
---|
| 124 | the 'block' is configurable. |
---|
| 125 | </ol> |
---|
| 126 | |
---|
| 127 | <p>The actual compression algorithm used to compress key and/or values can be |
---|
| 128 | specified by using the appropriate <A HREF="../../../../org/apache/hadoop/io/compress/CompressionCodec.html" title="interface in org.apache.hadoop.io.compress"><CODE>CompressionCodec</CODE></A>.</p> |
---|
| 129 | |
---|
| 130 | <p>The recommended way is to use the static <tt>createWriter</tt> methods |
---|
| 131 | provided by the <code>SequenceFile</code> to chose the preferred format.</p> |
---|
| 132 | |
---|
| 133 | <p>The <A HREF="http://java.sun.com/javase/6/docs/api/java/io/Reader.html?is-external=true" title="class or interface in java.io"><CODE>Reader</CODE></A> acts as the bridge and can read any of the above |
---|
| 134 | <code>SequenceFile</code> formats.</p> |
---|
| 135 | |
---|
| 136 | <h4 id="Formats">SequenceFile Formats</h4> |
---|
| 137 | |
---|
| 138 | <p>Essentially there are 3 different formats for <code>SequenceFile</code>s |
---|
| 139 | depending on the <code>CompressionType</code> specified. All of them share a |
---|
| 140 | <a href="#Header">common header</a> described below. |
---|
| 141 | |
---|
| 142 | <h5 id="Header">SequenceFile Header</h5> |
---|
| 143 | <ul> |
---|
| 144 | <li> |
---|
| 145 | version - 3 bytes of magic header <b>SEQ</b>, followed by 1 byte of actual |
---|
| 146 | version number (e.g. SEQ4 or SEQ6) |
---|
| 147 | </li> |
---|
| 148 | <li> |
---|
| 149 | keyClassName -key class |
---|
| 150 | </li> |
---|
| 151 | <li> |
---|
| 152 | valueClassName - value class |
---|
| 153 | </li> |
---|
| 154 | <li> |
---|
| 155 | compression - A boolean which specifies if compression is turned on for |
---|
| 156 | keys/values in this file. |
---|
| 157 | </li> |
---|
| 158 | <li> |
---|
| 159 | blockCompression - A boolean which specifies if block-compression is |
---|
| 160 | turned on for keys/values in this file. |
---|
| 161 | </li> |
---|
| 162 | <li> |
---|
| 163 | compression codec - <code>CompressionCodec</code> class which is used for |
---|
| 164 | compression of keys and/or values (if compression is |
---|
| 165 | enabled). |
---|
| 166 | </li> |
---|
| 167 | <li> |
---|
| 168 | metadata - <A HREF="../../../../org/apache/hadoop/io/SequenceFile.Metadata.html" title="class in org.apache.hadoop.io"><CODE>SequenceFile.Metadata</CODE></A> for this file. |
---|
| 169 | </li> |
---|
| 170 | <li> |
---|
| 171 | sync - A sync marker to denote end of the header. |
---|
| 172 | </li> |
---|
| 173 | </ul> |
---|
| 174 | |
---|
| 175 | <h5 id="#UncompressedFormat">Uncompressed SequenceFile Format</h5> |
---|
| 176 | <ul> |
---|
| 177 | <li> |
---|
| 178 | <a href="#Header">Header</a> |
---|
| 179 | </li> |
---|
| 180 | <li> |
---|
| 181 | Record |
---|
| 182 | <ul> |
---|
| 183 | <li>Record length</li> |
---|
| 184 | <li>Key length</li> |
---|
| 185 | <li>Key</li> |
---|
| 186 | <li>Value</li> |
---|
| 187 | </ul> |
---|
| 188 | </li> |
---|
| 189 | <li> |
---|
| 190 | A sync-marker every few <code>100</code> bytes or so. |
---|
| 191 | </li> |
---|
| 192 | </ul> |
---|
| 193 | |
---|
| 194 | <h5 id="#RecordCompressedFormat">Record-Compressed SequenceFile Format</h5> |
---|
| 195 | <ul> |
---|
| 196 | <li> |
---|
| 197 | <a href="#Header">Header</a> |
---|
| 198 | </li> |
---|
| 199 | <li> |
---|
| 200 | Record |
---|
| 201 | <ul> |
---|
| 202 | <li>Record length</li> |
---|
| 203 | <li>Key length</li> |
---|
| 204 | <li>Key</li> |
---|
| 205 | <li><i>Compressed</i> Value</li> |
---|
| 206 | </ul> |
---|
| 207 | </li> |
---|
| 208 | <li> |
---|
| 209 | A sync-marker every few <code>100</code> bytes or so. |
---|
| 210 | </li> |
---|
| 211 | </ul> |
---|
| 212 | |
---|
| 213 | <h5 id="#BlockCompressedFormat">Block-Compressed SequenceFile Format</h5> |
---|
| 214 | <ul> |
---|
| 215 | <li> |
---|
| 216 | <a href="#Header">Header</a> |
---|
| 217 | </li> |
---|
| 218 | <li> |
---|
| 219 | Record <i>Block</i> |
---|
| 220 | <ul> |
---|
| 221 | <li>Compressed key-lengths block-size</li> |
---|
| 222 | <li>Compressed key-lengths block</li> |
---|
| 223 | <li>Compressed keys block-size</li> |
---|
| 224 | <li>Compressed keys block</li> |
---|
| 225 | <li>Compressed value-lengths block-size</li> |
---|
| 226 | <li>Compressed value-lengths block</li> |
---|
| 227 | <li>Compressed values block-size</li> |
---|
| 228 | <li>Compressed values block</li> |
---|
| 229 | </ul> |
---|
| 230 | </li> |
---|
| 231 | <li> |
---|
| 232 | A sync-marker every few <code>100</code> bytes or so. |
---|
| 233 | </li> |
---|
| 234 | </ul> |
---|
| 235 | |
---|
| 236 | <p>The compressed blocks of key lengths and value lengths consist of the |
---|
| 237 | actual lengths of individual keys/values encoded in ZeroCompressedInteger |
---|
| 238 | format.</p> |
---|
| 239 | <P> |
---|
| 240 | |
---|
| 241 | <P> |
---|
| 242 | <DL> |
---|
| 243 | <DT><B>See Also:</B><DD><A HREF="../../../../org/apache/hadoop/io/compress/CompressionCodec.html" title="interface in org.apache.hadoop.io.compress"><CODE>CompressionCodec</CODE></A></DL> |
---|
| 244 | <HR> |
---|
| 245 | |
---|
| 246 | <P> |
---|
| 247 | <!-- ======== NESTED CLASS SUMMARY ======== --> |
---|
| 248 | |
---|
| 249 | <A NAME="nested_class_summary"><!-- --></A> |
---|
| 250 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
---|
| 251 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
---|
| 252 | <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> |
---|
| 253 | <B>Nested Class Summary</B></FONT></TH> |
---|
| 254 | </TR> |
---|
| 255 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 256 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 257 | <CODE>static class</CODE></FONT></TD> |
---|
| 258 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/io/SequenceFile.CompressionType.html" title="enum in org.apache.hadoop.io">SequenceFile.CompressionType</A></B></CODE> |
---|
| 259 | |
---|
| 260 | <BR> |
---|
| 261 | The compression type used to compress key/value pairs in the |
---|
| 262 | <A HREF="../../../../org/apache/hadoop/io/SequenceFile.html" title="class in org.apache.hadoop.io"><CODE>SequenceFile</CODE></A>.</TD> |
---|
| 263 | </TR> |
---|
| 264 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 265 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 266 | <CODE>static class</CODE></FONT></TD> |
---|
| 267 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/io/SequenceFile.Metadata.html" title="class in org.apache.hadoop.io">SequenceFile.Metadata</A></B></CODE> |
---|
| 268 | |
---|
| 269 | <BR> |
---|
| 270 | The class encapsulating with the metadata of a file.</TD> |
---|
| 271 | </TR> |
---|
| 272 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 273 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 274 | <CODE>static class</CODE></FONT></TD> |
---|
| 275 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/io/SequenceFile.Reader.html" title="class in org.apache.hadoop.io">SequenceFile.Reader</A></B></CODE> |
---|
| 276 | |
---|
| 277 | <BR> |
---|
| 278 | Reads key/value pairs from a sequence-format file.</TD> |
---|
| 279 | </TR> |
---|
| 280 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 281 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 282 | <CODE>static class</CODE></FONT></TD> |
---|
| 283 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/io/SequenceFile.Sorter.html" title="class in org.apache.hadoop.io">SequenceFile.Sorter</A></B></CODE> |
---|
| 284 | |
---|
| 285 | <BR> |
---|
| 286 | Sorts key/value pairs in a sequence-format file.</TD> |
---|
| 287 | </TR> |
---|
| 288 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 289 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 290 | <CODE>static interface</CODE></FONT></TD> |
---|
| 291 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/io/SequenceFile.ValueBytes.html" title="interface in org.apache.hadoop.io">SequenceFile.ValueBytes</A></B></CODE> |
---|
| 292 | |
---|
| 293 | <BR> |
---|
| 294 | The interface to 'raw' values of SequenceFiles.</TD> |
---|
| 295 | </TR> |
---|
| 296 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 297 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 298 | <CODE>static class</CODE></FONT></TD> |
---|
| 299 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/io/SequenceFile.Writer.html" title="class in org.apache.hadoop.io">SequenceFile.Writer</A></B></CODE> |
---|
| 300 | |
---|
| 301 | <BR> |
---|
| 302 | Write key/value pairs to a sequence-format file.</TD> |
---|
| 303 | </TR> |
---|
| 304 | </TABLE> |
---|
| 305 | <!-- =========== FIELD SUMMARY =========== --> |
---|
| 306 | |
---|
| 307 | <A NAME="field_summary"><!-- --></A> |
---|
| 308 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
---|
| 309 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
---|
| 310 | <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> |
---|
| 311 | <B>Field Summary</B></FONT></TH> |
---|
| 312 | </TR> |
---|
| 313 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 314 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 315 | <CODE>static int</CODE></FONT></TD> |
---|
| 316 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/io/SequenceFile.html#SYNC_INTERVAL">SYNC_INTERVAL</A></B></CODE> |
---|
| 317 | |
---|
| 318 | <BR> |
---|
| 319 | The number of bytes between sync points.</TD> |
---|
| 320 | </TR> |
---|
| 321 | </TABLE> |
---|
| 322 | |
---|
| 323 | <!-- ========== METHOD SUMMARY =========== --> |
---|
| 324 | |
---|
| 325 | <A NAME="method_summary"><!-- --></A> |
---|
| 326 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
---|
| 327 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
---|
| 328 | <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> |
---|
| 329 | <B>Method Summary</B></FONT></TH> |
---|
| 330 | </TR> |
---|
| 331 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 332 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 333 | <CODE>static <A HREF="../../../../org/apache/hadoop/io/SequenceFile.Writer.html" title="class in org.apache.hadoop.io">SequenceFile.Writer</A></CODE></FONT></TD> |
---|
| 334 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/io/SequenceFile.html#createWriter(org.apache.hadoop.conf.Configuration, org.apache.hadoop.fs.FSDataOutputStream, java.lang.Class, java.lang.Class, org.apache.hadoop.io.SequenceFile.CompressionType, org.apache.hadoop.io.compress.CompressionCodec)">createWriter</A></B>(<A HREF="../../../../org/apache/hadoop/conf/Configuration.html" title="class in org.apache.hadoop.conf">Configuration</A> conf, |
---|
| 335 | <A HREF="../../../../org/apache/hadoop/fs/FSDataOutputStream.html" title="class in org.apache.hadoop.fs">FSDataOutputStream</A> out, |
---|
| 336 | <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> keyClass, |
---|
| 337 | <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> valClass, |
---|
| 338 | <A HREF="../../../../org/apache/hadoop/io/SequenceFile.CompressionType.html" title="enum in org.apache.hadoop.io">SequenceFile.CompressionType</A> compressionType, |
---|
| 339 | <A HREF="../../../../org/apache/hadoop/io/compress/CompressionCodec.html" title="interface in org.apache.hadoop.io.compress">CompressionCodec</A> codec)</CODE> |
---|
| 340 | |
---|
| 341 | <BR> |
---|
| 342 | Construct the preferred type of 'raw' SequenceFile Writer.</TD> |
---|
| 343 | </TR> |
---|
| 344 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 345 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 346 | <CODE>static <A HREF="../../../../org/apache/hadoop/io/SequenceFile.Writer.html" title="class in org.apache.hadoop.io">SequenceFile.Writer</A></CODE></FONT></TD> |
---|
| 347 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/io/SequenceFile.html#createWriter(org.apache.hadoop.conf.Configuration, org.apache.hadoop.fs.FSDataOutputStream, java.lang.Class, java.lang.Class, org.apache.hadoop.io.SequenceFile.CompressionType, org.apache.hadoop.io.compress.CompressionCodec, org.apache.hadoop.io.SequenceFile.Metadata)">createWriter</A></B>(<A HREF="../../../../org/apache/hadoop/conf/Configuration.html" title="class in org.apache.hadoop.conf">Configuration</A> conf, |
---|
| 348 | <A HREF="../../../../org/apache/hadoop/fs/FSDataOutputStream.html" title="class in org.apache.hadoop.fs">FSDataOutputStream</A> out, |
---|
| 349 | <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> keyClass, |
---|
| 350 | <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> valClass, |
---|
| 351 | <A HREF="../../../../org/apache/hadoop/io/SequenceFile.CompressionType.html" title="enum in org.apache.hadoop.io">SequenceFile.CompressionType</A> compressionType, |
---|
| 352 | <A HREF="../../../../org/apache/hadoop/io/compress/CompressionCodec.html" title="interface in org.apache.hadoop.io.compress">CompressionCodec</A> codec, |
---|
| 353 | <A HREF="../../../../org/apache/hadoop/io/SequenceFile.Metadata.html" title="class in org.apache.hadoop.io">SequenceFile.Metadata</A> metadata)</CODE> |
---|
| 354 | |
---|
| 355 | <BR> |
---|
| 356 | Construct the preferred type of 'raw' SequenceFile Writer.</TD> |
---|
| 357 | </TR> |
---|
| 358 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 359 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 360 | <CODE>static <A HREF="../../../../org/apache/hadoop/io/SequenceFile.Writer.html" title="class in org.apache.hadoop.io">SequenceFile.Writer</A></CODE></FONT></TD> |
---|
| 361 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/io/SequenceFile.html#createWriter(org.apache.hadoop.fs.FileSystem, org.apache.hadoop.conf.Configuration, org.apache.hadoop.fs.Path, java.lang.Class, java.lang.Class)">createWriter</A></B>(<A HREF="../../../../org/apache/hadoop/fs/FileSystem.html" title="class in org.apache.hadoop.fs">FileSystem</A> fs, |
---|
| 362 | <A HREF="../../../../org/apache/hadoop/conf/Configuration.html" title="class in org.apache.hadoop.conf">Configuration</A> conf, |
---|
| 363 | <A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A> name, |
---|
| 364 | <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> keyClass, |
---|
| 365 | <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> valClass)</CODE> |
---|
| 366 | |
---|
| 367 | <BR> |
---|
| 368 | Construct the preferred type of SequenceFile Writer.</TD> |
---|
| 369 | </TR> |
---|
| 370 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 371 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 372 | <CODE>static <A HREF="../../../../org/apache/hadoop/io/SequenceFile.Writer.html" title="class in org.apache.hadoop.io">SequenceFile.Writer</A></CODE></FONT></TD> |
---|
| 373 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/io/SequenceFile.html#createWriter(org.apache.hadoop.fs.FileSystem, org.apache.hadoop.conf.Configuration, org.apache.hadoop.fs.Path, java.lang.Class, java.lang.Class, int, short, long, org.apache.hadoop.io.SequenceFile.CompressionType, org.apache.hadoop.io.compress.CompressionCodec, org.apache.hadoop.util.Progressable, org.apache.hadoop.io.SequenceFile.Metadata)">createWriter</A></B>(<A HREF="../../../../org/apache/hadoop/fs/FileSystem.html" title="class in org.apache.hadoop.fs">FileSystem</A> fs, |
---|
| 374 | <A HREF="../../../../org/apache/hadoop/conf/Configuration.html" title="class in org.apache.hadoop.conf">Configuration</A> conf, |
---|
| 375 | <A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A> name, |
---|
| 376 | <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> keyClass, |
---|
| 377 | <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> valClass, |
---|
| 378 | int bufferSize, |
---|
| 379 | short replication, |
---|
| 380 | long blockSize, |
---|
| 381 | <A HREF="../../../../org/apache/hadoop/io/SequenceFile.CompressionType.html" title="enum in org.apache.hadoop.io">SequenceFile.CompressionType</A> compressionType, |
---|
| 382 | <A HREF="../../../../org/apache/hadoop/io/compress/CompressionCodec.html" title="interface in org.apache.hadoop.io.compress">CompressionCodec</A> codec, |
---|
| 383 | <A HREF="../../../../org/apache/hadoop/util/Progressable.html" title="interface in org.apache.hadoop.util">Progressable</A> progress, |
---|
| 384 | <A HREF="../../../../org/apache/hadoop/io/SequenceFile.Metadata.html" title="class in org.apache.hadoop.io">SequenceFile.Metadata</A> metadata)</CODE> |
---|
| 385 | |
---|
| 386 | <BR> |
---|
| 387 | Construct the preferred type of SequenceFile Writer.</TD> |
---|
| 388 | </TR> |
---|
| 389 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 390 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 391 | <CODE>static <A HREF="../../../../org/apache/hadoop/io/SequenceFile.Writer.html" title="class in org.apache.hadoop.io">SequenceFile.Writer</A></CODE></FONT></TD> |
---|
| 392 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/io/SequenceFile.html#createWriter(org.apache.hadoop.fs.FileSystem, org.apache.hadoop.conf.Configuration, org.apache.hadoop.fs.Path, java.lang.Class, java.lang.Class, org.apache.hadoop.io.SequenceFile.CompressionType)">createWriter</A></B>(<A HREF="../../../../org/apache/hadoop/fs/FileSystem.html" title="class in org.apache.hadoop.fs">FileSystem</A> fs, |
---|
| 393 | <A HREF="../../../../org/apache/hadoop/conf/Configuration.html" title="class in org.apache.hadoop.conf">Configuration</A> conf, |
---|
| 394 | <A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A> name, |
---|
| 395 | <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> keyClass, |
---|
| 396 | <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> valClass, |
---|
| 397 | <A HREF="../../../../org/apache/hadoop/io/SequenceFile.CompressionType.html" title="enum in org.apache.hadoop.io">SequenceFile.CompressionType</A> compressionType)</CODE> |
---|
| 398 | |
---|
| 399 | <BR> |
---|
| 400 | Construct the preferred type of SequenceFile Writer.</TD> |
---|
| 401 | </TR> |
---|
| 402 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 403 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 404 | <CODE>static <A HREF="../../../../org/apache/hadoop/io/SequenceFile.Writer.html" title="class in org.apache.hadoop.io">SequenceFile.Writer</A></CODE></FONT></TD> |
---|
| 405 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/io/SequenceFile.html#createWriter(org.apache.hadoop.fs.FileSystem, org.apache.hadoop.conf.Configuration, org.apache.hadoop.fs.Path, java.lang.Class, java.lang.Class, org.apache.hadoop.io.SequenceFile.CompressionType, org.apache.hadoop.io.compress.CompressionCodec)">createWriter</A></B>(<A HREF="../../../../org/apache/hadoop/fs/FileSystem.html" title="class in org.apache.hadoop.fs">FileSystem</A> fs, |
---|
| 406 | <A HREF="../../../../org/apache/hadoop/conf/Configuration.html" title="class in org.apache.hadoop.conf">Configuration</A> conf, |
---|
| 407 | <A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A> name, |
---|
| 408 | <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> keyClass, |
---|
| 409 | <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> valClass, |
---|
| 410 | <A HREF="../../../../org/apache/hadoop/io/SequenceFile.CompressionType.html" title="enum in org.apache.hadoop.io">SequenceFile.CompressionType</A> compressionType, |
---|
| 411 | <A HREF="../../../../org/apache/hadoop/io/compress/CompressionCodec.html" title="interface in org.apache.hadoop.io.compress">CompressionCodec</A> codec)</CODE> |
---|
| 412 | |
---|
| 413 | <BR> |
---|
| 414 | Construct the preferred type of SequenceFile Writer.</TD> |
---|
| 415 | </TR> |
---|
| 416 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 417 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 418 | <CODE>static <A HREF="../../../../org/apache/hadoop/io/SequenceFile.Writer.html" title="class in org.apache.hadoop.io">SequenceFile.Writer</A></CODE></FONT></TD> |
---|
| 419 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/io/SequenceFile.html#createWriter(org.apache.hadoop.fs.FileSystem, org.apache.hadoop.conf.Configuration, org.apache.hadoop.fs.Path, java.lang.Class, java.lang.Class, org.apache.hadoop.io.SequenceFile.CompressionType, org.apache.hadoop.io.compress.CompressionCodec, org.apache.hadoop.util.Progressable)">createWriter</A></B>(<A HREF="../../../../org/apache/hadoop/fs/FileSystem.html" title="class in org.apache.hadoop.fs">FileSystem</A> fs, |
---|
| 420 | <A HREF="../../../../org/apache/hadoop/conf/Configuration.html" title="class in org.apache.hadoop.conf">Configuration</A> conf, |
---|
| 421 | <A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A> name, |
---|
| 422 | <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> keyClass, |
---|
| 423 | <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> valClass, |
---|
| 424 | <A HREF="../../../../org/apache/hadoop/io/SequenceFile.CompressionType.html" title="enum in org.apache.hadoop.io">SequenceFile.CompressionType</A> compressionType, |
---|
| 425 | <A HREF="../../../../org/apache/hadoop/io/compress/CompressionCodec.html" title="interface in org.apache.hadoop.io.compress">CompressionCodec</A> codec, |
---|
| 426 | <A HREF="../../../../org/apache/hadoop/util/Progressable.html" title="interface in org.apache.hadoop.util">Progressable</A> progress)</CODE> |
---|
| 427 | |
---|
| 428 | <BR> |
---|
| 429 | Construct the preferred type of SequenceFile Writer.</TD> |
---|
| 430 | </TR> |
---|
| 431 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 432 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 433 | <CODE>static <A HREF="../../../../org/apache/hadoop/io/SequenceFile.Writer.html" title="class in org.apache.hadoop.io">SequenceFile.Writer</A></CODE></FONT></TD> |
---|
| 434 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/io/SequenceFile.html#createWriter(org.apache.hadoop.fs.FileSystem, org.apache.hadoop.conf.Configuration, org.apache.hadoop.fs.Path, java.lang.Class, java.lang.Class, org.apache.hadoop.io.SequenceFile.CompressionType, org.apache.hadoop.io.compress.CompressionCodec, org.apache.hadoop.util.Progressable, org.apache.hadoop.io.SequenceFile.Metadata)">createWriter</A></B>(<A HREF="../../../../org/apache/hadoop/fs/FileSystem.html" title="class in org.apache.hadoop.fs">FileSystem</A> fs, |
---|
| 435 | <A HREF="../../../../org/apache/hadoop/conf/Configuration.html" title="class in org.apache.hadoop.conf">Configuration</A> conf, |
---|
| 436 | <A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A> name, |
---|
| 437 | <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> keyClass, |
---|
| 438 | <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> valClass, |
---|
| 439 | <A HREF="../../../../org/apache/hadoop/io/SequenceFile.CompressionType.html" title="enum in org.apache.hadoop.io">SequenceFile.CompressionType</A> compressionType, |
---|
| 440 | <A HREF="../../../../org/apache/hadoop/io/compress/CompressionCodec.html" title="interface in org.apache.hadoop.io.compress">CompressionCodec</A> codec, |
---|
| 441 | <A HREF="../../../../org/apache/hadoop/util/Progressable.html" title="interface in org.apache.hadoop.util">Progressable</A> progress, |
---|
| 442 | <A HREF="../../../../org/apache/hadoop/io/SequenceFile.Metadata.html" title="class in org.apache.hadoop.io">SequenceFile.Metadata</A> metadata)</CODE> |
---|
| 443 | |
---|
| 444 | <BR> |
---|
| 445 | Construct the preferred type of SequenceFile Writer.</TD> |
---|
| 446 | </TR> |
---|
| 447 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 448 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 449 | <CODE>static <A HREF="../../../../org/apache/hadoop/io/SequenceFile.Writer.html" title="class in org.apache.hadoop.io">SequenceFile.Writer</A></CODE></FONT></TD> |
---|
| 450 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/io/SequenceFile.html#createWriter(org.apache.hadoop.fs.FileSystem, org.apache.hadoop.conf.Configuration, org.apache.hadoop.fs.Path, java.lang.Class, java.lang.Class, org.apache.hadoop.io.SequenceFile.CompressionType, org.apache.hadoop.util.Progressable)">createWriter</A></B>(<A HREF="../../../../org/apache/hadoop/fs/FileSystem.html" title="class in org.apache.hadoop.fs">FileSystem</A> fs, |
---|
| 451 | <A HREF="../../../../org/apache/hadoop/conf/Configuration.html" title="class in org.apache.hadoop.conf">Configuration</A> conf, |
---|
| 452 | <A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A> name, |
---|
| 453 | <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> keyClass, |
---|
| 454 | <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> valClass, |
---|
| 455 | <A HREF="../../../../org/apache/hadoop/io/SequenceFile.CompressionType.html" title="enum in org.apache.hadoop.io">SequenceFile.CompressionType</A> compressionType, |
---|
| 456 | <A HREF="../../../../org/apache/hadoop/util/Progressable.html" title="interface in org.apache.hadoop.util">Progressable</A> progress)</CODE> |
---|
| 457 | |
---|
| 458 | <BR> |
---|
| 459 | Construct the preferred type of SequenceFile Writer.</TD> |
---|
| 460 | </TR> |
---|
| 461 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 462 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 463 | <CODE>static <A HREF="../../../../org/apache/hadoop/io/SequenceFile.CompressionType.html" title="enum in org.apache.hadoop.io">SequenceFile.CompressionType</A></CODE></FONT></TD> |
---|
| 464 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/io/SequenceFile.html#getCompressionType(org.apache.hadoop.conf.Configuration)">getCompressionType</A></B>(<A HREF="../../../../org/apache/hadoop/conf/Configuration.html" title="class in org.apache.hadoop.conf">Configuration</A> job)</CODE> |
---|
| 465 | |
---|
| 466 | <BR> |
---|
| 467 | <B>Deprecated.</B> <I>Use |
---|
| 468 | <A HREF="../../../../org/apache/hadoop/mapred/SequenceFileOutputFormat.html#getOutputCompressionType(org.apache.hadoop.mapred.JobConf)"><CODE>SequenceFileOutputFormat.getOutputCompressionType(org.apache.hadoop.mapred.JobConf)</CODE></A> |
---|
| 469 | to get <A HREF="../../../../org/apache/hadoop/io/SequenceFile.CompressionType.html" title="enum in org.apache.hadoop.io"><CODE>SequenceFile.CompressionType</CODE></A> for job-outputs.</I></TD> |
---|
| 470 | </TR> |
---|
| 471 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 472 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 473 | <CODE>static void</CODE></FONT></TD> |
---|
| 474 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/io/SequenceFile.html#setCompressionType(org.apache.hadoop.conf.Configuration, org.apache.hadoop.io.SequenceFile.CompressionType)">setCompressionType</A></B>(<A HREF="../../../../org/apache/hadoop/conf/Configuration.html" title="class in org.apache.hadoop.conf">Configuration</A> job, |
---|
| 475 | <A HREF="../../../../org/apache/hadoop/io/SequenceFile.CompressionType.html" title="enum in org.apache.hadoop.io">SequenceFile.CompressionType</A> val)</CODE> |
---|
| 476 | |
---|
| 477 | <BR> |
---|
| 478 | <B>Deprecated.</B> <I>Use the one of the many SequenceFile.createWriter methods to specify |
---|
| 479 | the <A HREF="../../../../org/apache/hadoop/io/SequenceFile.CompressionType.html" title="enum in org.apache.hadoop.io"><CODE>SequenceFile.CompressionType</CODE></A> while creating the <A HREF="../../../../org/apache/hadoop/io/SequenceFile.html" title="class in org.apache.hadoop.io"><CODE>SequenceFile</CODE></A> or |
---|
| 480 | <A HREF="../../../../org/apache/hadoop/mapred/SequenceFileOutputFormat.html#setOutputCompressionType(org.apache.hadoop.mapred.JobConf, org.apache.hadoop.io.SequenceFile.CompressionType)"><CODE>SequenceFileOutputFormat.setOutputCompressionType(org.apache.hadoop.mapred.JobConf, org.apache.hadoop.io.SequenceFile.CompressionType)</CODE></A> |
---|
| 481 | to specify the <A HREF="../../../../org/apache/hadoop/io/SequenceFile.CompressionType.html" title="enum in org.apache.hadoop.io"><CODE>SequenceFile.CompressionType</CODE></A> for job-outputs. |
---|
| 482 | or</I></TD> |
---|
| 483 | </TR> |
---|
| 484 | </TABLE> |
---|
| 485 | <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A> |
---|
| 486 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
---|
| 487 | <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> |
---|
| 488 | <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> |
---|
| 489 | </TR> |
---|
| 490 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 491 | <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#toString()" title="class or interface in java.lang">toString</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> |
---|
| 492 | </TR> |
---|
| 493 | </TABLE> |
---|
| 494 | |
---|
| 495 | <P> |
---|
| 496 | |
---|
| 497 | <!-- ============ FIELD DETAIL =========== --> |
---|
| 498 | |
---|
| 499 | <A NAME="field_detail"><!-- --></A> |
---|
| 500 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
---|
| 501 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
---|
| 502 | <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> |
---|
| 503 | <B>Field Detail</B></FONT></TH> |
---|
| 504 | </TR> |
---|
| 505 | </TABLE> |
---|
| 506 | |
---|
| 507 | <A NAME="SYNC_INTERVAL"><!-- --></A><H3> |
---|
| 508 | SYNC_INTERVAL</H3> |
---|
| 509 | <PRE> |
---|
| 510 | public static final int <B>SYNC_INTERVAL</B></PRE> |
---|
| 511 | <DL> |
---|
| 512 | <DD>The number of bytes between sync points. |
---|
| 513 | <P> |
---|
| 514 | <DL> |
---|
| 515 | <DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#org.apache.hadoop.io.SequenceFile.SYNC_INTERVAL">Constant Field Values</A></DL> |
---|
| 516 | </DL> |
---|
| 517 | |
---|
| 518 | <!-- ============ METHOD DETAIL ========== --> |
---|
| 519 | |
---|
| 520 | <A NAME="method_detail"><!-- --></A> |
---|
| 521 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
---|
| 522 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
---|
| 523 | <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> |
---|
| 524 | <B>Method Detail</B></FONT></TH> |
---|
| 525 | </TR> |
---|
| 526 | </TABLE> |
---|
| 527 | |
---|
| 528 | <A NAME="getCompressionType(org.apache.hadoop.conf.Configuration)"><!-- --></A><H3> |
---|
| 529 | getCompressionType</H3> |
---|
| 530 | <PRE> |
---|
| 531 | <FONT SIZE="-1"><A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Deprecated.html?is-external=true" title="class or interface in java.lang">@Deprecated</A> |
---|
| 532 | </FONT>public static <A HREF="../../../../org/apache/hadoop/io/SequenceFile.CompressionType.html" title="enum in org.apache.hadoop.io">SequenceFile.CompressionType</A> <B>getCompressionType</B>(<A HREF="../../../../org/apache/hadoop/conf/Configuration.html" title="class in org.apache.hadoop.conf">Configuration</A> job)</PRE> |
---|
| 533 | <DL> |
---|
| 534 | <DD><B>Deprecated.</B> <I>Use |
---|
| 535 | <A HREF="../../../../org/apache/hadoop/mapred/SequenceFileOutputFormat.html#getOutputCompressionType(org.apache.hadoop.mapred.JobConf)"><CODE>SequenceFileOutputFormat.getOutputCompressionType(org.apache.hadoop.mapred.JobConf)</CODE></A> |
---|
| 536 | to get <A HREF="../../../../org/apache/hadoop/io/SequenceFile.CompressionType.html" title="enum in org.apache.hadoop.io"><CODE>SequenceFile.CompressionType</CODE></A> for job-outputs.</I> |
---|
| 537 | <P> |
---|
| 538 | <DD>Get the compression type for the reduce outputs |
---|
| 539 | <P> |
---|
| 540 | <DD><DL> |
---|
| 541 | <DT><B>Parameters:</B><DD><CODE>job</CODE> - the job config to look in |
---|
| 542 | <DT><B>Returns:</B><DD>the kind of compression to use</DL> |
---|
| 543 | </DD> |
---|
| 544 | </DL> |
---|
| 545 | <HR> |
---|
| 546 | |
---|
| 547 | <A NAME="setCompressionType(org.apache.hadoop.conf.Configuration, org.apache.hadoop.io.SequenceFile.CompressionType)"><!-- --></A><H3> |
---|
| 548 | setCompressionType</H3> |
---|
| 549 | <PRE> |
---|
| 550 | <FONT SIZE="-1"><A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Deprecated.html?is-external=true" title="class or interface in java.lang">@Deprecated</A> |
---|
| 551 | </FONT>public static void <B>setCompressionType</B>(<A HREF="../../../../org/apache/hadoop/conf/Configuration.html" title="class in org.apache.hadoop.conf">Configuration</A> job, |
---|
| 552 | <A HREF="../../../../org/apache/hadoop/io/SequenceFile.CompressionType.html" title="enum in org.apache.hadoop.io">SequenceFile.CompressionType</A> val)</PRE> |
---|
| 553 | <DL> |
---|
| 554 | <DD><B>Deprecated.</B> <I>Use the one of the many SequenceFile.createWriter methods to specify |
---|
| 555 | the <A HREF="../../../../org/apache/hadoop/io/SequenceFile.CompressionType.html" title="enum in org.apache.hadoop.io"><CODE>SequenceFile.CompressionType</CODE></A> while creating the <A HREF="../../../../org/apache/hadoop/io/SequenceFile.html" title="class in org.apache.hadoop.io"><CODE>SequenceFile</CODE></A> or |
---|
| 556 | <A HREF="../../../../org/apache/hadoop/mapred/SequenceFileOutputFormat.html#setOutputCompressionType(org.apache.hadoop.mapred.JobConf, org.apache.hadoop.io.SequenceFile.CompressionType)"><CODE>SequenceFileOutputFormat.setOutputCompressionType(org.apache.hadoop.mapred.JobConf, org.apache.hadoop.io.SequenceFile.CompressionType)</CODE></A> |
---|
| 557 | to specify the <A HREF="../../../../org/apache/hadoop/io/SequenceFile.CompressionType.html" title="enum in org.apache.hadoop.io"><CODE>SequenceFile.CompressionType</CODE></A> for job-outputs. |
---|
| 558 | or</I> |
---|
| 559 | <P> |
---|
| 560 | <DD>Set the compression type for sequence files. |
---|
| 561 | <P> |
---|
| 562 | <DD><DL> |
---|
| 563 | <DT><B>Parameters:</B><DD><CODE>job</CODE> - the configuration to modify<DD><CODE>val</CODE> - the new compression type (none, block, record)</DL> |
---|
| 564 | </DD> |
---|
| 565 | </DL> |
---|
| 566 | <HR> |
---|
| 567 | |
---|
| 568 | <A NAME="createWriter(org.apache.hadoop.fs.FileSystem, org.apache.hadoop.conf.Configuration, org.apache.hadoop.fs.Path, java.lang.Class, java.lang.Class)"><!-- --></A><H3> |
---|
| 569 | createWriter</H3> |
---|
| 570 | <PRE> |
---|
| 571 | public static <A HREF="../../../../org/apache/hadoop/io/SequenceFile.Writer.html" title="class in org.apache.hadoop.io">SequenceFile.Writer</A> <B>createWriter</B>(<A HREF="../../../../org/apache/hadoop/fs/FileSystem.html" title="class in org.apache.hadoop.fs">FileSystem</A> fs, |
---|
| 572 | <A HREF="../../../../org/apache/hadoop/conf/Configuration.html" title="class in org.apache.hadoop.conf">Configuration</A> conf, |
---|
| 573 | <A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A> name, |
---|
| 574 | <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> keyClass, |
---|
| 575 | <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> valClass) |
---|
| 576 | 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> |
---|
| 577 | <DL> |
---|
| 578 | <DD>Construct the preferred type of SequenceFile Writer. |
---|
| 579 | <P> |
---|
| 580 | <DD><DL> |
---|
| 581 | <DT><B>Parameters:</B><DD><CODE>fs</CODE> - The configured filesystem.<DD><CODE>conf</CODE> - The configuration.<DD><CODE>name</CODE> - The name of the file.<DD><CODE>keyClass</CODE> - The 'key' type.<DD><CODE>valClass</CODE> - The 'value' type. |
---|
| 582 | <DT><B>Returns:</B><DD>Returns the handle to the constructed SequenceFile Writer. |
---|
| 583 | <DT><B>Throws:</B> |
---|
| 584 | <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> |
---|
| 585 | </DD> |
---|
| 586 | </DL> |
---|
| 587 | <HR> |
---|
| 588 | |
---|
| 589 | <A NAME="createWriter(org.apache.hadoop.fs.FileSystem, org.apache.hadoop.conf.Configuration, org.apache.hadoop.fs.Path, java.lang.Class, java.lang.Class, org.apache.hadoop.io.SequenceFile.CompressionType)"><!-- --></A><H3> |
---|
| 590 | createWriter</H3> |
---|
| 591 | <PRE> |
---|
| 592 | public static <A HREF="../../../../org/apache/hadoop/io/SequenceFile.Writer.html" title="class in org.apache.hadoop.io">SequenceFile.Writer</A> <B>createWriter</B>(<A HREF="../../../../org/apache/hadoop/fs/FileSystem.html" title="class in org.apache.hadoop.fs">FileSystem</A> fs, |
---|
| 593 | <A HREF="../../../../org/apache/hadoop/conf/Configuration.html" title="class in org.apache.hadoop.conf">Configuration</A> conf, |
---|
| 594 | <A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A> name, |
---|
| 595 | <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> keyClass, |
---|
| 596 | <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> valClass, |
---|
| 597 | <A HREF="../../../../org/apache/hadoop/io/SequenceFile.CompressionType.html" title="enum in org.apache.hadoop.io">SequenceFile.CompressionType</A> compressionType) |
---|
| 598 | 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> |
---|
| 599 | <DL> |
---|
| 600 | <DD>Construct the preferred type of SequenceFile Writer. |
---|
| 601 | <P> |
---|
| 602 | <DD><DL> |
---|
| 603 | <DT><B>Parameters:</B><DD><CODE>fs</CODE> - The configured filesystem.<DD><CODE>conf</CODE> - The configuration.<DD><CODE>name</CODE> - The name of the file.<DD><CODE>keyClass</CODE> - The 'key' type.<DD><CODE>valClass</CODE> - The 'value' type.<DD><CODE>compressionType</CODE> - The compression type. |
---|
| 604 | <DT><B>Returns:</B><DD>Returns the handle to the constructed SequenceFile Writer. |
---|
| 605 | <DT><B>Throws:</B> |
---|
| 606 | <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> |
---|
| 607 | </DD> |
---|
| 608 | </DL> |
---|
| 609 | <HR> |
---|
| 610 | |
---|
| 611 | <A NAME="createWriter(org.apache.hadoop.fs.FileSystem, org.apache.hadoop.conf.Configuration, org.apache.hadoop.fs.Path, java.lang.Class, java.lang.Class, org.apache.hadoop.io.SequenceFile.CompressionType, org.apache.hadoop.util.Progressable)"><!-- --></A><H3> |
---|
| 612 | createWriter</H3> |
---|
| 613 | <PRE> |
---|
| 614 | public static <A HREF="../../../../org/apache/hadoop/io/SequenceFile.Writer.html" title="class in org.apache.hadoop.io">SequenceFile.Writer</A> <B>createWriter</B>(<A HREF="../../../../org/apache/hadoop/fs/FileSystem.html" title="class in org.apache.hadoop.fs">FileSystem</A> fs, |
---|
| 615 | <A HREF="../../../../org/apache/hadoop/conf/Configuration.html" title="class in org.apache.hadoop.conf">Configuration</A> conf, |
---|
| 616 | <A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A> name, |
---|
| 617 | <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> keyClass, |
---|
| 618 | <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> valClass, |
---|
| 619 | <A HREF="../../../../org/apache/hadoop/io/SequenceFile.CompressionType.html" title="enum in org.apache.hadoop.io">SequenceFile.CompressionType</A> compressionType, |
---|
| 620 | <A HREF="../../../../org/apache/hadoop/util/Progressable.html" title="interface in org.apache.hadoop.util">Progressable</A> progress) |
---|
| 621 | 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> |
---|
| 622 | <DL> |
---|
| 623 | <DD>Construct the preferred type of SequenceFile Writer. |
---|
| 624 | <P> |
---|
| 625 | <DD><DL> |
---|
| 626 | <DT><B>Parameters:</B><DD><CODE>fs</CODE> - The configured filesystem.<DD><CODE>conf</CODE> - The configuration.<DD><CODE>name</CODE> - The name of the file.<DD><CODE>keyClass</CODE> - The 'key' type.<DD><CODE>valClass</CODE> - The 'value' type.<DD><CODE>compressionType</CODE> - The compression type.<DD><CODE>progress</CODE> - The Progressable object to track progress. |
---|
| 627 | <DT><B>Returns:</B><DD>Returns the handle to the constructed SequenceFile Writer. |
---|
| 628 | <DT><B>Throws:</B> |
---|
| 629 | <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> |
---|
| 630 | </DD> |
---|
| 631 | </DL> |
---|
| 632 | <HR> |
---|
| 633 | |
---|
| 634 | <A NAME="createWriter(org.apache.hadoop.fs.FileSystem, org.apache.hadoop.conf.Configuration, org.apache.hadoop.fs.Path, java.lang.Class, java.lang.Class, org.apache.hadoop.io.SequenceFile.CompressionType, org.apache.hadoop.io.compress.CompressionCodec)"><!-- --></A><H3> |
---|
| 635 | createWriter</H3> |
---|
| 636 | <PRE> |
---|
| 637 | public static <A HREF="../../../../org/apache/hadoop/io/SequenceFile.Writer.html" title="class in org.apache.hadoop.io">SequenceFile.Writer</A> <B>createWriter</B>(<A HREF="../../../../org/apache/hadoop/fs/FileSystem.html" title="class in org.apache.hadoop.fs">FileSystem</A> fs, |
---|
| 638 | <A HREF="../../../../org/apache/hadoop/conf/Configuration.html" title="class in org.apache.hadoop.conf">Configuration</A> conf, |
---|
| 639 | <A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A> name, |
---|
| 640 | <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> keyClass, |
---|
| 641 | <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> valClass, |
---|
| 642 | <A HREF="../../../../org/apache/hadoop/io/SequenceFile.CompressionType.html" title="enum in org.apache.hadoop.io">SequenceFile.CompressionType</A> compressionType, |
---|
| 643 | <A HREF="../../../../org/apache/hadoop/io/compress/CompressionCodec.html" title="interface in org.apache.hadoop.io.compress">CompressionCodec</A> codec) |
---|
| 644 | 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> |
---|
| 645 | <DL> |
---|
| 646 | <DD>Construct the preferred type of SequenceFile Writer. |
---|
| 647 | <P> |
---|
| 648 | <DD><DL> |
---|
| 649 | <DT><B>Parameters:</B><DD><CODE>fs</CODE> - The configured filesystem.<DD><CODE>conf</CODE> - The configuration.<DD><CODE>name</CODE> - The name of the file.<DD><CODE>keyClass</CODE> - The 'key' type.<DD><CODE>valClass</CODE> - The 'value' type.<DD><CODE>compressionType</CODE> - The compression type.<DD><CODE>codec</CODE> - The compression codec. |
---|
| 650 | <DT><B>Returns:</B><DD>Returns the handle to the constructed SequenceFile Writer. |
---|
| 651 | <DT><B>Throws:</B> |
---|
| 652 | <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> |
---|
| 653 | </DD> |
---|
| 654 | </DL> |
---|
| 655 | <HR> |
---|
| 656 | |
---|
| 657 | <A NAME="createWriter(org.apache.hadoop.fs.FileSystem, org.apache.hadoop.conf.Configuration, org.apache.hadoop.fs.Path, java.lang.Class, java.lang.Class, org.apache.hadoop.io.SequenceFile.CompressionType, org.apache.hadoop.io.compress.CompressionCodec, org.apache.hadoop.util.Progressable, org.apache.hadoop.io.SequenceFile.Metadata)"><!-- --></A><H3> |
---|
| 658 | createWriter</H3> |
---|
| 659 | <PRE> |
---|
| 660 | public static <A HREF="../../../../org/apache/hadoop/io/SequenceFile.Writer.html" title="class in org.apache.hadoop.io">SequenceFile.Writer</A> <B>createWriter</B>(<A HREF="../../../../org/apache/hadoop/fs/FileSystem.html" title="class in org.apache.hadoop.fs">FileSystem</A> fs, |
---|
| 661 | <A HREF="../../../../org/apache/hadoop/conf/Configuration.html" title="class in org.apache.hadoop.conf">Configuration</A> conf, |
---|
| 662 | <A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A> name, |
---|
| 663 | <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> keyClass, |
---|
| 664 | <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> valClass, |
---|
| 665 | <A HREF="../../../../org/apache/hadoop/io/SequenceFile.CompressionType.html" title="enum in org.apache.hadoop.io">SequenceFile.CompressionType</A> compressionType, |
---|
| 666 | <A HREF="../../../../org/apache/hadoop/io/compress/CompressionCodec.html" title="interface in org.apache.hadoop.io.compress">CompressionCodec</A> codec, |
---|
| 667 | <A HREF="../../../../org/apache/hadoop/util/Progressable.html" title="interface in org.apache.hadoop.util">Progressable</A> progress, |
---|
| 668 | <A HREF="../../../../org/apache/hadoop/io/SequenceFile.Metadata.html" title="class in org.apache.hadoop.io">SequenceFile.Metadata</A> metadata) |
---|
| 669 | 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> |
---|
| 670 | <DL> |
---|
| 671 | <DD>Construct the preferred type of SequenceFile Writer. |
---|
| 672 | <P> |
---|
| 673 | <DD><DL> |
---|
| 674 | <DT><B>Parameters:</B><DD><CODE>fs</CODE> - The configured filesystem.<DD><CODE>conf</CODE> - The configuration.<DD><CODE>name</CODE> - The name of the file.<DD><CODE>keyClass</CODE> - The 'key' type.<DD><CODE>valClass</CODE> - The 'value' type.<DD><CODE>compressionType</CODE> - The compression type.<DD><CODE>codec</CODE> - The compression codec.<DD><CODE>progress</CODE> - The Progressable object to track progress.<DD><CODE>metadata</CODE> - The metadata of the file. |
---|
| 675 | <DT><B>Returns:</B><DD>Returns the handle to the constructed SequenceFile Writer. |
---|
| 676 | <DT><B>Throws:</B> |
---|
| 677 | <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> |
---|
| 678 | </DD> |
---|
| 679 | </DL> |
---|
| 680 | <HR> |
---|
| 681 | |
---|
| 682 | <A NAME="createWriter(org.apache.hadoop.fs.FileSystem, org.apache.hadoop.conf.Configuration, org.apache.hadoop.fs.Path, java.lang.Class, java.lang.Class, int, short, long, org.apache.hadoop.io.SequenceFile.CompressionType, org.apache.hadoop.io.compress.CompressionCodec, org.apache.hadoop.util.Progressable, org.apache.hadoop.io.SequenceFile.Metadata)"><!-- --></A><H3> |
---|
| 683 | createWriter</H3> |
---|
| 684 | <PRE> |
---|
| 685 | public static <A HREF="../../../../org/apache/hadoop/io/SequenceFile.Writer.html" title="class in org.apache.hadoop.io">SequenceFile.Writer</A> <B>createWriter</B>(<A HREF="../../../../org/apache/hadoop/fs/FileSystem.html" title="class in org.apache.hadoop.fs">FileSystem</A> fs, |
---|
| 686 | <A HREF="../../../../org/apache/hadoop/conf/Configuration.html" title="class in org.apache.hadoop.conf">Configuration</A> conf, |
---|
| 687 | <A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A> name, |
---|
| 688 | <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> keyClass, |
---|
| 689 | <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> valClass, |
---|
| 690 | int bufferSize, |
---|
| 691 | short replication, |
---|
| 692 | long blockSize, |
---|
| 693 | <A HREF="../../../../org/apache/hadoop/io/SequenceFile.CompressionType.html" title="enum in org.apache.hadoop.io">SequenceFile.CompressionType</A> compressionType, |
---|
| 694 | <A HREF="../../../../org/apache/hadoop/io/compress/CompressionCodec.html" title="interface in org.apache.hadoop.io.compress">CompressionCodec</A> codec, |
---|
| 695 | <A HREF="../../../../org/apache/hadoop/util/Progressable.html" title="interface in org.apache.hadoop.util">Progressable</A> progress, |
---|
| 696 | <A HREF="../../../../org/apache/hadoop/io/SequenceFile.Metadata.html" title="class in org.apache.hadoop.io">SequenceFile.Metadata</A> metadata) |
---|
| 697 | 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> |
---|
| 698 | <DL> |
---|
| 699 | <DD>Construct the preferred type of SequenceFile Writer. |
---|
| 700 | <P> |
---|
| 701 | <DD><DL> |
---|
| 702 | <DT><B>Parameters:</B><DD><CODE>fs</CODE> - The configured filesystem.<DD><CODE>conf</CODE> - The configuration.<DD><CODE>name</CODE> - The name of the file.<DD><CODE>keyClass</CODE> - The 'key' type.<DD><CODE>valClass</CODE> - The 'value' type.<DD><CODE>bufferSize</CODE> - buffer size for the underlaying outputstream.<DD><CODE>replication</CODE> - replication factor for the file.<DD><CODE>blockSize</CODE> - block size for the file.<DD><CODE>compressionType</CODE> - The compression type.<DD><CODE>codec</CODE> - The compression codec.<DD><CODE>progress</CODE> - The Progressable object to track progress.<DD><CODE>metadata</CODE> - The metadata of the file. |
---|
| 703 | <DT><B>Returns:</B><DD>Returns the handle to the constructed SequenceFile Writer. |
---|
| 704 | <DT><B>Throws:</B> |
---|
| 705 | <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> |
---|
| 706 | </DD> |
---|
| 707 | </DL> |
---|
| 708 | <HR> |
---|
| 709 | |
---|
| 710 | <A NAME="createWriter(org.apache.hadoop.fs.FileSystem, org.apache.hadoop.conf.Configuration, org.apache.hadoop.fs.Path, java.lang.Class, java.lang.Class, org.apache.hadoop.io.SequenceFile.CompressionType, org.apache.hadoop.io.compress.CompressionCodec, org.apache.hadoop.util.Progressable)"><!-- --></A><H3> |
---|
| 711 | createWriter</H3> |
---|
| 712 | <PRE> |
---|
| 713 | public static <A HREF="../../../../org/apache/hadoop/io/SequenceFile.Writer.html" title="class in org.apache.hadoop.io">SequenceFile.Writer</A> <B>createWriter</B>(<A HREF="../../../../org/apache/hadoop/fs/FileSystem.html" title="class in org.apache.hadoop.fs">FileSystem</A> fs, |
---|
| 714 | <A HREF="../../../../org/apache/hadoop/conf/Configuration.html" title="class in org.apache.hadoop.conf">Configuration</A> conf, |
---|
| 715 | <A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A> name, |
---|
| 716 | <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> keyClass, |
---|
| 717 | <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> valClass, |
---|
| 718 | <A HREF="../../../../org/apache/hadoop/io/SequenceFile.CompressionType.html" title="enum in org.apache.hadoop.io">SequenceFile.CompressionType</A> compressionType, |
---|
| 719 | <A HREF="../../../../org/apache/hadoop/io/compress/CompressionCodec.html" title="interface in org.apache.hadoop.io.compress">CompressionCodec</A> codec, |
---|
| 720 | <A HREF="../../../../org/apache/hadoop/util/Progressable.html" title="interface in org.apache.hadoop.util">Progressable</A> progress) |
---|
| 721 | 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> |
---|
| 722 | <DL> |
---|
| 723 | <DD>Construct the preferred type of SequenceFile Writer. |
---|
| 724 | <P> |
---|
| 725 | <DD><DL> |
---|
| 726 | <DT><B>Parameters:</B><DD><CODE>fs</CODE> - The configured filesystem.<DD><CODE>conf</CODE> - The configuration.<DD><CODE>name</CODE> - The name of the file.<DD><CODE>keyClass</CODE> - The 'key' type.<DD><CODE>valClass</CODE> - The 'value' type.<DD><CODE>compressionType</CODE> - The compression type.<DD><CODE>codec</CODE> - The compression codec.<DD><CODE>progress</CODE> - The Progressable object to track progress. |
---|
| 727 | <DT><B>Returns:</B><DD>Returns the handle to the constructed SequenceFile Writer. |
---|
| 728 | <DT><B>Throws:</B> |
---|
| 729 | <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> |
---|
| 730 | </DD> |
---|
| 731 | </DL> |
---|
| 732 | <HR> |
---|
| 733 | |
---|
| 734 | <A NAME="createWriter(org.apache.hadoop.conf.Configuration, org.apache.hadoop.fs.FSDataOutputStream, java.lang.Class, java.lang.Class, org.apache.hadoop.io.SequenceFile.CompressionType, org.apache.hadoop.io.compress.CompressionCodec, org.apache.hadoop.io.SequenceFile.Metadata)"><!-- --></A><H3> |
---|
| 735 | createWriter</H3> |
---|
| 736 | <PRE> |
---|
| 737 | public static <A HREF="../../../../org/apache/hadoop/io/SequenceFile.Writer.html" title="class in org.apache.hadoop.io">SequenceFile.Writer</A> <B>createWriter</B>(<A HREF="../../../../org/apache/hadoop/conf/Configuration.html" title="class in org.apache.hadoop.conf">Configuration</A> conf, |
---|
| 738 | <A HREF="../../../../org/apache/hadoop/fs/FSDataOutputStream.html" title="class in org.apache.hadoop.fs">FSDataOutputStream</A> out, |
---|
| 739 | <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> keyClass, |
---|
| 740 | <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> valClass, |
---|
| 741 | <A HREF="../../../../org/apache/hadoop/io/SequenceFile.CompressionType.html" title="enum in org.apache.hadoop.io">SequenceFile.CompressionType</A> compressionType, |
---|
| 742 | <A HREF="../../../../org/apache/hadoop/io/compress/CompressionCodec.html" title="interface in org.apache.hadoop.io.compress">CompressionCodec</A> codec, |
---|
| 743 | <A HREF="../../../../org/apache/hadoop/io/SequenceFile.Metadata.html" title="class in org.apache.hadoop.io">SequenceFile.Metadata</A> metadata) |
---|
| 744 | 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> |
---|
| 745 | <DL> |
---|
| 746 | <DD>Construct the preferred type of 'raw' SequenceFile Writer. |
---|
| 747 | <P> |
---|
| 748 | <DD><DL> |
---|
| 749 | <DT><B>Parameters:</B><DD><CODE>conf</CODE> - The configuration.<DD><CODE>out</CODE> - The stream on top which the writer is to be constructed.<DD><CODE>keyClass</CODE> - The 'key' type.<DD><CODE>valClass</CODE> - The 'value' type.<DD><CODE>compressionType</CODE> - The compression type.<DD><CODE>codec</CODE> - The compression codec.<DD><CODE>metadata</CODE> - The metadata of the file. |
---|
| 750 | <DT><B>Returns:</B><DD>Returns the handle to the constructed SequenceFile Writer. |
---|
| 751 | <DT><B>Throws:</B> |
---|
| 752 | <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> |
---|
| 753 | </DD> |
---|
| 754 | </DL> |
---|
| 755 | <HR> |
---|
| 756 | |
---|
| 757 | <A NAME="createWriter(org.apache.hadoop.conf.Configuration, org.apache.hadoop.fs.FSDataOutputStream, java.lang.Class, java.lang.Class, org.apache.hadoop.io.SequenceFile.CompressionType, org.apache.hadoop.io.compress.CompressionCodec)"><!-- --></A><H3> |
---|
| 758 | createWriter</H3> |
---|
| 759 | <PRE> |
---|
| 760 | public static <A HREF="../../../../org/apache/hadoop/io/SequenceFile.Writer.html" title="class in org.apache.hadoop.io">SequenceFile.Writer</A> <B>createWriter</B>(<A HREF="../../../../org/apache/hadoop/conf/Configuration.html" title="class in org.apache.hadoop.conf">Configuration</A> conf, |
---|
| 761 | <A HREF="../../../../org/apache/hadoop/fs/FSDataOutputStream.html" title="class in org.apache.hadoop.fs">FSDataOutputStream</A> out, |
---|
| 762 | <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> keyClass, |
---|
| 763 | <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> valClass, |
---|
| 764 | <A HREF="../../../../org/apache/hadoop/io/SequenceFile.CompressionType.html" title="enum in org.apache.hadoop.io">SequenceFile.CompressionType</A> compressionType, |
---|
| 765 | <A HREF="../../../../org/apache/hadoop/io/compress/CompressionCodec.html" title="interface in org.apache.hadoop.io.compress">CompressionCodec</A> codec) |
---|
| 766 | 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> |
---|
| 767 | <DL> |
---|
| 768 | <DD>Construct the preferred type of 'raw' SequenceFile Writer. |
---|
| 769 | <P> |
---|
| 770 | <DD><DL> |
---|
| 771 | <DT><B>Parameters:</B><DD><CODE>conf</CODE> - The configuration.<DD><CODE>out</CODE> - The stream on top which the writer is to be constructed.<DD><CODE>keyClass</CODE> - The 'key' type.<DD><CODE>valClass</CODE> - The 'value' type.<DD><CODE>compressionType</CODE> - The compression type.<DD><CODE>codec</CODE> - The compression codec. |
---|
| 772 | <DT><B>Returns:</B><DD>Returns the handle to the constructed SequenceFile Writer. |
---|
| 773 | <DT><B>Throws:</B> |
---|
| 774 | <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> |
---|
| 775 | </DD> |
---|
| 776 | </DL> |
---|
| 777 | <!-- ========= END OF CLASS DATA ========= --> |
---|
| 778 | <HR> |
---|
| 779 | |
---|
| 780 | |
---|
| 781 | <!-- ======= START OF BOTTOM NAVBAR ====== --> |
---|
| 782 | <A NAME="navbar_bottom"><!-- --></A> |
---|
| 783 | <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A> |
---|
| 784 | <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> |
---|
| 785 | <TR> |
---|
| 786 | <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> |
---|
| 787 | <A NAME="navbar_bottom_firstrow"><!-- --></A> |
---|
| 788 | <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> |
---|
| 789 | <TR ALIGN="center" VALIGN="top"> |
---|
| 790 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> |
---|
| 791 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> |
---|
| 792 | <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> |
---|
| 793 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/SequenceFile.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> |
---|
| 794 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> |
---|
| 795 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> |
---|
| 796 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> |
---|
| 797 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> |
---|
| 798 | </TR> |
---|
| 799 | </TABLE> |
---|
| 800 | </TD> |
---|
| 801 | <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> |
---|
| 802 | </EM> |
---|
| 803 | </TD> |
---|
| 804 | </TR> |
---|
| 805 | |
---|
| 806 | <TR> |
---|
| 807 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
---|
| 808 | <A HREF="../../../../org/apache/hadoop/io/RawComparator.html" title="interface in org.apache.hadoop.io"><B>PREV CLASS</B></A> |
---|
| 809 | <A HREF="../../../../org/apache/hadoop/io/SequenceFile.CompressionType.html" title="enum in org.apache.hadoop.io"><B>NEXT CLASS</B></A></FONT></TD> |
---|
| 810 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
---|
| 811 | <A HREF="../../../../index.html?org/apache/hadoop/io/SequenceFile.html" target="_top"><B>FRAMES</B></A> |
---|
| 812 | <A HREF="SequenceFile.html" target="_top"><B>NO FRAMES</B></A> |
---|
| 813 | <SCRIPT type="text/javascript"> |
---|
| 814 | <!-- |
---|
| 815 | if(window==top) { |
---|
| 816 | document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>'); |
---|
| 817 | } |
---|
| 818 | //--> |
---|
| 819 | </SCRIPT> |
---|
| 820 | <NOSCRIPT> |
---|
| 821 | <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A> |
---|
| 822 | </NOSCRIPT> |
---|
| 823 | |
---|
| 824 | |
---|
| 825 | </FONT></TD> |
---|
| 826 | </TR> |
---|
| 827 | <TR> |
---|
| 828 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
---|
| 829 | SUMMARY: <A HREF="#nested_class_summary">NESTED</A> | <A HREF="#field_summary">FIELD</A> | CONSTR | <A HREF="#method_summary">METHOD</A></FONT></TD> |
---|
| 830 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
---|
| 831 | DETAIL: <A HREF="#field_detail">FIELD</A> | CONSTR | <A HREF="#method_detail">METHOD</A></FONT></TD> |
---|
| 832 | </TR> |
---|
| 833 | </TABLE> |
---|
| 834 | <A NAME="skip-navbar_bottom"></A> |
---|
| 835 | <!-- ======== END OF BOTTOM NAVBAR ======= --> |
---|
| 836 | |
---|
| 837 | <HR> |
---|
| 838 | Copyright © 2009 The Apache Software Foundation |
---|
| 839 | </BODY> |
---|
| 840 | </HTML> |
---|