[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.Sorter (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.Sorter (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.Sorter.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/SequenceFile.Reader.html" title="class in org.apache.hadoop.io"><B>PREV CLASS</B></A> |
---|
| 59 | <A HREF="../../../../org/apache/hadoop/io/SequenceFile.Sorter.RawKeyValueIterator.html" title="interface 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.Sorter.html" target="_top"><B>FRAMES</B></A> |
---|
| 62 | <A HREF="SequenceFile.Sorter.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> | 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 SequenceFile.Sorter</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.Sorter</B> |
---|
| 97 | </PRE> |
---|
| 98 | <DL> |
---|
| 99 | <DT><B>Enclosing class:</B><DD><A HREF="../../../../org/apache/hadoop/io/SequenceFile.html" title="class in org.apache.hadoop.io">SequenceFile</A></DD> |
---|
| 100 | </DL> |
---|
| 101 | <HR> |
---|
| 102 | <DL> |
---|
| 103 | <DT><PRE>public static class <B>SequenceFile.Sorter</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> |
---|
| 104 | </PRE> |
---|
| 105 | |
---|
| 106 | <P> |
---|
| 107 | Sorts key/value pairs in a sequence-format file. |
---|
| 108 | |
---|
| 109 | <p>For best performance, applications should make sure that the <A HREF="../../../../org/apache/hadoop/io/Writable.html#readFields(java.io.DataInput)"><CODE>Writable.readFields(DataInput)</CODE></A> implementation of their keys is |
---|
| 110 | very efficient. In particular, it should avoid allocating memory. |
---|
| 111 | <P> |
---|
| 112 | |
---|
| 113 | <P> |
---|
| 114 | <HR> |
---|
| 115 | |
---|
| 116 | <P> |
---|
| 117 | <!-- ======== NESTED CLASS SUMMARY ======== --> |
---|
| 118 | |
---|
| 119 | <A NAME="nested_class_summary"><!-- --></A> |
---|
| 120 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
---|
| 121 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
---|
| 122 | <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> |
---|
| 123 | <B>Nested Class Summary</B></FONT></TH> |
---|
| 124 | </TR> |
---|
| 125 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 126 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 127 | <CODE>static interface</CODE></FONT></TD> |
---|
| 128 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/io/SequenceFile.Sorter.RawKeyValueIterator.html" title="interface in org.apache.hadoop.io">SequenceFile.Sorter.RawKeyValueIterator</A></B></CODE> |
---|
| 129 | |
---|
| 130 | <BR> |
---|
| 131 | The interface to iterate over raw keys/values of SequenceFiles.</TD> |
---|
| 132 | </TR> |
---|
| 133 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 134 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 135 | <CODE> class</CODE></FONT></TD> |
---|
| 136 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/io/SequenceFile.Sorter.SegmentDescriptor.html" title="class in org.apache.hadoop.io">SequenceFile.Sorter.SegmentDescriptor</A></B></CODE> |
---|
| 137 | |
---|
| 138 | <BR> |
---|
| 139 | This class defines a merge segment.</TD> |
---|
| 140 | </TR> |
---|
| 141 | </TABLE> |
---|
| 142 | |
---|
| 143 | <!-- ======== CONSTRUCTOR SUMMARY ======== --> |
---|
| 144 | |
---|
| 145 | <A NAME="constructor_summary"><!-- --></A> |
---|
| 146 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
---|
| 147 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
---|
| 148 | <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> |
---|
| 149 | <B>Constructor Summary</B></FONT></TH> |
---|
| 150 | </TR> |
---|
| 151 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 152 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/io/SequenceFile.Sorter.html#SequenceFile.Sorter(org.apache.hadoop.fs.FileSystem, java.lang.Class, java.lang.Class, org.apache.hadoop.conf.Configuration)">SequenceFile.Sorter</A></B>(<A HREF="../../../../org/apache/hadoop/fs/FileSystem.html" title="class in org.apache.hadoop.fs">FileSystem</A> fs, |
---|
| 153 | <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/WritableComparable.html" title="interface in org.apache.hadoop.io">WritableComparable</A>> keyClass, |
---|
| 154 | <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, |
---|
| 155 | <A HREF="../../../../org/apache/hadoop/conf/Configuration.html" title="class in org.apache.hadoop.conf">Configuration</A> conf)</CODE> |
---|
| 156 | |
---|
| 157 | <BR> |
---|
| 158 | Sort and merge files containing the named classes.</TD> |
---|
| 159 | </TR> |
---|
| 160 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 161 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/io/SequenceFile.Sorter.html#SequenceFile.Sorter(org.apache.hadoop.fs.FileSystem, org.apache.hadoop.io.RawComparator, java.lang.Class, java.lang.Class, org.apache.hadoop.conf.Configuration)">SequenceFile.Sorter</A></B>(<A HREF="../../../../org/apache/hadoop/fs/FileSystem.html" title="class in org.apache.hadoop.fs">FileSystem</A> fs, |
---|
| 162 | <A HREF="../../../../org/apache/hadoop/io/RawComparator.html" title="interface in org.apache.hadoop.io">RawComparator</A> comparator, |
---|
| 163 | <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, |
---|
| 164 | <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, |
---|
| 165 | <A HREF="../../../../org/apache/hadoop/conf/Configuration.html" title="class in org.apache.hadoop.conf">Configuration</A> conf)</CODE> |
---|
| 166 | |
---|
| 167 | <BR> |
---|
| 168 | Sort and merge using an arbitrary <A HREF="../../../../org/apache/hadoop/io/RawComparator.html" title="interface in org.apache.hadoop.io"><CODE>RawComparator</CODE></A>.</TD> |
---|
| 169 | </TR> |
---|
| 170 | </TABLE> |
---|
| 171 | |
---|
| 172 | <!-- ========== METHOD SUMMARY =========== --> |
---|
| 173 | |
---|
| 174 | <A NAME="method_summary"><!-- --></A> |
---|
| 175 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
---|
| 176 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
---|
| 177 | <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> |
---|
| 178 | <B>Method Summary</B></FONT></TH> |
---|
| 179 | </TR> |
---|
| 180 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 181 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 182 | <CODE> <A HREF="../../../../org/apache/hadoop/io/SequenceFile.Writer.html" title="class in org.apache.hadoop.io">SequenceFile.Writer</A></CODE></FONT></TD> |
---|
| 183 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/io/SequenceFile.Sorter.html#cloneFileAttributes(org.apache.hadoop.fs.Path, org.apache.hadoop.fs.Path, org.apache.hadoop.util.Progressable)">cloneFileAttributes</A></B>(<A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A> inputFile, |
---|
| 184 | <A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A> outputFile, |
---|
| 185 | <A HREF="../../../../org/apache/hadoop/util/Progressable.html" title="interface in org.apache.hadoop.util">Progressable</A> prog)</CODE> |
---|
| 186 | |
---|
| 187 | <BR> |
---|
| 188 | Clones the attributes (like compression of the input file and creates a |
---|
| 189 | corresponding Writer</TD> |
---|
| 190 | </TR> |
---|
| 191 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 192 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 193 | <CODE> int</CODE></FONT></TD> |
---|
| 194 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/io/SequenceFile.Sorter.html#getFactor()">getFactor</A></B>()</CODE> |
---|
| 195 | |
---|
| 196 | <BR> |
---|
| 197 | Get the number of streams to merge at once.</TD> |
---|
| 198 | </TR> |
---|
| 199 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 200 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 201 | <CODE> int</CODE></FONT></TD> |
---|
| 202 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/io/SequenceFile.Sorter.html#getMemory()">getMemory</A></B>()</CODE> |
---|
| 203 | |
---|
| 204 | <BR> |
---|
| 205 | Get the total amount of buffer memory, in bytes.</TD> |
---|
| 206 | </TR> |
---|
| 207 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 208 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 209 | <CODE> <A HREF="../../../../org/apache/hadoop/io/SequenceFile.Sorter.RawKeyValueIterator.html" title="interface in org.apache.hadoop.io">SequenceFile.Sorter.RawKeyValueIterator</A></CODE></FONT></TD> |
---|
| 210 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/io/SequenceFile.Sorter.html#merge(java.util.List, org.apache.hadoop.fs.Path)">merge</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</A><<A HREF="../../../../org/apache/hadoop/io/SequenceFile.Sorter.SegmentDescriptor.html" title="class in org.apache.hadoop.io">SequenceFile.Sorter.SegmentDescriptor</A>> segments, |
---|
| 211 | <A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A> tmpDir)</CODE> |
---|
| 212 | |
---|
| 213 | <BR> |
---|
| 214 | Merges the list of segments of type <code>SegmentDescriptor</code></TD> |
---|
| 215 | </TR> |
---|
| 216 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 217 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 218 | <CODE> <A HREF="../../../../org/apache/hadoop/io/SequenceFile.Sorter.RawKeyValueIterator.html" title="interface in org.apache.hadoop.io">SequenceFile.Sorter.RawKeyValueIterator</A></CODE></FONT></TD> |
---|
| 219 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/io/SequenceFile.Sorter.html#merge(org.apache.hadoop.fs.Path[], boolean, int, org.apache.hadoop.fs.Path)">merge</A></B>(<A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A>[] inNames, |
---|
| 220 | boolean deleteInputs, |
---|
| 221 | int factor, |
---|
| 222 | <A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A> tmpDir)</CODE> |
---|
| 223 | |
---|
| 224 | <BR> |
---|
| 225 | Merges the contents of files passed in Path[]</TD> |
---|
| 226 | </TR> |
---|
| 227 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 228 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 229 | <CODE> <A HREF="../../../../org/apache/hadoop/io/SequenceFile.Sorter.RawKeyValueIterator.html" title="interface in org.apache.hadoop.io">SequenceFile.Sorter.RawKeyValueIterator</A></CODE></FONT></TD> |
---|
| 230 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/io/SequenceFile.Sorter.html#merge(org.apache.hadoop.fs.Path[], boolean, org.apache.hadoop.fs.Path)">merge</A></B>(<A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A>[] inNames, |
---|
| 231 | boolean deleteInputs, |
---|
| 232 | <A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A> tmpDir)</CODE> |
---|
| 233 | |
---|
| 234 | <BR> |
---|
| 235 | Merges the contents of files passed in Path[] using a max factor value |
---|
| 236 | that is already set</TD> |
---|
| 237 | </TR> |
---|
| 238 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 239 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 240 | <CODE> void</CODE></FONT></TD> |
---|
| 241 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/io/SequenceFile.Sorter.html#merge(org.apache.hadoop.fs.Path[], org.apache.hadoop.fs.Path)">merge</A></B>(<A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A>[] inFiles, |
---|
| 242 | <A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A> outFile)</CODE> |
---|
| 243 | |
---|
| 244 | <BR> |
---|
| 245 | Merge the provided files.</TD> |
---|
| 246 | </TR> |
---|
| 247 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 248 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 249 | <CODE> <A HREF="../../../../org/apache/hadoop/io/SequenceFile.Sorter.RawKeyValueIterator.html" title="interface in org.apache.hadoop.io">SequenceFile.Sorter.RawKeyValueIterator</A></CODE></FONT></TD> |
---|
| 250 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/io/SequenceFile.Sorter.html#merge(org.apache.hadoop.fs.Path[], org.apache.hadoop.fs.Path, boolean)">merge</A></B>(<A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A>[] inNames, |
---|
| 251 | <A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A> tempDir, |
---|
| 252 | boolean deleteInputs)</CODE> |
---|
| 253 | |
---|
| 254 | <BR> |
---|
| 255 | Merges the contents of files passed in Path[]</TD> |
---|
| 256 | </TR> |
---|
| 257 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 258 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 259 | <CODE> void</CODE></FONT></TD> |
---|
| 260 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/io/SequenceFile.Sorter.html#setFactor(int)">setFactor</A></B>(int factor)</CODE> |
---|
| 261 | |
---|
| 262 | <BR> |
---|
| 263 | Set the number of streams to merge at once.</TD> |
---|
| 264 | </TR> |
---|
| 265 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 266 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 267 | <CODE> void</CODE></FONT></TD> |
---|
| 268 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/io/SequenceFile.Sorter.html#setMemory(int)">setMemory</A></B>(int memory)</CODE> |
---|
| 269 | |
---|
| 270 | <BR> |
---|
| 271 | Set the total amount of buffer memory, in bytes.</TD> |
---|
| 272 | </TR> |
---|
| 273 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 274 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 275 | <CODE> void</CODE></FONT></TD> |
---|
| 276 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/io/SequenceFile.Sorter.html#setProgressable(org.apache.hadoop.util.Progressable)">setProgressable</A></B>(<A HREF="../../../../org/apache/hadoop/util/Progressable.html" title="interface in org.apache.hadoop.util">Progressable</A> progressable)</CODE> |
---|
| 277 | |
---|
| 278 | <BR> |
---|
| 279 | Set the progressable object in order to report progress.</TD> |
---|
| 280 | </TR> |
---|
| 281 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 282 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 283 | <CODE> void</CODE></FONT></TD> |
---|
| 284 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/io/SequenceFile.Sorter.html#sort(org.apache.hadoop.fs.Path[], org.apache.hadoop.fs.Path, boolean)">sort</A></B>(<A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A>[] inFiles, |
---|
| 285 | <A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A> outFile, |
---|
| 286 | boolean deleteInput)</CODE> |
---|
| 287 | |
---|
| 288 | <BR> |
---|
| 289 | Perform a file sort from a set of input files into an output file.</TD> |
---|
| 290 | </TR> |
---|
| 291 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 292 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 293 | <CODE> void</CODE></FONT></TD> |
---|
| 294 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/io/SequenceFile.Sorter.html#sort(org.apache.hadoop.fs.Path, org.apache.hadoop.fs.Path)">sort</A></B>(<A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A> inFile, |
---|
| 295 | <A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A> outFile)</CODE> |
---|
| 296 | |
---|
| 297 | <BR> |
---|
| 298 | The backwards compatible interface to sort.</TD> |
---|
| 299 | </TR> |
---|
| 300 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 301 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 302 | <CODE> <A HREF="../../../../org/apache/hadoop/io/SequenceFile.Sorter.RawKeyValueIterator.html" title="interface in org.apache.hadoop.io">SequenceFile.Sorter.RawKeyValueIterator</A></CODE></FONT></TD> |
---|
| 303 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/io/SequenceFile.Sorter.html#sortAndIterate(org.apache.hadoop.fs.Path[], org.apache.hadoop.fs.Path, boolean)">sortAndIterate</A></B>(<A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A>[] inFiles, |
---|
| 304 | <A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A> tempDir, |
---|
| 305 | boolean deleteInput)</CODE> |
---|
| 306 | |
---|
| 307 | <BR> |
---|
| 308 | Perform a file sort from a set of input files and return an iterator.</TD> |
---|
| 309 | </TR> |
---|
| 310 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 311 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 312 | <CODE> void</CODE></FONT></TD> |
---|
| 313 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/io/SequenceFile.Sorter.html#writeFile(org.apache.hadoop.io.SequenceFile.Sorter.RawKeyValueIterator, org.apache.hadoop.io.SequenceFile.Writer)">writeFile</A></B>(<A HREF="../../../../org/apache/hadoop/io/SequenceFile.Sorter.RawKeyValueIterator.html" title="interface in org.apache.hadoop.io">SequenceFile.Sorter.RawKeyValueIterator</A> records, |
---|
| 314 | <A HREF="../../../../org/apache/hadoop/io/SequenceFile.Writer.html" title="class in org.apache.hadoop.io">SequenceFile.Writer</A> writer)</CODE> |
---|
| 315 | |
---|
| 316 | <BR> |
---|
| 317 | Writes records from RawKeyValueIterator into a file represented by the |
---|
| 318 | passed writer</TD> |
---|
| 319 | </TR> |
---|
| 320 | </TABLE> |
---|
| 321 | <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A> |
---|
| 322 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
---|
| 323 | <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> |
---|
| 324 | <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> |
---|
| 325 | </TR> |
---|
| 326 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 327 | <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> |
---|
| 328 | </TR> |
---|
| 329 | </TABLE> |
---|
| 330 | |
---|
| 331 | <P> |
---|
| 332 | |
---|
| 333 | <!-- ========= CONSTRUCTOR DETAIL ======== --> |
---|
| 334 | |
---|
| 335 | <A NAME="constructor_detail"><!-- --></A> |
---|
| 336 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
---|
| 337 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
---|
| 338 | <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> |
---|
| 339 | <B>Constructor Detail</B></FONT></TH> |
---|
| 340 | </TR> |
---|
| 341 | </TABLE> |
---|
| 342 | |
---|
| 343 | <A NAME="SequenceFile.Sorter(org.apache.hadoop.fs.FileSystem, java.lang.Class, java.lang.Class, org.apache.hadoop.conf.Configuration)"><!-- --></A><H3> |
---|
| 344 | SequenceFile.Sorter</H3> |
---|
| 345 | <PRE> |
---|
| 346 | public <B>SequenceFile.Sorter</B>(<A HREF="../../../../org/apache/hadoop/fs/FileSystem.html" title="class in org.apache.hadoop.fs">FileSystem</A> fs, |
---|
| 347 | <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/WritableComparable.html" title="interface in org.apache.hadoop.io">WritableComparable</A>> keyClass, |
---|
| 348 | <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, |
---|
| 349 | <A HREF="../../../../org/apache/hadoop/conf/Configuration.html" title="class in org.apache.hadoop.conf">Configuration</A> conf)</PRE> |
---|
| 350 | <DL> |
---|
| 351 | <DD>Sort and merge files containing the named classes. |
---|
| 352 | <P> |
---|
| 353 | </DL> |
---|
| 354 | <HR> |
---|
| 355 | |
---|
| 356 | <A NAME="SequenceFile.Sorter(org.apache.hadoop.fs.FileSystem, org.apache.hadoop.io.RawComparator, java.lang.Class, java.lang.Class, org.apache.hadoop.conf.Configuration)"><!-- --></A><H3> |
---|
| 357 | SequenceFile.Sorter</H3> |
---|
| 358 | <PRE> |
---|
| 359 | public <B>SequenceFile.Sorter</B>(<A HREF="../../../../org/apache/hadoop/fs/FileSystem.html" title="class in org.apache.hadoop.fs">FileSystem</A> fs, |
---|
| 360 | <A HREF="../../../../org/apache/hadoop/io/RawComparator.html" title="interface in org.apache.hadoop.io">RawComparator</A> comparator, |
---|
| 361 | <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, |
---|
| 362 | <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, |
---|
| 363 | <A HREF="../../../../org/apache/hadoop/conf/Configuration.html" title="class in org.apache.hadoop.conf">Configuration</A> conf)</PRE> |
---|
| 364 | <DL> |
---|
| 365 | <DD>Sort and merge using an arbitrary <A HREF="../../../../org/apache/hadoop/io/RawComparator.html" title="interface in org.apache.hadoop.io"><CODE>RawComparator</CODE></A>. |
---|
| 366 | <P> |
---|
| 367 | </DL> |
---|
| 368 | |
---|
| 369 | <!-- ============ METHOD DETAIL ========== --> |
---|
| 370 | |
---|
| 371 | <A NAME="method_detail"><!-- --></A> |
---|
| 372 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
---|
| 373 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
---|
| 374 | <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> |
---|
| 375 | <B>Method Detail</B></FONT></TH> |
---|
| 376 | </TR> |
---|
| 377 | </TABLE> |
---|
| 378 | |
---|
| 379 | <A NAME="setFactor(int)"><!-- --></A><H3> |
---|
| 380 | setFactor</H3> |
---|
| 381 | <PRE> |
---|
| 382 | public void <B>setFactor</B>(int factor)</PRE> |
---|
| 383 | <DL> |
---|
| 384 | <DD>Set the number of streams to merge at once. |
---|
| 385 | <P> |
---|
| 386 | <DD><DL> |
---|
| 387 | </DL> |
---|
| 388 | </DD> |
---|
| 389 | </DL> |
---|
| 390 | <HR> |
---|
| 391 | |
---|
| 392 | <A NAME="getFactor()"><!-- --></A><H3> |
---|
| 393 | getFactor</H3> |
---|
| 394 | <PRE> |
---|
| 395 | public int <B>getFactor</B>()</PRE> |
---|
| 396 | <DL> |
---|
| 397 | <DD>Get the number of streams to merge at once. |
---|
| 398 | <P> |
---|
| 399 | <DD><DL> |
---|
| 400 | </DL> |
---|
| 401 | </DD> |
---|
| 402 | </DL> |
---|
| 403 | <HR> |
---|
| 404 | |
---|
| 405 | <A NAME="setMemory(int)"><!-- --></A><H3> |
---|
| 406 | setMemory</H3> |
---|
| 407 | <PRE> |
---|
| 408 | public void <B>setMemory</B>(int memory)</PRE> |
---|
| 409 | <DL> |
---|
| 410 | <DD>Set the total amount of buffer memory, in bytes. |
---|
| 411 | <P> |
---|
| 412 | <DD><DL> |
---|
| 413 | </DL> |
---|
| 414 | </DD> |
---|
| 415 | </DL> |
---|
| 416 | <HR> |
---|
| 417 | |
---|
| 418 | <A NAME="getMemory()"><!-- --></A><H3> |
---|
| 419 | getMemory</H3> |
---|
| 420 | <PRE> |
---|
| 421 | public int <B>getMemory</B>()</PRE> |
---|
| 422 | <DL> |
---|
| 423 | <DD>Get the total amount of buffer memory, in bytes. |
---|
| 424 | <P> |
---|
| 425 | <DD><DL> |
---|
| 426 | </DL> |
---|
| 427 | </DD> |
---|
| 428 | </DL> |
---|
| 429 | <HR> |
---|
| 430 | |
---|
| 431 | <A NAME="setProgressable(org.apache.hadoop.util.Progressable)"><!-- --></A><H3> |
---|
| 432 | setProgressable</H3> |
---|
| 433 | <PRE> |
---|
| 434 | public void <B>setProgressable</B>(<A HREF="../../../../org/apache/hadoop/util/Progressable.html" title="interface in org.apache.hadoop.util">Progressable</A> progressable)</PRE> |
---|
| 435 | <DL> |
---|
| 436 | <DD>Set the progressable object in order to report progress. |
---|
| 437 | <P> |
---|
| 438 | <DD><DL> |
---|
| 439 | </DL> |
---|
| 440 | </DD> |
---|
| 441 | </DL> |
---|
| 442 | <HR> |
---|
| 443 | |
---|
| 444 | <A NAME="sort(org.apache.hadoop.fs.Path[], org.apache.hadoop.fs.Path, boolean)"><!-- --></A><H3> |
---|
| 445 | sort</H3> |
---|
| 446 | <PRE> |
---|
| 447 | public void <B>sort</B>(<A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A>[] inFiles, |
---|
| 448 | <A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A> outFile, |
---|
| 449 | boolean deleteInput) |
---|
| 450 | 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> |
---|
| 451 | <DL> |
---|
| 452 | <DD>Perform a file sort from a set of input files into an output file. |
---|
| 453 | <P> |
---|
| 454 | <DD><DL> |
---|
| 455 | <DT><B>Parameters:</B><DD><CODE>inFiles</CODE> - the files to be sorted<DD><CODE>outFile</CODE> - the sorted output file<DD><CODE>deleteInput</CODE> - should the input files be deleted as they are read? |
---|
| 456 | <DT><B>Throws:</B> |
---|
| 457 | <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> |
---|
| 458 | </DD> |
---|
| 459 | </DL> |
---|
| 460 | <HR> |
---|
| 461 | |
---|
| 462 | <A NAME="sortAndIterate(org.apache.hadoop.fs.Path[], org.apache.hadoop.fs.Path, boolean)"><!-- --></A><H3> |
---|
| 463 | sortAndIterate</H3> |
---|
| 464 | <PRE> |
---|
| 465 | public <A HREF="../../../../org/apache/hadoop/io/SequenceFile.Sorter.RawKeyValueIterator.html" title="interface in org.apache.hadoop.io">SequenceFile.Sorter.RawKeyValueIterator</A> <B>sortAndIterate</B>(<A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A>[] inFiles, |
---|
| 466 | <A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A> tempDir, |
---|
| 467 | boolean deleteInput) |
---|
| 468 | 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> |
---|
| 469 | <DL> |
---|
| 470 | <DD>Perform a file sort from a set of input files and return an iterator. |
---|
| 471 | <P> |
---|
| 472 | <DD><DL> |
---|
| 473 | <DT><B>Parameters:</B><DD><CODE>inFiles</CODE> - the files to be sorted<DD><CODE>tempDir</CODE> - the directory where temp files are created during sort<DD><CODE>deleteInput</CODE> - should the input files be deleted as they are read? |
---|
| 474 | <DT><B>Returns:</B><DD>iterator the RawKeyValueIterator |
---|
| 475 | <DT><B>Throws:</B> |
---|
| 476 | <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> |
---|
| 477 | </DD> |
---|
| 478 | </DL> |
---|
| 479 | <HR> |
---|
| 480 | |
---|
| 481 | <A NAME="sort(org.apache.hadoop.fs.Path, org.apache.hadoop.fs.Path)"><!-- --></A><H3> |
---|
| 482 | sort</H3> |
---|
| 483 | <PRE> |
---|
| 484 | public void <B>sort</B>(<A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A> inFile, |
---|
| 485 | <A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A> outFile) |
---|
| 486 | 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> |
---|
| 487 | <DL> |
---|
| 488 | <DD>The backwards compatible interface to sort. |
---|
| 489 | <P> |
---|
| 490 | <DD><DL> |
---|
| 491 | <DT><B>Parameters:</B><DD><CODE>inFile</CODE> - the input file to sort<DD><CODE>outFile</CODE> - the sorted output file |
---|
| 492 | <DT><B>Throws:</B> |
---|
| 493 | <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> |
---|
| 494 | </DD> |
---|
| 495 | </DL> |
---|
| 496 | <HR> |
---|
| 497 | |
---|
| 498 | <A NAME="merge(java.util.List, org.apache.hadoop.fs.Path)"><!-- --></A><H3> |
---|
| 499 | merge</H3> |
---|
| 500 | <PRE> |
---|
| 501 | public <A HREF="../../../../org/apache/hadoop/io/SequenceFile.Sorter.RawKeyValueIterator.html" title="interface in org.apache.hadoop.io">SequenceFile.Sorter.RawKeyValueIterator</A> <B>merge</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</A><<A HREF="../../../../org/apache/hadoop/io/SequenceFile.Sorter.SegmentDescriptor.html" title="class in org.apache.hadoop.io">SequenceFile.Sorter.SegmentDescriptor</A>> segments, |
---|
| 502 | <A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A> tmpDir) |
---|
| 503 | 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> |
---|
| 504 | <DL> |
---|
| 505 | <DD>Merges the list of segments of type <code>SegmentDescriptor</code> |
---|
| 506 | <P> |
---|
| 507 | <DD><DL> |
---|
| 508 | <DT><B>Parameters:</B><DD><CODE>segments</CODE> - the list of SegmentDescriptors<DD><CODE>tmpDir</CODE> - the directory to write temporary files into |
---|
| 509 | <DT><B>Returns:</B><DD>RawKeyValueIterator |
---|
| 510 | <DT><B>Throws:</B> |
---|
| 511 | <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> |
---|
| 512 | </DD> |
---|
| 513 | </DL> |
---|
| 514 | <HR> |
---|
| 515 | |
---|
| 516 | <A NAME="merge(org.apache.hadoop.fs.Path[], boolean, org.apache.hadoop.fs.Path)"><!-- --></A><H3> |
---|
| 517 | merge</H3> |
---|
| 518 | <PRE> |
---|
| 519 | public <A HREF="../../../../org/apache/hadoop/io/SequenceFile.Sorter.RawKeyValueIterator.html" title="interface in org.apache.hadoop.io">SequenceFile.Sorter.RawKeyValueIterator</A> <B>merge</B>(<A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A>[] inNames, |
---|
| 520 | boolean deleteInputs, |
---|
| 521 | <A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A> tmpDir) |
---|
| 522 | 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> |
---|
| 523 | <DL> |
---|
| 524 | <DD>Merges the contents of files passed in Path[] using a max factor value |
---|
| 525 | that is already set |
---|
| 526 | <P> |
---|
| 527 | <DD><DL> |
---|
| 528 | <DT><B>Parameters:</B><DD><CODE>inNames</CODE> - the array of path names<DD><CODE>deleteInputs</CODE> - true if the input files should be deleted when |
---|
| 529 | unnecessary<DD><CODE>tmpDir</CODE> - the directory to write temporary files into |
---|
| 530 | <DT><B>Returns:</B><DD>RawKeyValueIteratorMergeQueue |
---|
| 531 | <DT><B>Throws:</B> |
---|
| 532 | <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> |
---|
| 533 | </DD> |
---|
| 534 | </DL> |
---|
| 535 | <HR> |
---|
| 536 | |
---|
| 537 | <A NAME="merge(org.apache.hadoop.fs.Path[], boolean, int, org.apache.hadoop.fs.Path)"><!-- --></A><H3> |
---|
| 538 | merge</H3> |
---|
| 539 | <PRE> |
---|
| 540 | public <A HREF="../../../../org/apache/hadoop/io/SequenceFile.Sorter.RawKeyValueIterator.html" title="interface in org.apache.hadoop.io">SequenceFile.Sorter.RawKeyValueIterator</A> <B>merge</B>(<A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A>[] inNames, |
---|
| 541 | boolean deleteInputs, |
---|
| 542 | int factor, |
---|
| 543 | <A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A> tmpDir) |
---|
| 544 | 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> |
---|
| 545 | <DL> |
---|
| 546 | <DD>Merges the contents of files passed in Path[] |
---|
| 547 | <P> |
---|
| 548 | <DD><DL> |
---|
| 549 | <DT><B>Parameters:</B><DD><CODE>inNames</CODE> - the array of path names<DD><CODE>deleteInputs</CODE> - true if the input files should be deleted when |
---|
| 550 | unnecessary<DD><CODE>factor</CODE> - the factor that will be used as the maximum merge fan-in<DD><CODE>tmpDir</CODE> - the directory to write temporary files into |
---|
| 551 | <DT><B>Returns:</B><DD>RawKeyValueIteratorMergeQueue |
---|
| 552 | <DT><B>Throws:</B> |
---|
| 553 | <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> |
---|
| 554 | </DD> |
---|
| 555 | </DL> |
---|
| 556 | <HR> |
---|
| 557 | |
---|
| 558 | <A NAME="merge(org.apache.hadoop.fs.Path[], org.apache.hadoop.fs.Path, boolean)"><!-- --></A><H3> |
---|
| 559 | merge</H3> |
---|
| 560 | <PRE> |
---|
| 561 | public <A HREF="../../../../org/apache/hadoop/io/SequenceFile.Sorter.RawKeyValueIterator.html" title="interface in org.apache.hadoop.io">SequenceFile.Sorter.RawKeyValueIterator</A> <B>merge</B>(<A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A>[] inNames, |
---|
| 562 | <A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A> tempDir, |
---|
| 563 | boolean deleteInputs) |
---|
| 564 | 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> |
---|
| 565 | <DL> |
---|
| 566 | <DD>Merges the contents of files passed in Path[] |
---|
| 567 | <P> |
---|
| 568 | <DD><DL> |
---|
| 569 | <DT><B>Parameters:</B><DD><CODE>inNames</CODE> - the array of path names<DD><CODE>tempDir</CODE> - the directory for creating temp files during merge<DD><CODE>deleteInputs</CODE> - true if the input files should be deleted when |
---|
| 570 | unnecessary |
---|
| 571 | <DT><B>Returns:</B><DD>RawKeyValueIteratorMergeQueue |
---|
| 572 | <DT><B>Throws:</B> |
---|
| 573 | <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> |
---|
| 574 | </DD> |
---|
| 575 | </DL> |
---|
| 576 | <HR> |
---|
| 577 | |
---|
| 578 | <A NAME="cloneFileAttributes(org.apache.hadoop.fs.Path, org.apache.hadoop.fs.Path, org.apache.hadoop.util.Progressable)"><!-- --></A><H3> |
---|
| 579 | cloneFileAttributes</H3> |
---|
| 580 | <PRE> |
---|
| 581 | public <A HREF="../../../../org/apache/hadoop/io/SequenceFile.Writer.html" title="class in org.apache.hadoop.io">SequenceFile.Writer</A> <B>cloneFileAttributes</B>(<A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A> inputFile, |
---|
| 582 | <A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A> outputFile, |
---|
| 583 | <A HREF="../../../../org/apache/hadoop/util/Progressable.html" title="interface in org.apache.hadoop.util">Progressable</A> prog) |
---|
| 584 | 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> |
---|
| 585 | <DL> |
---|
| 586 | <DD>Clones the attributes (like compression of the input file and creates a |
---|
| 587 | corresponding Writer |
---|
| 588 | <P> |
---|
| 589 | <DD><DL> |
---|
| 590 | <DT><B>Parameters:</B><DD><CODE>inputFile</CODE> - the path of the input file whose attributes should be |
---|
| 591 | cloned<DD><CODE>outputFile</CODE> - the path of the output file<DD><CODE>prog</CODE> - the Progressable to report status during the file write |
---|
| 592 | <DT><B>Returns:</B><DD>Writer |
---|
| 593 | <DT><B>Throws:</B> |
---|
| 594 | <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> |
---|
| 595 | </DD> |
---|
| 596 | </DL> |
---|
| 597 | <HR> |
---|
| 598 | |
---|
| 599 | <A NAME="writeFile(org.apache.hadoop.io.SequenceFile.Sorter.RawKeyValueIterator, org.apache.hadoop.io.SequenceFile.Writer)"><!-- --></A><H3> |
---|
| 600 | writeFile</H3> |
---|
| 601 | <PRE> |
---|
| 602 | public void <B>writeFile</B>(<A HREF="../../../../org/apache/hadoop/io/SequenceFile.Sorter.RawKeyValueIterator.html" title="interface in org.apache.hadoop.io">SequenceFile.Sorter.RawKeyValueIterator</A> records, |
---|
| 603 | <A HREF="../../../../org/apache/hadoop/io/SequenceFile.Writer.html" title="class in org.apache.hadoop.io">SequenceFile.Writer</A> writer) |
---|
| 604 | 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> |
---|
| 605 | <DL> |
---|
| 606 | <DD>Writes records from RawKeyValueIterator into a file represented by the |
---|
| 607 | passed writer |
---|
| 608 | <P> |
---|
| 609 | <DD><DL> |
---|
| 610 | <DT><B>Parameters:</B><DD><CODE>records</CODE> - the RawKeyValueIterator<DD><CODE>writer</CODE> - the Writer created earlier |
---|
| 611 | <DT><B>Throws:</B> |
---|
| 612 | <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> |
---|
| 613 | </DD> |
---|
| 614 | </DL> |
---|
| 615 | <HR> |
---|
| 616 | |
---|
| 617 | <A NAME="merge(org.apache.hadoop.fs.Path[], org.apache.hadoop.fs.Path)"><!-- --></A><H3> |
---|
| 618 | merge</H3> |
---|
| 619 | <PRE> |
---|
| 620 | public void <B>merge</B>(<A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A>[] inFiles, |
---|
| 621 | <A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A> outFile) |
---|
| 622 | 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> |
---|
| 623 | <DL> |
---|
| 624 | <DD>Merge the provided files. |
---|
| 625 | <P> |
---|
| 626 | <DD><DL> |
---|
| 627 | <DT><B>Parameters:</B><DD><CODE>inFiles</CODE> - the array of input path names<DD><CODE>outFile</CODE> - the final output file |
---|
| 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 | <!-- ========= END OF CLASS DATA ========= --> |
---|
| 633 | <HR> |
---|
| 634 | |
---|
| 635 | |
---|
| 636 | <!-- ======= START OF BOTTOM NAVBAR ====== --> |
---|
| 637 | <A NAME="navbar_bottom"><!-- --></A> |
---|
| 638 | <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A> |
---|
| 639 | <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> |
---|
| 640 | <TR> |
---|
| 641 | <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> |
---|
| 642 | <A NAME="navbar_bottom_firstrow"><!-- --></A> |
---|
| 643 | <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> |
---|
| 644 | <TR ALIGN="center" VALIGN="top"> |
---|
| 645 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> |
---|
| 646 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> |
---|
| 647 | <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> |
---|
| 648 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/SequenceFile.Sorter.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> |
---|
| 649 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> |
---|
| 650 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> |
---|
| 651 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> |
---|
| 652 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> |
---|
| 653 | </TR> |
---|
| 654 | </TABLE> |
---|
| 655 | </TD> |
---|
| 656 | <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> |
---|
| 657 | </EM> |
---|
| 658 | </TD> |
---|
| 659 | </TR> |
---|
| 660 | |
---|
| 661 | <TR> |
---|
| 662 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
---|
| 663 | <A HREF="../../../../org/apache/hadoop/io/SequenceFile.Reader.html" title="class in org.apache.hadoop.io"><B>PREV CLASS</B></A> |
---|
| 664 | <A HREF="../../../../org/apache/hadoop/io/SequenceFile.Sorter.RawKeyValueIterator.html" title="interface in org.apache.hadoop.io"><B>NEXT CLASS</B></A></FONT></TD> |
---|
| 665 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
---|
| 666 | <A HREF="../../../../index.html?org/apache/hadoop/io/SequenceFile.Sorter.html" target="_top"><B>FRAMES</B></A> |
---|
| 667 | <A HREF="SequenceFile.Sorter.html" target="_top"><B>NO FRAMES</B></A> |
---|
| 668 | <SCRIPT type="text/javascript"> |
---|
| 669 | <!-- |
---|
| 670 | if(window==top) { |
---|
| 671 | document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>'); |
---|
| 672 | } |
---|
| 673 | //--> |
---|
| 674 | </SCRIPT> |
---|
| 675 | <NOSCRIPT> |
---|
| 676 | <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A> |
---|
| 677 | </NOSCRIPT> |
---|
| 678 | |
---|
| 679 | |
---|
| 680 | </FONT></TD> |
---|
| 681 | </TR> |
---|
| 682 | <TR> |
---|
| 683 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
---|
| 684 | SUMMARY: <A HREF="#nested_class_summary">NESTED</A> | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> |
---|
| 685 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
---|
| 686 | DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> |
---|
| 687 | </TR> |
---|
| 688 | </TABLE> |
---|
| 689 | <A NAME="skip-navbar_bottom"></A> |
---|
| 690 | <!-- ======== END OF BOTTOM NAVBAR ======= --> |
---|
| 691 | |
---|
| 692 | <HR> |
---|
| 693 | Copyright © 2009 The Apache Software Foundation |
---|
| 694 | </BODY> |
---|
| 695 | </HTML> |
---|