[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:58 UTC 2009 --> |
---|
| 6 | <TITLE> |
---|
| 7 | FileInputFormat (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="FileInputFormat (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/FileInputFormat.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 | PREV CLASS |
---|
| 59 | <A HREF="../../../../../../org/apache/hadoop/mapreduce/lib/input/FileSplit.html" title="class in org.apache.hadoop.mapreduce.lib.input"><B>NEXT CLASS</B></A></FONT></TD> |
---|
| 60 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
---|
| 61 | <A HREF="../../../../../../index.html?org/apache/hadoop/mapreduce/lib/input/FileInputFormat.html" target="_top"><B>FRAMES</B></A> |
---|
| 62 | <A HREF="FileInputFormat.html" target="_top"><B>NO FRAMES</B></A> |
---|
| 63 | <SCRIPT type="text/javascript"> |
---|
| 64 | <!-- |
---|
| 65 | if(window==top) { |
---|
| 66 | document.writeln('<A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A>'); |
---|
| 67 | } |
---|
| 68 | //--> |
---|
| 69 | </SCRIPT> |
---|
| 70 | <NOSCRIPT> |
---|
| 71 | <A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A> |
---|
| 72 | </NOSCRIPT> |
---|
| 73 | |
---|
| 74 | |
---|
| 75 | </FONT></TD> |
---|
| 76 | </TR> |
---|
| 77 | <TR> |
---|
| 78 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
---|
| 79 | SUMMARY: NESTED | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> |
---|
| 80 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
---|
| 81 | DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> |
---|
| 82 | </TR> |
---|
| 83 | </TABLE> |
---|
| 84 | <A NAME="skip-navbar_top"></A> |
---|
| 85 | <!-- ========= END OF TOP NAVBAR ========= --> |
---|
| 86 | |
---|
| 87 | <HR> |
---|
| 88 | <!-- ======== START OF CLASS DATA ======== --> |
---|
| 89 | <H2> |
---|
| 90 | <FONT SIZE="-1"> |
---|
| 91 | org.apache.hadoop.mapreduce.lib.input</FONT> |
---|
| 92 | <BR> |
---|
| 93 | Class FileInputFormat<K,V></H2> |
---|
| 94 | <PRE> |
---|
| 95 | <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</A> |
---|
| 96 | <IMG SRC="../../../../../../resources/inherit.gif" ALT="extended by "><A HREF="../../../../../../org/apache/hadoop/mapreduce/InputFormat.html" title="class in org.apache.hadoop.mapreduce">org.apache.hadoop.mapreduce.InputFormat</A><K,V> |
---|
| 97 | <IMG SRC="../../../../../../resources/inherit.gif" ALT="extended by "><B>org.apache.hadoop.mapreduce.lib.input.FileInputFormat<K,V></B> |
---|
| 98 | </PRE> |
---|
| 99 | <DL> |
---|
| 100 | <DT><B>Direct Known Subclasses:</B> <DD><A HREF="../../../../../../org/apache/hadoop/mapreduce/lib/input/SequenceFileInputFormat.html" title="class in org.apache.hadoop.mapreduce.lib.input">SequenceFileInputFormat</A>, <A HREF="../../../../../../org/apache/hadoop/mapreduce/lib/input/TextInputFormat.html" title="class in org.apache.hadoop.mapreduce.lib.input">TextInputFormat</A></DD> |
---|
| 101 | </DL> |
---|
| 102 | <HR> |
---|
| 103 | <DL> |
---|
| 104 | <DT><PRE>public abstract class <B>FileInputFormat<K,V></B><DT>extends <A HREF="../../../../../../org/apache/hadoop/mapreduce/InputFormat.html" title="class in org.apache.hadoop.mapreduce">InputFormat</A><K,V></DL> |
---|
| 105 | </PRE> |
---|
| 106 | |
---|
| 107 | <P> |
---|
| 108 | A base class for file-based <A HREF="../../../../../../org/apache/hadoop/mapreduce/InputFormat.html" title="class in org.apache.hadoop.mapreduce"><CODE>InputFormat</CODE></A>s. |
---|
| 109 | |
---|
| 110 | <p><code>FileInputFormat</code> is the base class for all file-based |
---|
| 111 | <code>InputFormat</code>s. This provides a generic implementation of |
---|
| 112 | <A HREF="../../../../../../org/apache/hadoop/mapreduce/lib/input/FileInputFormat.html#getSplits(org.apache.hadoop.mapreduce.JobContext)"><CODE>getSplits(JobContext)</CODE></A>. |
---|
| 113 | Subclasses of <code>FileInputFormat</code> can also override the |
---|
| 114 | <A HREF="../../../../../../org/apache/hadoop/mapreduce/lib/input/FileInputFormat.html#isSplitable(org.apache.hadoop.mapreduce.JobContext, org.apache.hadoop.fs.Path)"><CODE>isSplitable(JobContext, Path)</CODE></A> method to ensure input-files are |
---|
| 115 | not split-up and are processed as a whole by <A HREF="../../../../../../org/apache/hadoop/mapreduce/Mapper.html" title="class in org.apache.hadoop.mapreduce"><CODE>Mapper</CODE></A>s. |
---|
| 116 | <P> |
---|
| 117 | |
---|
| 118 | <P> |
---|
| 119 | <HR> |
---|
| 120 | |
---|
| 121 | <P> |
---|
| 122 | |
---|
| 123 | <!-- ======== CONSTRUCTOR SUMMARY ======== --> |
---|
| 124 | |
---|
| 125 | <A NAME="constructor_summary"><!-- --></A> |
---|
| 126 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
---|
| 127 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
---|
| 128 | <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> |
---|
| 129 | <B>Constructor Summary</B></FONT></TH> |
---|
| 130 | </TR> |
---|
| 131 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 132 | <TD><CODE><B><A HREF="../../../../../../org/apache/hadoop/mapreduce/lib/input/FileInputFormat.html#FileInputFormat()">FileInputFormat</A></B>()</CODE> |
---|
| 133 | |
---|
| 134 | <BR> |
---|
| 135 | </TD> |
---|
| 136 | </TR> |
---|
| 137 | </TABLE> |
---|
| 138 | |
---|
| 139 | <!-- ========== METHOD SUMMARY =========== --> |
---|
| 140 | |
---|
| 141 | <A NAME="method_summary"><!-- --></A> |
---|
| 142 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
---|
| 143 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
---|
| 144 | <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> |
---|
| 145 | <B>Method Summary</B></FONT></TH> |
---|
| 146 | </TR> |
---|
| 147 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 148 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 149 | <CODE>static void</CODE></FONT></TD> |
---|
| 150 | <TD><CODE><B><A HREF="../../../../../../org/apache/hadoop/mapreduce/lib/input/FileInputFormat.html#addInputPath(org.apache.hadoop.mapreduce.Job, org.apache.hadoop.fs.Path)">addInputPath</A></B>(<A HREF="../../../../../../org/apache/hadoop/mapreduce/Job.html" title="class in org.apache.hadoop.mapreduce">Job</A> job, |
---|
| 151 | <A HREF="../../../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A> path)</CODE> |
---|
| 152 | |
---|
| 153 | <BR> |
---|
| 154 | Add a <A HREF="../../../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs"><CODE>Path</CODE></A> to the list of inputs for the map-reduce job.</TD> |
---|
| 155 | </TR> |
---|
| 156 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 157 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 158 | <CODE>static void</CODE></FONT></TD> |
---|
| 159 | <TD><CODE><B><A HREF="../../../../../../org/apache/hadoop/mapreduce/lib/input/FileInputFormat.html#addInputPaths(org.apache.hadoop.mapreduce.Job, java.lang.String)">addInputPaths</A></B>(<A HREF="../../../../../../org/apache/hadoop/mapreduce/Job.html" title="class in org.apache.hadoop.mapreduce">Job</A> job, |
---|
| 160 | <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> commaSeparatedPaths)</CODE> |
---|
| 161 | |
---|
| 162 | <BR> |
---|
| 163 | Add the given comma separated paths to the list of inputs for |
---|
| 164 | the map-reduce job.</TD> |
---|
| 165 | </TR> |
---|
| 166 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 167 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 168 | <CODE>protected long</CODE></FONT></TD> |
---|
| 169 | <TD><CODE><B><A HREF="../../../../../../org/apache/hadoop/mapreduce/lib/input/FileInputFormat.html#computeSplitSize(long, long, long)">computeSplitSize</A></B>(long blockSize, |
---|
| 170 | long minSize, |
---|
| 171 | long maxSize)</CODE> |
---|
| 172 | |
---|
| 173 | <BR> |
---|
| 174 | </TD> |
---|
| 175 | </TR> |
---|
| 176 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 177 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 178 | <CODE>protected int</CODE></FONT></TD> |
---|
| 179 | <TD><CODE><B><A HREF="../../../../../../org/apache/hadoop/mapreduce/lib/input/FileInputFormat.html#getBlockIndex(org.apache.hadoop.fs.BlockLocation[], long)">getBlockIndex</A></B>(<A HREF="../../../../../../org/apache/hadoop/fs/BlockLocation.html" title="class in org.apache.hadoop.fs">BlockLocation</A>[] blkLocations, |
---|
| 180 | long offset)</CODE> |
---|
| 181 | |
---|
| 182 | <BR> |
---|
| 183 | </TD> |
---|
| 184 | </TR> |
---|
| 185 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 186 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 187 | <CODE>protected long</CODE></FONT></TD> |
---|
| 188 | <TD><CODE><B><A HREF="../../../../../../org/apache/hadoop/mapreduce/lib/input/FileInputFormat.html#getFormatMinSplitSize()">getFormatMinSplitSize</A></B>()</CODE> |
---|
| 189 | |
---|
| 190 | <BR> |
---|
| 191 | Get the lower bound on split size imposed by the format.</TD> |
---|
| 192 | </TR> |
---|
| 193 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 194 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 195 | <CODE>static <A HREF="../../../../../../org/apache/hadoop/fs/PathFilter.html" title="interface in org.apache.hadoop.fs">PathFilter</A></CODE></FONT></TD> |
---|
| 196 | <TD><CODE><B><A HREF="../../../../../../org/apache/hadoop/mapreduce/lib/input/FileInputFormat.html#getInputPathFilter(org.apache.hadoop.mapreduce.JobContext)">getInputPathFilter</A></B>(<A HREF="../../../../../../org/apache/hadoop/mapreduce/JobContext.html" title="class in org.apache.hadoop.mapreduce">JobContext</A> context)</CODE> |
---|
| 197 | |
---|
| 198 | <BR> |
---|
| 199 | Get a PathFilter instance of the filter set for the input paths.</TD> |
---|
| 200 | </TR> |
---|
| 201 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 202 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 203 | <CODE>static <A HREF="../../../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A>[]</CODE></FONT></TD> |
---|
| 204 | <TD><CODE><B><A HREF="../../../../../../org/apache/hadoop/mapreduce/lib/input/FileInputFormat.html#getInputPaths(org.apache.hadoop.mapreduce.JobContext)">getInputPaths</A></B>(<A HREF="../../../../../../org/apache/hadoop/mapreduce/JobContext.html" title="class in org.apache.hadoop.mapreduce">JobContext</A> context)</CODE> |
---|
| 205 | |
---|
| 206 | <BR> |
---|
| 207 | Get the list of input <A HREF="../../../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs"><CODE>Path</CODE></A>s for the map-reduce job.</TD> |
---|
| 208 | </TR> |
---|
| 209 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 210 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 211 | <CODE>static long</CODE></FONT></TD> |
---|
| 212 | <TD><CODE><B><A HREF="../../../../../../org/apache/hadoop/mapreduce/lib/input/FileInputFormat.html#getMaxSplitSize(org.apache.hadoop.mapreduce.JobContext)">getMaxSplitSize</A></B>(<A HREF="../../../../../../org/apache/hadoop/mapreduce/JobContext.html" title="class in org.apache.hadoop.mapreduce">JobContext</A> context)</CODE> |
---|
| 213 | |
---|
| 214 | <BR> |
---|
| 215 | Get the maximum split size.</TD> |
---|
| 216 | </TR> |
---|
| 217 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 218 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 219 | <CODE>static long</CODE></FONT></TD> |
---|
| 220 | <TD><CODE><B><A HREF="../../../../../../org/apache/hadoop/mapreduce/lib/input/FileInputFormat.html#getMinSplitSize(org.apache.hadoop.mapreduce.JobContext)">getMinSplitSize</A></B>(<A HREF="../../../../../../org/apache/hadoop/mapreduce/JobContext.html" title="class in org.apache.hadoop.mapreduce">JobContext</A> job)</CODE> |
---|
| 221 | |
---|
| 222 | <BR> |
---|
| 223 | Get the minimum split size</TD> |
---|
| 224 | </TR> |
---|
| 225 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 226 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 227 | <CODE> <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/mapreduce/InputSplit.html" title="class in org.apache.hadoop.mapreduce">InputSplit</A>></CODE></FONT></TD> |
---|
| 228 | <TD><CODE><B><A HREF="../../../../../../org/apache/hadoop/mapreduce/lib/input/FileInputFormat.html#getSplits(org.apache.hadoop.mapreduce.JobContext)">getSplits</A></B>(<A HREF="../../../../../../org/apache/hadoop/mapreduce/JobContext.html" title="class in org.apache.hadoop.mapreduce">JobContext</A> job)</CODE> |
---|
| 229 | |
---|
| 230 | <BR> |
---|
| 231 | Generate the list of files and make them into FileSplits.</TD> |
---|
| 232 | </TR> |
---|
| 233 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 234 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 235 | <CODE>protected boolean</CODE></FONT></TD> |
---|
| 236 | <TD><CODE><B><A HREF="../../../../../../org/apache/hadoop/mapreduce/lib/input/FileInputFormat.html#isSplitable(org.apache.hadoop.mapreduce.JobContext, org.apache.hadoop.fs.Path)">isSplitable</A></B>(<A HREF="../../../../../../org/apache/hadoop/mapreduce/JobContext.html" title="class in org.apache.hadoop.mapreduce">JobContext</A> context, |
---|
| 237 | <A HREF="../../../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A> filename)</CODE> |
---|
| 238 | |
---|
| 239 | <BR> |
---|
| 240 | Is the given filename splitable? Usually, true, but if the file is |
---|
| 241 | stream compressed, it will not be.</TD> |
---|
| 242 | </TR> |
---|
| 243 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 244 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 245 | <CODE>protected <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/fs/FileStatus.html" title="class in org.apache.hadoop.fs">FileStatus</A>></CODE></FONT></TD> |
---|
| 246 | <TD><CODE><B><A HREF="../../../../../../org/apache/hadoop/mapreduce/lib/input/FileInputFormat.html#listStatus(org.apache.hadoop.mapreduce.JobContext)">listStatus</A></B>(<A HREF="../../../../../../org/apache/hadoop/mapreduce/JobContext.html" title="class in org.apache.hadoop.mapreduce">JobContext</A> job)</CODE> |
---|
| 247 | |
---|
| 248 | <BR> |
---|
| 249 | List input directories.</TD> |
---|
| 250 | </TR> |
---|
| 251 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 252 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 253 | <CODE>static void</CODE></FONT></TD> |
---|
| 254 | <TD><CODE><B><A HREF="../../../../../../org/apache/hadoop/mapreduce/lib/input/FileInputFormat.html#setInputPathFilter(org.apache.hadoop.mapreduce.Job, java.lang.Class)">setInputPathFilter</A></B>(<A HREF="../../../../../../org/apache/hadoop/mapreduce/Job.html" title="class in org.apache.hadoop.mapreduce">Job</A> job, |
---|
| 255 | <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/fs/PathFilter.html" title="interface in org.apache.hadoop.fs">PathFilter</A>> filter)</CODE> |
---|
| 256 | |
---|
| 257 | <BR> |
---|
| 258 | Set a PathFilter to be applied to the input paths for the map-reduce job.</TD> |
---|
| 259 | </TR> |
---|
| 260 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 261 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 262 | <CODE>static void</CODE></FONT></TD> |
---|
| 263 | <TD><CODE><B><A HREF="../../../../../../org/apache/hadoop/mapreduce/lib/input/FileInputFormat.html#setInputPaths(org.apache.hadoop.mapreduce.Job, org.apache.hadoop.fs.Path...)">setInputPaths</A></B>(<A HREF="../../../../../../org/apache/hadoop/mapreduce/Job.html" title="class in org.apache.hadoop.mapreduce">Job</A> job, |
---|
| 264 | <A HREF="../../../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A>... inputPaths)</CODE> |
---|
| 265 | |
---|
| 266 | <BR> |
---|
| 267 | Set the array of <A HREF="../../../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs"><CODE>Path</CODE></A>s as the list of inputs |
---|
| 268 | for the map-reduce job.</TD> |
---|
| 269 | </TR> |
---|
| 270 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 271 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 272 | <CODE>static void</CODE></FONT></TD> |
---|
| 273 | <TD><CODE><B><A HREF="../../../../../../org/apache/hadoop/mapreduce/lib/input/FileInputFormat.html#setInputPaths(org.apache.hadoop.mapreduce.Job, java.lang.String)">setInputPaths</A></B>(<A HREF="../../../../../../org/apache/hadoop/mapreduce/Job.html" title="class in org.apache.hadoop.mapreduce">Job</A> job, |
---|
| 274 | <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> commaSeparatedPaths)</CODE> |
---|
| 275 | |
---|
| 276 | <BR> |
---|
| 277 | Sets the given comma separated paths as the list of inputs |
---|
| 278 | for the map-reduce job.</TD> |
---|
| 279 | </TR> |
---|
| 280 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 281 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 282 | <CODE>static void</CODE></FONT></TD> |
---|
| 283 | <TD><CODE><B><A HREF="../../../../../../org/apache/hadoop/mapreduce/lib/input/FileInputFormat.html#setMaxInputSplitSize(org.apache.hadoop.mapreduce.Job, long)">setMaxInputSplitSize</A></B>(<A HREF="../../../../../../org/apache/hadoop/mapreduce/Job.html" title="class in org.apache.hadoop.mapreduce">Job</A> job, |
---|
| 284 | long size)</CODE> |
---|
| 285 | |
---|
| 286 | <BR> |
---|
| 287 | Set the maximum split size</TD> |
---|
| 288 | </TR> |
---|
| 289 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 290 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 291 | <CODE>static void</CODE></FONT></TD> |
---|
| 292 | <TD><CODE><B><A HREF="../../../../../../org/apache/hadoop/mapreduce/lib/input/FileInputFormat.html#setMinInputSplitSize(org.apache.hadoop.mapreduce.Job, long)">setMinInputSplitSize</A></B>(<A HREF="../../../../../../org/apache/hadoop/mapreduce/Job.html" title="class in org.apache.hadoop.mapreduce">Job</A> job, |
---|
| 293 | long size)</CODE> |
---|
| 294 | |
---|
| 295 | <BR> |
---|
| 296 | Set the minimum input split size</TD> |
---|
| 297 | </TR> |
---|
| 298 | </TABLE> |
---|
| 299 | <A NAME="methods_inherited_from_class_org.apache.hadoop.mapreduce.InputFormat"><!-- --></A> |
---|
| 300 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
---|
| 301 | <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> |
---|
| 302 | <TH ALIGN="left"><B>Methods inherited from class org.apache.hadoop.mapreduce.<A HREF="../../../../../../org/apache/hadoop/mapreduce/InputFormat.html" title="class in org.apache.hadoop.mapreduce">InputFormat</A></B></TH> |
---|
| 303 | </TR> |
---|
| 304 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 305 | <TD><CODE><A HREF="../../../../../../org/apache/hadoop/mapreduce/InputFormat.html#createRecordReader(org.apache.hadoop.mapreduce.InputSplit, org.apache.hadoop.mapreduce.TaskAttemptContext)">createRecordReader</A></CODE></TD> |
---|
| 306 | </TR> |
---|
| 307 | </TABLE> |
---|
| 308 | <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A> |
---|
| 309 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
---|
| 310 | <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> |
---|
| 311 | <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> |
---|
| 312 | </TR> |
---|
| 313 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 314 | <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> |
---|
| 315 | </TR> |
---|
| 316 | </TABLE> |
---|
| 317 | |
---|
| 318 | <P> |
---|
| 319 | |
---|
| 320 | <!-- ========= CONSTRUCTOR DETAIL ======== --> |
---|
| 321 | |
---|
| 322 | <A NAME="constructor_detail"><!-- --></A> |
---|
| 323 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
---|
| 324 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
---|
| 325 | <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> |
---|
| 326 | <B>Constructor Detail</B></FONT></TH> |
---|
| 327 | </TR> |
---|
| 328 | </TABLE> |
---|
| 329 | |
---|
| 330 | <A NAME="FileInputFormat()"><!-- --></A><H3> |
---|
| 331 | FileInputFormat</H3> |
---|
| 332 | <PRE> |
---|
| 333 | public <B>FileInputFormat</B>()</PRE> |
---|
| 334 | <DL> |
---|
| 335 | </DL> |
---|
| 336 | |
---|
| 337 | <!-- ============ METHOD DETAIL ========== --> |
---|
| 338 | |
---|
| 339 | <A NAME="method_detail"><!-- --></A> |
---|
| 340 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
---|
| 341 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
---|
| 342 | <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> |
---|
| 343 | <B>Method Detail</B></FONT></TH> |
---|
| 344 | </TR> |
---|
| 345 | </TABLE> |
---|
| 346 | |
---|
| 347 | <A NAME="getFormatMinSplitSize()"><!-- --></A><H3> |
---|
| 348 | getFormatMinSplitSize</H3> |
---|
| 349 | <PRE> |
---|
| 350 | protected long <B>getFormatMinSplitSize</B>()</PRE> |
---|
| 351 | <DL> |
---|
| 352 | <DD>Get the lower bound on split size imposed by the format. |
---|
| 353 | <P> |
---|
| 354 | <DD><DL> |
---|
| 355 | |
---|
| 356 | <DT><B>Returns:</B><DD>the number of bytes of the minimal split for this format</DL> |
---|
| 357 | </DD> |
---|
| 358 | </DL> |
---|
| 359 | <HR> |
---|
| 360 | |
---|
| 361 | <A NAME="isSplitable(org.apache.hadoop.mapreduce.JobContext, org.apache.hadoop.fs.Path)"><!-- --></A><H3> |
---|
| 362 | isSplitable</H3> |
---|
| 363 | <PRE> |
---|
| 364 | protected boolean <B>isSplitable</B>(<A HREF="../../../../../../org/apache/hadoop/mapreduce/JobContext.html" title="class in org.apache.hadoop.mapreduce">JobContext</A> context, |
---|
| 365 | <A HREF="../../../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A> filename)</PRE> |
---|
| 366 | <DL> |
---|
| 367 | <DD>Is the given filename splitable? Usually, true, but if the file is |
---|
| 368 | stream compressed, it will not be. |
---|
| 369 | |
---|
| 370 | <code>FileInputFormat</code> implementations can override this and return |
---|
| 371 | <code>false</code> to ensure that individual input files are never split-up |
---|
| 372 | so that <A HREF="../../../../../../org/apache/hadoop/mapreduce/Mapper.html" title="class in org.apache.hadoop.mapreduce"><CODE>Mapper</CODE></A>s process entire files. |
---|
| 373 | <P> |
---|
| 374 | <DD><DL> |
---|
| 375 | <DT><B>Parameters:</B><DD><CODE>context</CODE> - the job context<DD><CODE>filename</CODE> - the file name to check |
---|
| 376 | <DT><B>Returns:</B><DD>is this file splitable?</DL> |
---|
| 377 | </DD> |
---|
| 378 | </DL> |
---|
| 379 | <HR> |
---|
| 380 | |
---|
| 381 | <A NAME="setInputPathFilter(org.apache.hadoop.mapreduce.Job, java.lang.Class)"><!-- --></A><H3> |
---|
| 382 | setInputPathFilter</H3> |
---|
| 383 | <PRE> |
---|
| 384 | public static void <B>setInputPathFilter</B>(<A HREF="../../../../../../org/apache/hadoop/mapreduce/Job.html" title="class in org.apache.hadoop.mapreduce">Job</A> job, |
---|
| 385 | <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/fs/PathFilter.html" title="interface in org.apache.hadoop.fs">PathFilter</A>> filter)</PRE> |
---|
| 386 | <DL> |
---|
| 387 | <DD>Set a PathFilter to be applied to the input paths for the map-reduce job. |
---|
| 388 | <P> |
---|
| 389 | <DD><DL> |
---|
| 390 | <DT><B>Parameters:</B><DD><CODE>job</CODE> - the job to modify<DD><CODE>filter</CODE> - the PathFilter class use for filtering the input paths.</DL> |
---|
| 391 | </DD> |
---|
| 392 | </DL> |
---|
| 393 | <HR> |
---|
| 394 | |
---|
| 395 | <A NAME="setMinInputSplitSize(org.apache.hadoop.mapreduce.Job, long)"><!-- --></A><H3> |
---|
| 396 | setMinInputSplitSize</H3> |
---|
| 397 | <PRE> |
---|
| 398 | public static void <B>setMinInputSplitSize</B>(<A HREF="../../../../../../org/apache/hadoop/mapreduce/Job.html" title="class in org.apache.hadoop.mapreduce">Job</A> job, |
---|
| 399 | long size)</PRE> |
---|
| 400 | <DL> |
---|
| 401 | <DD>Set the minimum input split size |
---|
| 402 | <P> |
---|
| 403 | <DD><DL> |
---|
| 404 | <DT><B>Parameters:</B><DD><CODE>job</CODE> - the job to modify<DD><CODE>size</CODE> - the minimum size</DL> |
---|
| 405 | </DD> |
---|
| 406 | </DL> |
---|
| 407 | <HR> |
---|
| 408 | |
---|
| 409 | <A NAME="getMinSplitSize(org.apache.hadoop.mapreduce.JobContext)"><!-- --></A><H3> |
---|
| 410 | getMinSplitSize</H3> |
---|
| 411 | <PRE> |
---|
| 412 | public static long <B>getMinSplitSize</B>(<A HREF="../../../../../../org/apache/hadoop/mapreduce/JobContext.html" title="class in org.apache.hadoop.mapreduce">JobContext</A> job)</PRE> |
---|
| 413 | <DL> |
---|
| 414 | <DD>Get the minimum split size |
---|
| 415 | <P> |
---|
| 416 | <DD><DL> |
---|
| 417 | <DT><B>Parameters:</B><DD><CODE>job</CODE> - the job |
---|
| 418 | <DT><B>Returns:</B><DD>the minimum number of bytes that can be in a split</DL> |
---|
| 419 | </DD> |
---|
| 420 | </DL> |
---|
| 421 | <HR> |
---|
| 422 | |
---|
| 423 | <A NAME="setMaxInputSplitSize(org.apache.hadoop.mapreduce.Job, long)"><!-- --></A><H3> |
---|
| 424 | setMaxInputSplitSize</H3> |
---|
| 425 | <PRE> |
---|
| 426 | public static void <B>setMaxInputSplitSize</B>(<A HREF="../../../../../../org/apache/hadoop/mapreduce/Job.html" title="class in org.apache.hadoop.mapreduce">Job</A> job, |
---|
| 427 | long size)</PRE> |
---|
| 428 | <DL> |
---|
| 429 | <DD>Set the maximum split size |
---|
| 430 | <P> |
---|
| 431 | <DD><DL> |
---|
| 432 | <DT><B>Parameters:</B><DD><CODE>job</CODE> - the job to modify<DD><CODE>size</CODE> - the maximum split size</DL> |
---|
| 433 | </DD> |
---|
| 434 | </DL> |
---|
| 435 | <HR> |
---|
| 436 | |
---|
| 437 | <A NAME="getMaxSplitSize(org.apache.hadoop.mapreduce.JobContext)"><!-- --></A><H3> |
---|
| 438 | getMaxSplitSize</H3> |
---|
| 439 | <PRE> |
---|
| 440 | public static long <B>getMaxSplitSize</B>(<A HREF="../../../../../../org/apache/hadoop/mapreduce/JobContext.html" title="class in org.apache.hadoop.mapreduce">JobContext</A> context)</PRE> |
---|
| 441 | <DL> |
---|
| 442 | <DD>Get the maximum split size. |
---|
| 443 | <P> |
---|
| 444 | <DD><DL> |
---|
| 445 | <DT><B>Parameters:</B><DD><CODE>context</CODE> - the job to look at. |
---|
| 446 | <DT><B>Returns:</B><DD>the maximum number of bytes a split can include</DL> |
---|
| 447 | </DD> |
---|
| 448 | </DL> |
---|
| 449 | <HR> |
---|
| 450 | |
---|
| 451 | <A NAME="getInputPathFilter(org.apache.hadoop.mapreduce.JobContext)"><!-- --></A><H3> |
---|
| 452 | getInputPathFilter</H3> |
---|
| 453 | <PRE> |
---|
| 454 | public static <A HREF="../../../../../../org/apache/hadoop/fs/PathFilter.html" title="interface in org.apache.hadoop.fs">PathFilter</A> <B>getInputPathFilter</B>(<A HREF="../../../../../../org/apache/hadoop/mapreduce/JobContext.html" title="class in org.apache.hadoop.mapreduce">JobContext</A> context)</PRE> |
---|
| 455 | <DL> |
---|
| 456 | <DD>Get a PathFilter instance of the filter set for the input paths. |
---|
| 457 | <P> |
---|
| 458 | <DD><DL> |
---|
| 459 | |
---|
| 460 | <DT><B>Returns:</B><DD>the PathFilter instance set for the job, NULL if none has been set.</DL> |
---|
| 461 | </DD> |
---|
| 462 | </DL> |
---|
| 463 | <HR> |
---|
| 464 | |
---|
| 465 | <A NAME="listStatus(org.apache.hadoop.mapreduce.JobContext)"><!-- --></A><H3> |
---|
| 466 | listStatus</H3> |
---|
| 467 | <PRE> |
---|
| 468 | protected <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/fs/FileStatus.html" title="class in org.apache.hadoop.fs">FileStatus</A>> <B>listStatus</B>(<A HREF="../../../../../../org/apache/hadoop/mapreduce/JobContext.html" title="class in org.apache.hadoop.mapreduce">JobContext</A> job) |
---|
| 469 | 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> |
---|
| 470 | <DL> |
---|
| 471 | <DD>List input directories. |
---|
| 472 | Subclasses may override to, e.g., select only files matching a regular |
---|
| 473 | expression. |
---|
| 474 | <P> |
---|
| 475 | <DD><DL> |
---|
| 476 | <DT><B>Parameters:</B><DD><CODE>job</CODE> - the job to list input paths for |
---|
| 477 | <DT><B>Returns:</B><DD>array of FileStatus objects |
---|
| 478 | <DT><B>Throws:</B> |
---|
| 479 | <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> - if zero items.</DL> |
---|
| 480 | </DD> |
---|
| 481 | </DL> |
---|
| 482 | <HR> |
---|
| 483 | |
---|
| 484 | <A NAME="getSplits(org.apache.hadoop.mapreduce.JobContext)"><!-- --></A><H3> |
---|
| 485 | getSplits</H3> |
---|
| 486 | <PRE> |
---|
| 487 | public <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/mapreduce/InputSplit.html" title="class in org.apache.hadoop.mapreduce">InputSplit</A>> <B>getSplits</B>(<A HREF="../../../../../../org/apache/hadoop/mapreduce/JobContext.html" title="class in org.apache.hadoop.mapreduce">JobContext</A> job) |
---|
| 488 | 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> |
---|
| 489 | <DL> |
---|
| 490 | <DD>Generate the list of files and make them into FileSplits. |
---|
| 491 | <P> |
---|
| 492 | <DD><DL> |
---|
| 493 | <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../../org/apache/hadoop/mapreduce/InputFormat.html#getSplits(org.apache.hadoop.mapreduce.JobContext)">getSplits</A></CODE> in class <CODE><A HREF="../../../../../../org/apache/hadoop/mapreduce/InputFormat.html" title="class in org.apache.hadoop.mapreduce">InputFormat</A><<A HREF="../../../../../../org/apache/hadoop/mapreduce/lib/input/FileInputFormat.html" title="type parameter in FileInputFormat">K</A>,<A HREF="../../../../../../org/apache/hadoop/mapreduce/lib/input/FileInputFormat.html" title="type parameter in FileInputFormat">V</A>></CODE></DL> |
---|
| 494 | </DD> |
---|
| 495 | <DD><DL> |
---|
| 496 | <DT><B>Parameters:</B><DD><CODE>job</CODE> - job configuration. |
---|
| 497 | <DT><B>Returns:</B><DD>an array of <A HREF="../../../../../../org/apache/hadoop/mapreduce/InputSplit.html" title="class in org.apache.hadoop.mapreduce"><CODE>InputSplit</CODE></A>s for the job. |
---|
| 498 | <DT><B>Throws:</B> |
---|
| 499 | <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> |
---|
| 500 | </DD> |
---|
| 501 | </DL> |
---|
| 502 | <HR> |
---|
| 503 | |
---|
| 504 | <A NAME="computeSplitSize(long, long, long)"><!-- --></A><H3> |
---|
| 505 | computeSplitSize</H3> |
---|
| 506 | <PRE> |
---|
| 507 | protected long <B>computeSplitSize</B>(long blockSize, |
---|
| 508 | long minSize, |
---|
| 509 | long maxSize)</PRE> |
---|
| 510 | <DL> |
---|
| 511 | <DD><DL> |
---|
| 512 | </DL> |
---|
| 513 | </DD> |
---|
| 514 | </DL> |
---|
| 515 | <HR> |
---|
| 516 | |
---|
| 517 | <A NAME="getBlockIndex(org.apache.hadoop.fs.BlockLocation[], long)"><!-- --></A><H3> |
---|
| 518 | getBlockIndex</H3> |
---|
| 519 | <PRE> |
---|
| 520 | protected int <B>getBlockIndex</B>(<A HREF="../../../../../../org/apache/hadoop/fs/BlockLocation.html" title="class in org.apache.hadoop.fs">BlockLocation</A>[] blkLocations, |
---|
| 521 | long offset)</PRE> |
---|
| 522 | <DL> |
---|
| 523 | <DD><DL> |
---|
| 524 | </DL> |
---|
| 525 | </DD> |
---|
| 526 | </DL> |
---|
| 527 | <HR> |
---|
| 528 | |
---|
| 529 | <A NAME="setInputPaths(org.apache.hadoop.mapreduce.Job, java.lang.String)"><!-- --></A><H3> |
---|
| 530 | setInputPaths</H3> |
---|
| 531 | <PRE> |
---|
| 532 | public static void <B>setInputPaths</B>(<A HREF="../../../../../../org/apache/hadoop/mapreduce/Job.html" title="class in org.apache.hadoop.mapreduce">Job</A> job, |
---|
| 533 | <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> commaSeparatedPaths) |
---|
| 534 | 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> |
---|
| 535 | <DL> |
---|
| 536 | <DD>Sets the given comma separated paths as the list of inputs |
---|
| 537 | for the map-reduce job. |
---|
| 538 | <P> |
---|
| 539 | <DD><DL> |
---|
| 540 | <DT><B>Parameters:</B><DD><CODE>job</CODE> - the job<DD><CODE>commaSeparatedPaths</CODE> - Comma separated paths to be set as |
---|
| 541 | the list of inputs for the map-reduce job. |
---|
| 542 | <DT><B>Throws:</B> |
---|
| 543 | <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> |
---|
| 544 | </DD> |
---|
| 545 | </DL> |
---|
| 546 | <HR> |
---|
| 547 | |
---|
| 548 | <A NAME="addInputPaths(org.apache.hadoop.mapreduce.Job, java.lang.String)"><!-- --></A><H3> |
---|
| 549 | addInputPaths</H3> |
---|
| 550 | <PRE> |
---|
| 551 | public static void <B>addInputPaths</B>(<A HREF="../../../../../../org/apache/hadoop/mapreduce/Job.html" title="class in org.apache.hadoop.mapreduce">Job</A> job, |
---|
| 552 | <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> commaSeparatedPaths) |
---|
| 553 | 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> |
---|
| 554 | <DL> |
---|
| 555 | <DD>Add the given comma separated paths to the list of inputs for |
---|
| 556 | the map-reduce job. |
---|
| 557 | <P> |
---|
| 558 | <DD><DL> |
---|
| 559 | <DT><B>Parameters:</B><DD><CODE>job</CODE> - The job to modify<DD><CODE>commaSeparatedPaths</CODE> - Comma separated paths to be added to |
---|
| 560 | the list of inputs for the map-reduce job. |
---|
| 561 | <DT><B>Throws:</B> |
---|
| 562 | <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> |
---|
| 563 | </DD> |
---|
| 564 | </DL> |
---|
| 565 | <HR> |
---|
| 566 | |
---|
| 567 | <A NAME="setInputPaths(org.apache.hadoop.mapreduce.Job, org.apache.hadoop.fs.Path...)"><!-- --></A><H3> |
---|
| 568 | setInputPaths</H3> |
---|
| 569 | <PRE> |
---|
| 570 | public static void <B>setInputPaths</B>(<A HREF="../../../../../../org/apache/hadoop/mapreduce/Job.html" title="class in org.apache.hadoop.mapreduce">Job</A> job, |
---|
| 571 | <A HREF="../../../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A>... inputPaths) |
---|
| 572 | 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> |
---|
| 573 | <DL> |
---|
| 574 | <DD>Set the array of <A HREF="../../../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs"><CODE>Path</CODE></A>s as the list of inputs |
---|
| 575 | for the map-reduce job. |
---|
| 576 | <P> |
---|
| 577 | <DD><DL> |
---|
| 578 | <DT><B>Parameters:</B><DD><CODE>job</CODE> - The job to modify<DD><CODE>inputPaths</CODE> - the <A HREF="../../../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs"><CODE>Path</CODE></A>s of the input directories/files |
---|
| 579 | for the map-reduce job. |
---|
| 580 | <DT><B>Throws:</B> |
---|
| 581 | <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> |
---|
| 582 | </DD> |
---|
| 583 | </DL> |
---|
| 584 | <HR> |
---|
| 585 | |
---|
| 586 | <A NAME="addInputPath(org.apache.hadoop.mapreduce.Job, org.apache.hadoop.fs.Path)"><!-- --></A><H3> |
---|
| 587 | addInputPath</H3> |
---|
| 588 | <PRE> |
---|
| 589 | public static void <B>addInputPath</B>(<A HREF="../../../../../../org/apache/hadoop/mapreduce/Job.html" title="class in org.apache.hadoop.mapreduce">Job</A> job, |
---|
| 590 | <A HREF="../../../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A> path) |
---|
| 591 | 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> |
---|
| 592 | <DL> |
---|
| 593 | <DD>Add a <A HREF="../../../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs"><CODE>Path</CODE></A> to the list of inputs for the map-reduce job. |
---|
| 594 | <P> |
---|
| 595 | <DD><DL> |
---|
| 596 | <DT><B>Parameters:</B><DD><CODE>job</CODE> - The <A HREF="../../../../../../org/apache/hadoop/mapreduce/Job.html" title="class in org.apache.hadoop.mapreduce"><CODE>Job</CODE></A> to modify<DD><CODE>path</CODE> - <A HREF="../../../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs"><CODE>Path</CODE></A> to be added to the list of inputs for |
---|
| 597 | the map-reduce job. |
---|
| 598 | <DT><B>Throws:</B> |
---|
| 599 | <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> |
---|
| 600 | </DD> |
---|
| 601 | </DL> |
---|
| 602 | <HR> |
---|
| 603 | |
---|
| 604 | <A NAME="getInputPaths(org.apache.hadoop.mapreduce.JobContext)"><!-- --></A><H3> |
---|
| 605 | getInputPaths</H3> |
---|
| 606 | <PRE> |
---|
| 607 | public static <A HREF="../../../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A>[] <B>getInputPaths</B>(<A HREF="../../../../../../org/apache/hadoop/mapreduce/JobContext.html" title="class in org.apache.hadoop.mapreduce">JobContext</A> context)</PRE> |
---|
| 608 | <DL> |
---|
| 609 | <DD>Get the list of input <A HREF="../../../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs"><CODE>Path</CODE></A>s for the map-reduce job. |
---|
| 610 | <P> |
---|
| 611 | <DD><DL> |
---|
| 612 | <DT><B>Parameters:</B><DD><CODE>context</CODE> - The job |
---|
| 613 | <DT><B>Returns:</B><DD>the list of input <A HREF="../../../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs"><CODE>Path</CODE></A>s for the map-reduce job.</DL> |
---|
| 614 | </DD> |
---|
| 615 | </DL> |
---|
| 616 | <!-- ========= END OF CLASS DATA ========= --> |
---|
| 617 | <HR> |
---|
| 618 | |
---|
| 619 | |
---|
| 620 | <!-- ======= START OF BOTTOM NAVBAR ====== --> |
---|
| 621 | <A NAME="navbar_bottom"><!-- --></A> |
---|
| 622 | <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A> |
---|
| 623 | <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> |
---|
| 624 | <TR> |
---|
| 625 | <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> |
---|
| 626 | <A NAME="navbar_bottom_firstrow"><!-- --></A> |
---|
| 627 | <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> |
---|
| 628 | <TR ALIGN="center" VALIGN="top"> |
---|
| 629 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> |
---|
| 630 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> |
---|
| 631 | <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> |
---|
| 632 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/FileInputFormat.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> |
---|
| 633 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> |
---|
| 634 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> |
---|
| 635 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> |
---|
| 636 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> |
---|
| 637 | </TR> |
---|
| 638 | </TABLE> |
---|
| 639 | </TD> |
---|
| 640 | <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> |
---|
| 641 | </EM> |
---|
| 642 | </TD> |
---|
| 643 | </TR> |
---|
| 644 | |
---|
| 645 | <TR> |
---|
| 646 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
---|
| 647 | PREV CLASS |
---|
| 648 | <A HREF="../../../../../../org/apache/hadoop/mapreduce/lib/input/FileSplit.html" title="class in org.apache.hadoop.mapreduce.lib.input"><B>NEXT CLASS</B></A></FONT></TD> |
---|
| 649 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
---|
| 650 | <A HREF="../../../../../../index.html?org/apache/hadoop/mapreduce/lib/input/FileInputFormat.html" target="_top"><B>FRAMES</B></A> |
---|
| 651 | <A HREF="FileInputFormat.html" target="_top"><B>NO FRAMES</B></A> |
---|
| 652 | <SCRIPT type="text/javascript"> |
---|
| 653 | <!-- |
---|
| 654 | if(window==top) { |
---|
| 655 | document.writeln('<A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A>'); |
---|
| 656 | } |
---|
| 657 | //--> |
---|
| 658 | </SCRIPT> |
---|
| 659 | <NOSCRIPT> |
---|
| 660 | <A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A> |
---|
| 661 | </NOSCRIPT> |
---|
| 662 | |
---|
| 663 | |
---|
| 664 | </FONT></TD> |
---|
| 665 | </TR> |
---|
| 666 | <TR> |
---|
| 667 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
---|
| 668 | SUMMARY: NESTED | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> |
---|
| 669 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
---|
| 670 | DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> |
---|
| 671 | </TR> |
---|
| 672 | </TABLE> |
---|
| 673 | <A NAME="skip-navbar_bottom"></A> |
---|
| 674 | <!-- ======== END OF BOTTOM NAVBAR ======= --> |
---|
| 675 | |
---|
| 676 | <HR> |
---|
| 677 | Copyright © 2009 The Apache Software Foundation |
---|
| 678 | </BODY> |
---|
| 679 | </HTML> |
---|