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:57 UTC 2009 --> |
---|
6 | <TITLE> |
---|
7 | CompositeInputFormat (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="CompositeInputFormat (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/CompositeInputFormat.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/join/ComposableRecordReader.html" title="interface in org.apache.hadoop.mapred.join"><B>PREV CLASS</B></A> |
---|
59 | <A HREF="../../../../../org/apache/hadoop/mapred/join/CompositeInputSplit.html" title="class in org.apache.hadoop.mapred.join"><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/join/CompositeInputFormat.html" target="_top"><B>FRAMES</B></A> |
---|
62 | <A HREF="CompositeInputFormat.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.mapred.join</FONT> |
---|
92 | <BR> |
---|
93 | Class CompositeInputFormat<K extends <A HREF="../../../../../org/apache/hadoop/io/WritableComparable.html" title="interface in org.apache.hadoop.io">WritableComparable</A>></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.join.CompositeInputFormat<K></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,<A HREF="../../../../../org/apache/hadoop/mapred/join/TupleWritable.html" title="class in org.apache.hadoop.mapred.join">TupleWritable</A>>, <A HREF="../../../../../org/apache/hadoop/mapred/join/ComposableInputFormat.html" title="interface in org.apache.hadoop.mapred.join">ComposableInputFormat</A><K,<A HREF="../../../../../org/apache/hadoop/mapred/join/TupleWritable.html" title="class in org.apache.hadoop.mapred.join">TupleWritable</A>></DD> |
---|
100 | </DL> |
---|
101 | <HR> |
---|
102 | <DL> |
---|
103 | <DT><PRE>public class <B>CompositeInputFormat<K extends <A HREF="../../../../../org/apache/hadoop/io/WritableComparable.html" title="interface in org.apache.hadoop.io">WritableComparable</A>></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/join/ComposableInputFormat.html" title="interface in org.apache.hadoop.mapred.join">ComposableInputFormat</A><K,<A HREF="../../../../../org/apache/hadoop/mapred/join/TupleWritable.html" title="class in org.apache.hadoop.mapred.join">TupleWritable</A>></DL> |
---|
104 | </PRE> |
---|
105 | |
---|
106 | <P> |
---|
107 | An InputFormat capable of performing joins over a set of data sources sorted |
---|
108 | and partitioned the same way. |
---|
109 | <P> |
---|
110 | |
---|
111 | <P> |
---|
112 | <DL> |
---|
113 | <DT><B>See Also:</B><DD><A HREF="../../../../../org/apache/hadoop/mapred/join/CompositeInputFormat.html#setFormat(org.apache.hadoop.mapred.JobConf)"><CODE>A user may define new join types by setting the property |
---|
114 | <tt>mapred.join.define.<ident></tt> to a classname. In the expression |
---|
115 | <tt>mapred.join.expr</tt>, the identifier will be assumed to be a |
---|
116 | ComposableRecordReader. |
---|
117 | <tt>mapred.join.keycomparator</tt> can be a classname used to compare keys |
---|
118 | in the join.</CODE></A>, |
---|
119 | <A HREF="../../../../../org/apache/hadoop/mapred/join/JoinRecordReader.html" title="class in org.apache.hadoop.mapred.join"><CODE>JoinRecordReader</CODE></A>, |
---|
120 | <A HREF="../../../../../org/apache/hadoop/mapred/join/MultiFilterRecordReader.html" title="class in org.apache.hadoop.mapred.join"><CODE>MultiFilterRecordReader</CODE></A></DL> |
---|
121 | <HR> |
---|
122 | |
---|
123 | <P> |
---|
124 | |
---|
125 | <!-- ======== CONSTRUCTOR SUMMARY ======== --> |
---|
126 | |
---|
127 | <A NAME="constructor_summary"><!-- --></A> |
---|
128 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
---|
129 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
---|
130 | <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> |
---|
131 | <B>Constructor Summary</B></FONT></TH> |
---|
132 | </TR> |
---|
133 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
134 | <TD><CODE><B><A HREF="../../../../../org/apache/hadoop/mapred/join/CompositeInputFormat.html#CompositeInputFormat()">CompositeInputFormat</A></B>()</CODE> |
---|
135 | |
---|
136 | <BR> |
---|
137 | </TD> |
---|
138 | </TR> |
---|
139 | </TABLE> |
---|
140 | |
---|
141 | <!-- ========== METHOD SUMMARY =========== --> |
---|
142 | |
---|
143 | <A NAME="method_summary"><!-- --></A> |
---|
144 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
---|
145 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
---|
146 | <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> |
---|
147 | <B>Method Summary</B></FONT></TH> |
---|
148 | </TR> |
---|
149 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
150 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
151 | <CODE>protected void</CODE></FONT></TD> |
---|
152 | <TD><CODE><B><A HREF="../../../../../org/apache/hadoop/mapred/join/CompositeInputFormat.html#addDefaults()">addDefaults</A></B>()</CODE> |
---|
153 | |
---|
154 | <BR> |
---|
155 | Adds the default set of identifiers to the parser.</TD> |
---|
156 | </TR> |
---|
157 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
158 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
159 | <CODE>static <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> |
---|
160 | <TD><CODE><B><A HREF="../../../../../org/apache/hadoop/mapred/join/CompositeInputFormat.html#compose(java.lang.Class, java.lang.String)">compose</A></B>(<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/mapred/InputFormat.html" title="interface in org.apache.hadoop.mapred">InputFormat</A>> inf, |
---|
161 | <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> path)</CODE> |
---|
162 | |
---|
163 | <BR> |
---|
164 | Convenience method for constructing composite formats.</TD> |
---|
165 | </TR> |
---|
166 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
167 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
168 | <CODE>static <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> |
---|
169 | <TD><CODE><B><A HREF="../../../../../org/apache/hadoop/mapred/join/CompositeInputFormat.html#compose(java.lang.String, java.lang.Class, org.apache.hadoop.fs.Path...)">compose</A></B>(<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> op, |
---|
170 | <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/mapred/InputFormat.html" title="interface in org.apache.hadoop.mapred">InputFormat</A>> inf, |
---|
171 | <A HREF="../../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A>... path)</CODE> |
---|
172 | |
---|
173 | <BR> |
---|
174 | Convenience method for constructing composite formats.</TD> |
---|
175 | </TR> |
---|
176 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
177 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
178 | <CODE>static <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> |
---|
179 | <TD><CODE><B><A HREF="../../../../../org/apache/hadoop/mapred/join/CompositeInputFormat.html#compose(java.lang.String, java.lang.Class, java.lang.String...)">compose</A></B>(<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> op, |
---|
180 | <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/mapred/InputFormat.html" title="interface in org.apache.hadoop.mapred">InputFormat</A>> inf, |
---|
181 | <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>... path)</CODE> |
---|
182 | |
---|
183 | <BR> |
---|
184 | Convenience method for constructing composite formats.</TD> |
---|
185 | </TR> |
---|
186 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
187 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
188 | <CODE> <A HREF="../../../../../org/apache/hadoop/mapred/join/ComposableRecordReader.html" title="interface in org.apache.hadoop.mapred.join">ComposableRecordReader</A><<A HREF="../../../../../org/apache/hadoop/mapred/join/CompositeInputFormat.html" title="type parameter in CompositeInputFormat">K</A>,<A HREF="../../../../../org/apache/hadoop/mapred/join/TupleWritable.html" title="class in org.apache.hadoop.mapred.join">TupleWritable</A>></CODE></FONT></TD> |
---|
189 | <TD><CODE><B><A HREF="../../../../../org/apache/hadoop/mapred/join/CompositeInputFormat.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, |
---|
190 | <A HREF="../../../../../org/apache/hadoop/mapred/JobConf.html" title="class in org.apache.hadoop.mapred">JobConf</A> job, |
---|
191 | <A HREF="../../../../../org/apache/hadoop/mapred/Reporter.html" title="interface in org.apache.hadoop.mapred">Reporter</A> reporter)</CODE> |
---|
192 | |
---|
193 | <BR> |
---|
194 | Construct a CompositeRecordReader for the children of this InputFormat |
---|
195 | as defined in the init expression.</TD> |
---|
196 | </TR> |
---|
197 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
198 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
199 | <CODE> <A HREF="../../../../../org/apache/hadoop/mapred/InputSplit.html" title="interface in org.apache.hadoop.mapred">InputSplit</A>[]</CODE></FONT></TD> |
---|
200 | <TD><CODE><B><A HREF="../../../../../org/apache/hadoop/mapred/join/CompositeInputFormat.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, |
---|
201 | int numSplits)</CODE> |
---|
202 | |
---|
203 | <BR> |
---|
204 | Build a CompositeInputSplit from the child InputFormats by assigning the |
---|
205 | ith split from each child to the ith composite split.</TD> |
---|
206 | </TR> |
---|
207 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
208 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
209 | <CODE> void</CODE></FONT></TD> |
---|
210 | <TD><CODE><B><A HREF="../../../../../org/apache/hadoop/mapred/join/CompositeInputFormat.html#setFormat(org.apache.hadoop.mapred.JobConf)">setFormat</A></B>(<A HREF="../../../../../org/apache/hadoop/mapred/JobConf.html" title="class in org.apache.hadoop.mapred">JobConf</A> job)</CODE> |
---|
211 | |
---|
212 | <BR> |
---|
213 | Interpret a given string as a composite expression.</TD> |
---|
214 | </TR> |
---|
215 | </TABLE> |
---|
216 | <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A> |
---|
217 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
---|
218 | <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> |
---|
219 | <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> |
---|
220 | </TR> |
---|
221 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
222 | <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> |
---|
223 | </TR> |
---|
224 | </TABLE> |
---|
225 | |
---|
226 | <P> |
---|
227 | |
---|
228 | <!-- ========= CONSTRUCTOR DETAIL ======== --> |
---|
229 | |
---|
230 | <A NAME="constructor_detail"><!-- --></A> |
---|
231 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
---|
232 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
---|
233 | <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> |
---|
234 | <B>Constructor Detail</B></FONT></TH> |
---|
235 | </TR> |
---|
236 | </TABLE> |
---|
237 | |
---|
238 | <A NAME="CompositeInputFormat()"><!-- --></A><H3> |
---|
239 | CompositeInputFormat</H3> |
---|
240 | <PRE> |
---|
241 | public <B>CompositeInputFormat</B>()</PRE> |
---|
242 | <DL> |
---|
243 | </DL> |
---|
244 | |
---|
245 | <!-- ============ METHOD DETAIL ========== --> |
---|
246 | |
---|
247 | <A NAME="method_detail"><!-- --></A> |
---|
248 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
---|
249 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
---|
250 | <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> |
---|
251 | <B>Method Detail</B></FONT></TH> |
---|
252 | </TR> |
---|
253 | </TABLE> |
---|
254 | |
---|
255 | <A NAME="setFormat(org.apache.hadoop.mapred.JobConf)"><!-- --></A><H3> |
---|
256 | setFormat</H3> |
---|
257 | <PRE> |
---|
258 | public void <B>setFormat</B>(<A HREF="../../../../../org/apache/hadoop/mapred/JobConf.html" title="class in org.apache.hadoop.mapred">JobConf</A> job) |
---|
259 | 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> |
---|
260 | <DL> |
---|
261 | <DD>Interpret a given string as a composite expression. |
---|
262 | <code>func ::= <ident>([<func>,]*<func>) |
---|
263 | func ::= tbl(<class>,"<path>") |
---|
264 | class ::= @see java.lang.Class#forName(java.lang.String) |
---|
265 | path ::= @see org.apache.hadoop.fs.Path#Path(java.lang.String) |
---|
266 | </code> |
---|
267 | Reads expression from the <tt>mapred.join.expr</tt> property and |
---|
268 | user-supplied join types from <tt>mapred.join.define.<ident></tt> |
---|
269 | types. Paths supplied to <tt>tbl</tt> are given as input paths to the |
---|
270 | InputFormat class listed. |
---|
271 | <P> |
---|
272 | <DD><DL> |
---|
273 | </DL> |
---|
274 | </DD> |
---|
275 | <DD><DL> |
---|
276 | |
---|
277 | <DT><B>Throws:</B> |
---|
278 | <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><DT><B>See Also:</B><DD><A HREF="../../../../../org/apache/hadoop/mapred/join/CompositeInputFormat.html#compose(java.lang.String, java.lang.Class, java.lang.String...)"><CODE>compose(java.lang.String, java.lang.Class, java.lang.String...)</CODE></A></DL> |
---|
279 | </DD> |
---|
280 | </DL> |
---|
281 | <HR> |
---|
282 | |
---|
283 | <A NAME="addDefaults()"><!-- --></A><H3> |
---|
284 | addDefaults</H3> |
---|
285 | <PRE> |
---|
286 | protected void <B>addDefaults</B>()</PRE> |
---|
287 | <DL> |
---|
288 | <DD>Adds the default set of identifiers to the parser. |
---|
289 | <P> |
---|
290 | <DD><DL> |
---|
291 | </DL> |
---|
292 | </DD> |
---|
293 | <DD><DL> |
---|
294 | </DL> |
---|
295 | </DD> |
---|
296 | </DL> |
---|
297 | <HR> |
---|
298 | |
---|
299 | <A NAME="getSplits(org.apache.hadoop.mapred.JobConf, int)"><!-- --></A><H3> |
---|
300 | getSplits</H3> |
---|
301 | <PRE> |
---|
302 | 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, |
---|
303 | int numSplits) |
---|
304 | 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> |
---|
305 | <DL> |
---|
306 | <DD>Build a CompositeInputSplit from the child InputFormats by assigning the |
---|
307 | ith split from each child to the ith composite split. |
---|
308 | <P> |
---|
309 | <DD><DL> |
---|
310 | <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/join/CompositeInputFormat.html" title="type parameter in CompositeInputFormat">K</A> extends <A HREF="../../../../../org/apache/hadoop/io/WritableComparable.html" title="interface in org.apache.hadoop.io">WritableComparable</A>,<A HREF="../../../../../org/apache/hadoop/mapred/join/TupleWritable.html" title="class in org.apache.hadoop.mapred.join">TupleWritable</A>></CODE></DL> |
---|
311 | </DD> |
---|
312 | <DD><DL> |
---|
313 | <DT><B>Parameters:</B><DD><CODE>job</CODE> - job configuration.<DD><CODE>numSplits</CODE> - the desired number of splits, a hint. |
---|
314 | <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. |
---|
315 | <DT><B>Throws:</B> |
---|
316 | <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> |
---|
317 | </DD> |
---|
318 | </DL> |
---|
319 | <HR> |
---|
320 | |
---|
321 | <A NAME="getRecordReader(org.apache.hadoop.mapred.InputSplit, org.apache.hadoop.mapred.JobConf, org.apache.hadoop.mapred.Reporter)"><!-- --></A><H3> |
---|
322 | getRecordReader</H3> |
---|
323 | <PRE> |
---|
324 | public <A HREF="../../../../../org/apache/hadoop/mapred/join/ComposableRecordReader.html" title="interface in org.apache.hadoop.mapred.join">ComposableRecordReader</A><<A HREF="../../../../../org/apache/hadoop/mapred/join/CompositeInputFormat.html" title="type parameter in CompositeInputFormat">K</A>,<A HREF="../../../../../org/apache/hadoop/mapred/join/TupleWritable.html" title="class in org.apache.hadoop.mapred.join">TupleWritable</A>> <B>getRecordReader</B>(<A HREF="../../../../../org/apache/hadoop/mapred/InputSplit.html" title="interface in org.apache.hadoop.mapred">InputSplit</A> split, |
---|
325 | <A HREF="../../../../../org/apache/hadoop/mapred/JobConf.html" title="class in org.apache.hadoop.mapred">JobConf</A> job, |
---|
326 | <A HREF="../../../../../org/apache/hadoop/mapred/Reporter.html" title="interface in org.apache.hadoop.mapred">Reporter</A> reporter) |
---|
327 | 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> |
---|
328 | <DL> |
---|
329 | <DD>Construct a CompositeRecordReader for the children of this InputFormat |
---|
330 | as defined in the init expression. |
---|
331 | The outermost join need only be composable, not necessarily a composite. |
---|
332 | Mandating TupleWritable isn't strictly correct. |
---|
333 | <P> |
---|
334 | <DD><DL> |
---|
335 | <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/join/CompositeInputFormat.html" title="type parameter in CompositeInputFormat">K</A> extends <A HREF="../../../../../org/apache/hadoop/io/WritableComparable.html" title="interface in org.apache.hadoop.io">WritableComparable</A>,<A HREF="../../../../../org/apache/hadoop/mapred/join/TupleWritable.html" title="class in org.apache.hadoop.mapred.join">TupleWritable</A>></CODE><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../org/apache/hadoop/mapred/join/ComposableInputFormat.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/join/ComposableInputFormat.html" title="interface in org.apache.hadoop.mapred.join">ComposableInputFormat</A><<A HREF="../../../../../org/apache/hadoop/mapred/join/CompositeInputFormat.html" title="type parameter in CompositeInputFormat">K</A> extends <A HREF="../../../../../org/apache/hadoop/io/WritableComparable.html" title="interface in org.apache.hadoop.io">WritableComparable</A>,<A HREF="../../../../../org/apache/hadoop/mapred/join/TupleWritable.html" title="class in org.apache.hadoop.mapred.join">TupleWritable</A>></CODE></DL> |
---|
336 | </DD> |
---|
337 | <DD><DL> |
---|
338 | <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 |
---|
339 | <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> |
---|
340 | <DT><B>Throws:</B> |
---|
341 | <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> |
---|
342 | </DD> |
---|
343 | </DL> |
---|
344 | <HR> |
---|
345 | |
---|
346 | <A NAME="compose(java.lang.Class, java.lang.String)"><!-- --></A><H3> |
---|
347 | compose</H3> |
---|
348 | <PRE> |
---|
349 | public static <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>compose</B>(<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/mapred/InputFormat.html" title="interface in org.apache.hadoop.mapred">InputFormat</A>> inf, |
---|
350 | <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> path)</PRE> |
---|
351 | <DL> |
---|
352 | <DD>Convenience method for constructing composite formats. |
---|
353 | Given InputFormat class (inf), path (p) return: |
---|
354 | <code>tbl(<inf>, <p>) </code> |
---|
355 | <P> |
---|
356 | <DD><DL> |
---|
357 | </DL> |
---|
358 | </DD> |
---|
359 | <DD><DL> |
---|
360 | </DL> |
---|
361 | </DD> |
---|
362 | </DL> |
---|
363 | <HR> |
---|
364 | |
---|
365 | <A NAME="compose(java.lang.String, java.lang.Class, java.lang.String...)"><!-- --></A><H3> |
---|
366 | compose</H3> |
---|
367 | <PRE> |
---|
368 | public static <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>compose</B>(<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> op, |
---|
369 | <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/mapred/InputFormat.html" title="interface in org.apache.hadoop.mapred">InputFormat</A>> inf, |
---|
370 | <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>... path)</PRE> |
---|
371 | <DL> |
---|
372 | <DD>Convenience method for constructing composite formats. |
---|
373 | Given operation (op), Object class (inf), set of paths (p) return: |
---|
374 | <code><op>(tbl(<inf>,<p1>),tbl(<inf>,<p2>),...,tbl(<inf>,<pn>)) </code> |
---|
375 | <P> |
---|
376 | <DD><DL> |
---|
377 | </DL> |
---|
378 | </DD> |
---|
379 | <DD><DL> |
---|
380 | </DL> |
---|
381 | </DD> |
---|
382 | </DL> |
---|
383 | <HR> |
---|
384 | |
---|
385 | <A NAME="compose(java.lang.String, java.lang.Class, org.apache.hadoop.fs.Path...)"><!-- --></A><H3> |
---|
386 | compose</H3> |
---|
387 | <PRE> |
---|
388 | public static <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>compose</B>(<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> op, |
---|
389 | <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/mapred/InputFormat.html" title="interface in org.apache.hadoop.mapred">InputFormat</A>> inf, |
---|
390 | <A HREF="../../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A>... path)</PRE> |
---|
391 | <DL> |
---|
392 | <DD>Convenience method for constructing composite formats. |
---|
393 | Given operation (op), Object class (inf), set of paths (p) return: |
---|
394 | <code><op>(tbl(<inf>,<p1>),tbl(<inf>,<p2>),...,tbl(<inf>,<pn>)) </code> |
---|
395 | <P> |
---|
396 | <DD><DL> |
---|
397 | </DL> |
---|
398 | </DD> |
---|
399 | <DD><DL> |
---|
400 | </DL> |
---|
401 | </DD> |
---|
402 | </DL> |
---|
403 | <!-- ========= END OF CLASS DATA ========= --> |
---|
404 | <HR> |
---|
405 | |
---|
406 | |
---|
407 | <!-- ======= START OF BOTTOM NAVBAR ====== --> |
---|
408 | <A NAME="navbar_bottom"><!-- --></A> |
---|
409 | <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A> |
---|
410 | <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> |
---|
411 | <TR> |
---|
412 | <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> |
---|
413 | <A NAME="navbar_bottom_firstrow"><!-- --></A> |
---|
414 | <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> |
---|
415 | <TR ALIGN="center" VALIGN="top"> |
---|
416 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> |
---|
417 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> |
---|
418 | <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> |
---|
419 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/CompositeInputFormat.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> |
---|
420 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> |
---|
421 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> |
---|
422 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> |
---|
423 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> |
---|
424 | </TR> |
---|
425 | </TABLE> |
---|
426 | </TD> |
---|
427 | <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> |
---|
428 | </EM> |
---|
429 | </TD> |
---|
430 | </TR> |
---|
431 | |
---|
432 | <TR> |
---|
433 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
---|
434 | <A HREF="../../../../../org/apache/hadoop/mapred/join/ComposableRecordReader.html" title="interface in org.apache.hadoop.mapred.join"><B>PREV CLASS</B></A> |
---|
435 | <A HREF="../../../../../org/apache/hadoop/mapred/join/CompositeInputSplit.html" title="class in org.apache.hadoop.mapred.join"><B>NEXT CLASS</B></A></FONT></TD> |
---|
436 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
---|
437 | <A HREF="../../../../../index.html?org/apache/hadoop/mapred/join/CompositeInputFormat.html" target="_top"><B>FRAMES</B></A> |
---|
438 | <A HREF="CompositeInputFormat.html" target="_top"><B>NO FRAMES</B></A> |
---|
439 | <SCRIPT type="text/javascript"> |
---|
440 | <!-- |
---|
441 | if(window==top) { |
---|
442 | document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>'); |
---|
443 | } |
---|
444 | //--> |
---|
445 | </SCRIPT> |
---|
446 | <NOSCRIPT> |
---|
447 | <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A> |
---|
448 | </NOSCRIPT> |
---|
449 | |
---|
450 | |
---|
451 | </FONT></TD> |
---|
452 | </TR> |
---|
453 | <TR> |
---|
454 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
---|
455 | SUMMARY: NESTED | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> |
---|
456 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
---|
457 | DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> |
---|
458 | </TR> |
---|
459 | </TABLE> |
---|
460 | <A NAME="skip-navbar_bottom"></A> |
---|
461 | <!-- ======== END OF BOTTOM NAVBAR ======= --> |
---|
462 | |
---|
463 | <HR> |
---|
464 | Copyright © 2009 The Apache Software Foundation |
---|
465 | </BODY> |
---|
466 | </HTML> |
---|