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 | InputFormat (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="InputFormat (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/InputFormat.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/mapreduce/ID.html" title="class in org.apache.hadoop.mapreduce"><B>PREV CLASS</B></A> |
---|
59 | <A HREF="../../../../org/apache/hadoop/mapreduce/InputSplit.html" title="class in org.apache.hadoop.mapreduce"><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/InputFormat.html" target="_top"><B>FRAMES</B></A> |
---|
62 | <A HREF="InputFormat.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</FONT> |
---|
92 | <BR> |
---|
93 | Class InputFormat<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.mapreduce.InputFormat<K,V></B> |
---|
97 | </PRE> |
---|
98 | <DL> |
---|
99 | <DT><B>Direct Known Subclasses:</B> <DD><A HREF="../../../../org/apache/hadoop/mapreduce/lib/input/FileInputFormat.html" title="class in org.apache.hadoop.mapreduce.lib.input">FileInputFormat</A></DD> |
---|
100 | </DL> |
---|
101 | <HR> |
---|
102 | <DL> |
---|
103 | <DT><PRE>public abstract class <B>InputFormat<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></DL> |
---|
104 | </PRE> |
---|
105 | |
---|
106 | <P> |
---|
107 | <code>InputFormat</code> describes the input-specification for a |
---|
108 | Map-Reduce job. |
---|
109 | |
---|
110 | <p>The Map-Reduce framework relies on the <code>InputFormat</code> of the |
---|
111 | job to:<p> |
---|
112 | <ol> |
---|
113 | <li> |
---|
114 | Validate the input-specification of the job. |
---|
115 | <li> |
---|
116 | Split-up the input file(s) into logical <A HREF="../../../../org/apache/hadoop/mapreduce/InputSplit.html" title="class in org.apache.hadoop.mapreduce"><CODE>InputSplit</CODE></A>s, each of |
---|
117 | which is then assigned to an individual <A HREF="../../../../org/apache/hadoop/mapreduce/Mapper.html" title="class in org.apache.hadoop.mapreduce"><CODE>Mapper</CODE></A>. |
---|
118 | </li> |
---|
119 | <li> |
---|
120 | Provide the <A HREF="../../../../org/apache/hadoop/mapreduce/RecordReader.html" title="class in org.apache.hadoop.mapreduce"><CODE>RecordReader</CODE></A> implementation to be used to glean |
---|
121 | input records from the logical <code>InputSplit</code> for processing by |
---|
122 | the <A HREF="../../../../org/apache/hadoop/mapreduce/Mapper.html" title="class in org.apache.hadoop.mapreduce"><CODE>Mapper</CODE></A>. |
---|
123 | </li> |
---|
124 | </ol> |
---|
125 | |
---|
126 | <p>The default behavior of file-based <A HREF="../../../../org/apache/hadoop/mapreduce/InputFormat.html" title="class in org.apache.hadoop.mapreduce"><CODE>InputFormat</CODE></A>s, typically |
---|
127 | sub-classes of <A HREF="../../../../org/apache/hadoop/mapreduce/lib/input/FileInputFormat.html" title="class in org.apache.hadoop.mapreduce.lib.input"><CODE>FileInputFormat</CODE></A>, is to split the |
---|
128 | input into <i>logical</i> <A HREF="../../../../org/apache/hadoop/mapreduce/InputSplit.html" title="class in org.apache.hadoop.mapreduce"><CODE>InputSplit</CODE></A>s based on the total size, in |
---|
129 | bytes, of the input files. However, the <A HREF="../../../../org/apache/hadoop/fs/FileSystem.html" title="class in org.apache.hadoop.fs"><CODE>FileSystem</CODE></A> blocksize of |
---|
130 | the input files is treated as an upper bound for input splits. A lower bound |
---|
131 | on the split size can be set via |
---|
132 | <a href="../../../../../mapred-default.html#mapred.min.split.size"> |
---|
133 | mapred.min.split.size</a>.</p> |
---|
134 | |
---|
135 | <p>Clearly, logical splits based on input-size is insufficient for many |
---|
136 | applications since record boundaries are to respected. In such cases, the |
---|
137 | application has to also implement a <A HREF="../../../../org/apache/hadoop/mapreduce/RecordReader.html" title="class in org.apache.hadoop.mapreduce"><CODE>RecordReader</CODE></A> on whom lies the |
---|
138 | responsibility to respect record-boundaries and present a record-oriented |
---|
139 | view of the logical <code>InputSplit</code> to the individual task. |
---|
140 | <P> |
---|
141 | |
---|
142 | <P> |
---|
143 | <DL> |
---|
144 | <DT><B>See Also:</B><DD><A HREF="../../../../org/apache/hadoop/mapreduce/InputSplit.html" title="class in org.apache.hadoop.mapreduce"><CODE>InputSplit</CODE></A>, |
---|
145 | <A HREF="../../../../org/apache/hadoop/mapreduce/RecordReader.html" title="class in org.apache.hadoop.mapreduce"><CODE>RecordReader</CODE></A>, |
---|
146 | <A HREF="../../../../org/apache/hadoop/mapreduce/lib/input/FileInputFormat.html" title="class in org.apache.hadoop.mapreduce.lib.input"><CODE>FileInputFormat</CODE></A></DL> |
---|
147 | <HR> |
---|
148 | |
---|
149 | <P> |
---|
150 | |
---|
151 | <!-- ======== CONSTRUCTOR SUMMARY ======== --> |
---|
152 | |
---|
153 | <A NAME="constructor_summary"><!-- --></A> |
---|
154 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
---|
155 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
---|
156 | <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> |
---|
157 | <B>Constructor Summary</B></FONT></TH> |
---|
158 | </TR> |
---|
159 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
160 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/mapreduce/InputFormat.html#InputFormat()">InputFormat</A></B>()</CODE> |
---|
161 | |
---|
162 | <BR> |
---|
163 | </TD> |
---|
164 | </TR> |
---|
165 | </TABLE> |
---|
166 | |
---|
167 | <!-- ========== METHOD SUMMARY =========== --> |
---|
168 | |
---|
169 | <A NAME="method_summary"><!-- --></A> |
---|
170 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
---|
171 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
---|
172 | <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> |
---|
173 | <B>Method Summary</B></FONT></TH> |
---|
174 | </TR> |
---|
175 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
176 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
177 | <CODE>abstract <A HREF="../../../../org/apache/hadoop/mapreduce/RecordReader.html" title="class in org.apache.hadoop.mapreduce">RecordReader</A><<A HREF="../../../../org/apache/hadoop/mapreduce/InputFormat.html" title="type parameter in InputFormat">K</A>,<A HREF="../../../../org/apache/hadoop/mapreduce/InputFormat.html" title="type parameter in InputFormat">V</A>></CODE></FONT></TD> |
---|
178 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/mapreduce/InputFormat.html#createRecordReader(org.apache.hadoop.mapreduce.InputSplit, org.apache.hadoop.mapreduce.TaskAttemptContext)">createRecordReader</A></B>(<A HREF="../../../../org/apache/hadoop/mapreduce/InputSplit.html" title="class in org.apache.hadoop.mapreduce">InputSplit</A> split, |
---|
179 | <A HREF="../../../../org/apache/hadoop/mapreduce/TaskAttemptContext.html" title="class in org.apache.hadoop.mapreduce">TaskAttemptContext</A> context)</CODE> |
---|
180 | |
---|
181 | <BR> |
---|
182 | Create a record reader for a given split.</TD> |
---|
183 | </TR> |
---|
184 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
185 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
186 | <CODE>abstract <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> |
---|
187 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/mapreduce/InputFormat.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> context)</CODE> |
---|
188 | |
---|
189 | <BR> |
---|
190 | Logically split the set of input files for the job.</TD> |
---|
191 | </TR> |
---|
192 | </TABLE> |
---|
193 | <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A> |
---|
194 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
---|
195 | <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> |
---|
196 | <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> |
---|
197 | </TR> |
---|
198 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
199 | <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> |
---|
200 | </TR> |
---|
201 | </TABLE> |
---|
202 | |
---|
203 | <P> |
---|
204 | |
---|
205 | <!-- ========= CONSTRUCTOR DETAIL ======== --> |
---|
206 | |
---|
207 | <A NAME="constructor_detail"><!-- --></A> |
---|
208 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
---|
209 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
---|
210 | <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> |
---|
211 | <B>Constructor Detail</B></FONT></TH> |
---|
212 | </TR> |
---|
213 | </TABLE> |
---|
214 | |
---|
215 | <A NAME="InputFormat()"><!-- --></A><H3> |
---|
216 | InputFormat</H3> |
---|
217 | <PRE> |
---|
218 | public <B>InputFormat</B>()</PRE> |
---|
219 | <DL> |
---|
220 | </DL> |
---|
221 | |
---|
222 | <!-- ============ METHOD DETAIL ========== --> |
---|
223 | |
---|
224 | <A NAME="method_detail"><!-- --></A> |
---|
225 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
---|
226 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
---|
227 | <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> |
---|
228 | <B>Method Detail</B></FONT></TH> |
---|
229 | </TR> |
---|
230 | </TABLE> |
---|
231 | |
---|
232 | <A NAME="getSplits(org.apache.hadoop.mapreduce.JobContext)"><!-- --></A><H3> |
---|
233 | getSplits</H3> |
---|
234 | <PRE> |
---|
235 | public abstract <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> context) |
---|
236 | 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>, |
---|
237 | <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/InterruptedException.html?is-external=true" title="class or interface in java.lang">InterruptedException</A></PRE> |
---|
238 | <DL> |
---|
239 | <DD>Logically split the set of input files for the job. |
---|
240 | |
---|
241 | <p>Each <A HREF="../../../../org/apache/hadoop/mapreduce/InputSplit.html" title="class in org.apache.hadoop.mapreduce"><CODE>InputSplit</CODE></A> is then assigned to an individual <A HREF="../../../../org/apache/hadoop/mapreduce/Mapper.html" title="class in org.apache.hadoop.mapreduce"><CODE>Mapper</CODE></A> |
---|
242 | for processing.</p> |
---|
243 | |
---|
244 | <p><i>Note</i>: The split is a <i>logical</i> split of the inputs and the |
---|
245 | input files are not physically split into chunks. For e.g. a split could |
---|
246 | be <i><input-file-path, start, offset></i> tuple. The InputFormat |
---|
247 | also creates the <A HREF="../../../../org/apache/hadoop/mapreduce/RecordReader.html" title="class in org.apache.hadoop.mapreduce"><CODE>RecordReader</CODE></A> to read the <A HREF="../../../../org/apache/hadoop/mapreduce/InputSplit.html" title="class in org.apache.hadoop.mapreduce"><CODE>InputSplit</CODE></A>. |
---|
248 | <P> |
---|
249 | <DD><DL> |
---|
250 | <DT><B>Parameters:</B><DD><CODE>context</CODE> - job configuration. |
---|
251 | <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. |
---|
252 | <DT><B>Throws:</B> |
---|
253 | <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> |
---|
254 | <DD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/lang/InterruptedException.html?is-external=true" title="class or interface in java.lang">InterruptedException</A></CODE></DL> |
---|
255 | </DD> |
---|
256 | </DL> |
---|
257 | <HR> |
---|
258 | |
---|
259 | <A NAME="createRecordReader(org.apache.hadoop.mapreduce.InputSplit, org.apache.hadoop.mapreduce.TaskAttemptContext)"><!-- --></A><H3> |
---|
260 | createRecordReader</H3> |
---|
261 | <PRE> |
---|
262 | public abstract <A HREF="../../../../org/apache/hadoop/mapreduce/RecordReader.html" title="class in org.apache.hadoop.mapreduce">RecordReader</A><<A HREF="../../../../org/apache/hadoop/mapreduce/InputFormat.html" title="type parameter in InputFormat">K</A>,<A HREF="../../../../org/apache/hadoop/mapreduce/InputFormat.html" title="type parameter in InputFormat">V</A>> <B>createRecordReader</B>(<A HREF="../../../../org/apache/hadoop/mapreduce/InputSplit.html" title="class in org.apache.hadoop.mapreduce">InputSplit</A> split, |
---|
263 | <A HREF="../../../../org/apache/hadoop/mapreduce/TaskAttemptContext.html" title="class in org.apache.hadoop.mapreduce">TaskAttemptContext</A> context) |
---|
264 | 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>, |
---|
265 | <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/InterruptedException.html?is-external=true" title="class or interface in java.lang">InterruptedException</A></PRE> |
---|
266 | <DL> |
---|
267 | <DD>Create a record reader for a given split. The framework will call |
---|
268 | <A HREF="../../../../org/apache/hadoop/mapreduce/RecordReader.html#initialize(org.apache.hadoop.mapreduce.InputSplit, org.apache.hadoop.mapreduce.TaskAttemptContext)"><CODE>RecordReader.initialize(InputSplit, TaskAttemptContext)</CODE></A> before |
---|
269 | the split is used. |
---|
270 | <P> |
---|
271 | <DD><DL> |
---|
272 | <DT><B>Parameters:</B><DD><CODE>split</CODE> - the split to be read<DD><CODE>context</CODE> - the information about the task |
---|
273 | <DT><B>Returns:</B><DD>a new record reader |
---|
274 | <DT><B>Throws:</B> |
---|
275 | <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> |
---|
276 | <DD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/lang/InterruptedException.html?is-external=true" title="class or interface in java.lang">InterruptedException</A></CODE></DL> |
---|
277 | </DD> |
---|
278 | </DL> |
---|
279 | <!-- ========= END OF CLASS DATA ========= --> |
---|
280 | <HR> |
---|
281 | |
---|
282 | |
---|
283 | <!-- ======= START OF BOTTOM NAVBAR ====== --> |
---|
284 | <A NAME="navbar_bottom"><!-- --></A> |
---|
285 | <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A> |
---|
286 | <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> |
---|
287 | <TR> |
---|
288 | <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> |
---|
289 | <A NAME="navbar_bottom_firstrow"><!-- --></A> |
---|
290 | <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> |
---|
291 | <TR ALIGN="center" VALIGN="top"> |
---|
292 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> |
---|
293 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> |
---|
294 | <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> |
---|
295 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/InputFormat.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> |
---|
296 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> |
---|
297 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> |
---|
298 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> |
---|
299 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> |
---|
300 | </TR> |
---|
301 | </TABLE> |
---|
302 | </TD> |
---|
303 | <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> |
---|
304 | </EM> |
---|
305 | </TD> |
---|
306 | </TR> |
---|
307 | |
---|
308 | <TR> |
---|
309 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
---|
310 | <A HREF="../../../../org/apache/hadoop/mapreduce/ID.html" title="class in org.apache.hadoop.mapreduce"><B>PREV CLASS</B></A> |
---|
311 | <A HREF="../../../../org/apache/hadoop/mapreduce/InputSplit.html" title="class in org.apache.hadoop.mapreduce"><B>NEXT CLASS</B></A></FONT></TD> |
---|
312 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
---|
313 | <A HREF="../../../../index.html?org/apache/hadoop/mapreduce/InputFormat.html" target="_top"><B>FRAMES</B></A> |
---|
314 | <A HREF="InputFormat.html" target="_top"><B>NO FRAMES</B></A> |
---|
315 | <SCRIPT type="text/javascript"> |
---|
316 | <!-- |
---|
317 | if(window==top) { |
---|
318 | document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>'); |
---|
319 | } |
---|
320 | //--> |
---|
321 | </SCRIPT> |
---|
322 | <NOSCRIPT> |
---|
323 | <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A> |
---|
324 | </NOSCRIPT> |
---|
325 | |
---|
326 | |
---|
327 | </FONT></TD> |
---|
328 | </TR> |
---|
329 | <TR> |
---|
330 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
---|
331 | SUMMARY: NESTED | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> |
---|
332 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
---|
333 | DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> |
---|
334 | </TR> |
---|
335 | </TABLE> |
---|
336 | <A NAME="skip-navbar_bottom"></A> |
---|
337 | <!-- ======== END OF BOTTOM NAVBAR ======= --> |
---|
338 | |
---|
339 | <HR> |
---|
340 | Copyright © 2009 The Apache Software Foundation |
---|
341 | </BODY> |
---|
342 | </HTML> |
---|