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