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 | MultipleOutputs (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="MultipleOutputs (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/MultipleOutputs.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/lib/MultipleOutputFormat.html" title="class in org.apache.hadoop.mapred.lib"><B>PREV CLASS</B></A> |
---|
59 | <A HREF="../../../../../org/apache/hadoop/mapred/lib/MultipleSequenceFileOutputFormat.html" title="class in org.apache.hadoop.mapred.lib"><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/lib/MultipleOutputs.html" target="_top"><B>FRAMES</B></A> |
---|
62 | <A HREF="MultipleOutputs.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.lib</FONT> |
---|
92 | <BR> |
---|
93 | Class MultipleOutputs</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.lib.MultipleOutputs</B> |
---|
97 | </PRE> |
---|
98 | <HR> |
---|
99 | <DL> |
---|
100 | <DT><PRE>public class <B>MultipleOutputs</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> |
---|
101 | </PRE> |
---|
102 | |
---|
103 | <P> |
---|
104 | The MultipleOutputs class simplifies writting to additional outputs other |
---|
105 | than the job default output via the <code>OutputCollector</code> passed to |
---|
106 | the <code>map()</code> and <code>reduce()</code> methods of the |
---|
107 | <code>Mapper</code> and <code>Reducer</code> implementations. |
---|
108 | <p/> |
---|
109 | Each additional output, or named output, may be configured with its own |
---|
110 | <code>OutputFormat</code>, with its own key class and with its own value |
---|
111 | class. |
---|
112 | <p/> |
---|
113 | A named output can be a single file or a multi file. The later is refered as |
---|
114 | a multi named output. |
---|
115 | <p/> |
---|
116 | A multi named output is an unbound set of files all sharing the same |
---|
117 | <code>OutputFormat</code>, key class and value class configuration. |
---|
118 | <p/> |
---|
119 | When named outputs are used within a <code>Mapper</code> implementation, |
---|
120 | key/values written to a name output are not part of the reduce phase, only |
---|
121 | key/values written to the job <code>OutputCollector</code> are part of the |
---|
122 | reduce phase. |
---|
123 | <p/> |
---|
124 | MultipleOutputs supports counters, by default the are disabled. The counters |
---|
125 | group is the <A HREF="../../../../../org/apache/hadoop/mapred/lib/MultipleOutputs.html" title="class in org.apache.hadoop.mapred.lib"><CODE>MultipleOutputs</CODE></A> class name. |
---|
126 | </p> |
---|
127 | The names of the counters are the same as the named outputs. For multi |
---|
128 | named outputs the name of the counter is the concatenation of the named |
---|
129 | output, and underscore '_' and the multiname. |
---|
130 | <p/> |
---|
131 | Job configuration usage pattern is: |
---|
132 | <pre> |
---|
133 | |
---|
134 | JobConf conf = new JobConf(); |
---|
135 | |
---|
136 | conf.setInputPath(inDir); |
---|
137 | FileOutputFormat.setOutputPath(conf, outDir); |
---|
138 | |
---|
139 | conf.setMapperClass(MOMap.class); |
---|
140 | conf.setReducerClass(MOReduce.class); |
---|
141 | ... |
---|
142 | |
---|
143 | // Defines additional single text based output 'text' for the job |
---|
144 | MultipleOutputs.addNamedOutput(conf, "text", TextOutputFormat.class, |
---|
145 | LongWritable.class, Text.class); |
---|
146 | |
---|
147 | // Defines additional multi sequencefile based output 'sequence' for the |
---|
148 | // job |
---|
149 | MultipleOutputs.addMultiNamedOutput(conf, "seq", |
---|
150 | SequenceFileOutputFormat.class, |
---|
151 | LongWritable.class, Text.class); |
---|
152 | ... |
---|
153 | |
---|
154 | JobClient jc = new JobClient(); |
---|
155 | RunningJob job = jc.submitJob(conf); |
---|
156 | |
---|
157 | ... |
---|
158 | </pre> |
---|
159 | <p/> |
---|
160 | Job configuration usage pattern is: |
---|
161 | <pre> |
---|
162 | |
---|
163 | public class MOReduce implements |
---|
164 | Reducer<WritableComparable, Writable> { |
---|
165 | private MultipleOutputs mos; |
---|
166 | |
---|
167 | public void configure(JobConf conf) { |
---|
168 | ... |
---|
169 | mos = new MultipleOutputs(conf); |
---|
170 | } |
---|
171 | |
---|
172 | public void reduce(WritableComparable key, Iterator<Writable> values, |
---|
173 | OutputCollector output, Reporter reporter) |
---|
174 | throws IOException { |
---|
175 | ... |
---|
176 | mos.getCollector("text", reporter).collect(key, new Text("Hello")); |
---|
177 | mos.getCollector("seq", "A", reporter).collect(key, new Text("Bye")); |
---|
178 | mos.getCollector("seq", "B", reporter).collect(key, new Text("Chau")); |
---|
179 | ... |
---|
180 | } |
---|
181 | |
---|
182 | public void close() throws IOException { |
---|
183 | mos.close(); |
---|
184 | ... |
---|
185 | } |
---|
186 | |
---|
187 | } |
---|
188 | </pre> |
---|
189 | <P> |
---|
190 | |
---|
191 | <P> |
---|
192 | <HR> |
---|
193 | |
---|
194 | <P> |
---|
195 | |
---|
196 | <!-- ======== CONSTRUCTOR SUMMARY ======== --> |
---|
197 | |
---|
198 | <A NAME="constructor_summary"><!-- --></A> |
---|
199 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
---|
200 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
---|
201 | <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> |
---|
202 | <B>Constructor Summary</B></FONT></TH> |
---|
203 | </TR> |
---|
204 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
205 | <TD><CODE><B><A HREF="../../../../../org/apache/hadoop/mapred/lib/MultipleOutputs.html#MultipleOutputs(org.apache.hadoop.mapred.JobConf)">MultipleOutputs</A></B>(<A HREF="../../../../../org/apache/hadoop/mapred/JobConf.html" title="class in org.apache.hadoop.mapred">JobConf</A> job)</CODE> |
---|
206 | |
---|
207 | <BR> |
---|
208 | Creates and initializes multiple named outputs support, it should be |
---|
209 | instantiated in the Mapper/Reducer configure method.</TD> |
---|
210 | </TR> |
---|
211 | </TABLE> |
---|
212 | |
---|
213 | <!-- ========== METHOD SUMMARY =========== --> |
---|
214 | |
---|
215 | <A NAME="method_summary"><!-- --></A> |
---|
216 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
---|
217 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
---|
218 | <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> |
---|
219 | <B>Method Summary</B></FONT></TH> |
---|
220 | </TR> |
---|
221 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
222 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
223 | <CODE>static void</CODE></FONT></TD> |
---|
224 | <TD><CODE><B><A HREF="../../../../../org/apache/hadoop/mapred/lib/MultipleOutputs.html#addMultiNamedOutput(org.apache.hadoop.mapred.JobConf, java.lang.String, java.lang.Class, java.lang.Class, java.lang.Class)">addMultiNamedOutput</A></B>(<A HREF="../../../../../org/apache/hadoop/mapred/JobConf.html" title="class in org.apache.hadoop.mapred">JobConf</A> conf, |
---|
225 | <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> namedOutput, |
---|
226 | <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/OutputFormat.html" title="interface in org.apache.hadoop.mapred">OutputFormat</A>> outputFormatClass, |
---|
227 | <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A><?> keyClass, |
---|
228 | <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><?> valueClass)</CODE> |
---|
229 | |
---|
230 | <BR> |
---|
231 | Adds a multi named output for the job.</TD> |
---|
232 | </TR> |
---|
233 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
234 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
235 | <CODE>static void</CODE></FONT></TD> |
---|
236 | <TD><CODE><B><A HREF="../../../../../org/apache/hadoop/mapred/lib/MultipleOutputs.html#addNamedOutput(org.apache.hadoop.mapred.JobConf, java.lang.String, java.lang.Class, java.lang.Class, java.lang.Class)">addNamedOutput</A></B>(<A HREF="../../../../../org/apache/hadoop/mapred/JobConf.html" title="class in org.apache.hadoop.mapred">JobConf</A> conf, |
---|
237 | <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> namedOutput, |
---|
238 | <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/OutputFormat.html" title="interface in org.apache.hadoop.mapred">OutputFormat</A>> outputFormatClass, |
---|
239 | <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A><?> keyClass, |
---|
240 | <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><?> valueClass)</CODE> |
---|
241 | |
---|
242 | <BR> |
---|
243 | Adds a named output for the job.</TD> |
---|
244 | </TR> |
---|
245 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
246 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
247 | <CODE> void</CODE></FONT></TD> |
---|
248 | <TD><CODE><B><A HREF="../../../../../org/apache/hadoop/mapred/lib/MultipleOutputs.html#close()">close</A></B>()</CODE> |
---|
249 | |
---|
250 | <BR> |
---|
251 | Closes all the opened named outputs.</TD> |
---|
252 | </TR> |
---|
253 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
254 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
255 | <CODE> <A HREF="../../../../../org/apache/hadoop/mapred/OutputCollector.html" title="interface in org.apache.hadoop.mapred">OutputCollector</A></CODE></FONT></TD> |
---|
256 | <TD><CODE><B><A HREF="../../../../../org/apache/hadoop/mapred/lib/MultipleOutputs.html#getCollector(java.lang.String, org.apache.hadoop.mapred.Reporter)">getCollector</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> namedOutput, |
---|
257 | <A HREF="../../../../../org/apache/hadoop/mapred/Reporter.html" title="interface in org.apache.hadoop.mapred">Reporter</A> reporter)</CODE> |
---|
258 | |
---|
259 | <BR> |
---|
260 | Gets the output collector for a named output.</TD> |
---|
261 | </TR> |
---|
262 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
263 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
264 | <CODE> <A HREF="../../../../../org/apache/hadoop/mapred/OutputCollector.html" title="interface in org.apache.hadoop.mapred">OutputCollector</A></CODE></FONT></TD> |
---|
265 | <TD><CODE><B><A HREF="../../../../../org/apache/hadoop/mapred/lib/MultipleOutputs.html#getCollector(java.lang.String, java.lang.String, org.apache.hadoop.mapred.Reporter)">getCollector</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> namedOutput, |
---|
266 | <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> multiName, |
---|
267 | <A HREF="../../../../../org/apache/hadoop/mapred/Reporter.html" title="interface in org.apache.hadoop.mapred">Reporter</A> reporter)</CODE> |
---|
268 | |
---|
269 | <BR> |
---|
270 | Gets the output collector for a multi named output.</TD> |
---|
271 | </TR> |
---|
272 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
273 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
274 | <CODE>static boolean</CODE></FONT></TD> |
---|
275 | <TD><CODE><B><A HREF="../../../../../org/apache/hadoop/mapred/lib/MultipleOutputs.html#getCountersEnabled(org.apache.hadoop.mapred.JobConf)">getCountersEnabled</A></B>(<A HREF="../../../../../org/apache/hadoop/mapred/JobConf.html" title="class in org.apache.hadoop.mapred">JobConf</A> conf)</CODE> |
---|
276 | |
---|
277 | <BR> |
---|
278 | Returns if the counters for the named outputs are enabled or not.</TD> |
---|
279 | </TR> |
---|
280 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
281 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
282 | <CODE>static <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/OutputFormat.html" title="interface in org.apache.hadoop.mapred">OutputFormat</A>></CODE></FONT></TD> |
---|
283 | <TD><CODE><B><A HREF="../../../../../org/apache/hadoop/mapred/lib/MultipleOutputs.html#getNamedOutputFormatClass(org.apache.hadoop.mapred.JobConf, java.lang.String)">getNamedOutputFormatClass</A></B>(<A HREF="../../../../../org/apache/hadoop/mapred/JobConf.html" title="class in org.apache.hadoop.mapred">JobConf</A> conf, |
---|
284 | <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> namedOutput)</CODE> |
---|
285 | |
---|
286 | <BR> |
---|
287 | Returns the named output OutputFormat.</TD> |
---|
288 | </TR> |
---|
289 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
290 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
291 | <CODE>static <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A><? extends <A HREF="../../../../../org/apache/hadoop/io/WritableComparable.html" title="interface in org.apache.hadoop.io">WritableComparable</A>></CODE></FONT></TD> |
---|
292 | <TD><CODE><B><A HREF="../../../../../org/apache/hadoop/mapred/lib/MultipleOutputs.html#getNamedOutputKeyClass(org.apache.hadoop.mapred.JobConf, java.lang.String)">getNamedOutputKeyClass</A></B>(<A HREF="../../../../../org/apache/hadoop/mapred/JobConf.html" title="class in org.apache.hadoop.mapred">JobConf</A> conf, |
---|
293 | <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> namedOutput)</CODE> |
---|
294 | |
---|
295 | <BR> |
---|
296 | Returns the key class for a named output.</TD> |
---|
297 | </TR> |
---|
298 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
299 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
300 | <CODE> <A HREF="http://java.sun.com/javase/6/docs/api/java/util/Iterator.html?is-external=true" title="class or interface in java.util">Iterator</A><<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> |
---|
301 | <TD><CODE><B><A HREF="../../../../../org/apache/hadoop/mapred/lib/MultipleOutputs.html#getNamedOutputs()">getNamedOutputs</A></B>()</CODE> |
---|
302 | |
---|
303 | <BR> |
---|
304 | Returns iterator with the defined name outputs.</TD> |
---|
305 | </TR> |
---|
306 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
307 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
308 | <CODE>static <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="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> |
---|
309 | <TD><CODE><B><A HREF="../../../../../org/apache/hadoop/mapred/lib/MultipleOutputs.html#getNamedOutputsList(org.apache.hadoop.mapred.JobConf)">getNamedOutputsList</A></B>(<A HREF="../../../../../org/apache/hadoop/mapred/JobConf.html" title="class in org.apache.hadoop.mapred">JobConf</A> conf)</CODE> |
---|
310 | |
---|
311 | <BR> |
---|
312 | Returns list of channel names.</TD> |
---|
313 | </TR> |
---|
314 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
315 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
316 | <CODE>static <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A><? extends <A HREF="../../../../../org/apache/hadoop/io/Writable.html" title="interface in org.apache.hadoop.io">Writable</A>></CODE></FONT></TD> |
---|
317 | <TD><CODE><B><A HREF="../../../../../org/apache/hadoop/mapred/lib/MultipleOutputs.html#getNamedOutputValueClass(org.apache.hadoop.mapred.JobConf, java.lang.String)">getNamedOutputValueClass</A></B>(<A HREF="../../../../../org/apache/hadoop/mapred/JobConf.html" title="class in org.apache.hadoop.mapred">JobConf</A> conf, |
---|
318 | <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> namedOutput)</CODE> |
---|
319 | |
---|
320 | <BR> |
---|
321 | Returns the value class for a named output.</TD> |
---|
322 | </TR> |
---|
323 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
324 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
325 | <CODE>static boolean</CODE></FONT></TD> |
---|
326 | <TD><CODE><B><A HREF="../../../../../org/apache/hadoop/mapred/lib/MultipleOutputs.html#isMultiNamedOutput(org.apache.hadoop.mapred.JobConf, java.lang.String)">isMultiNamedOutput</A></B>(<A HREF="../../../../../org/apache/hadoop/mapred/JobConf.html" title="class in org.apache.hadoop.mapred">JobConf</A> conf, |
---|
327 | <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> namedOutput)</CODE> |
---|
328 | |
---|
329 | <BR> |
---|
330 | Returns if a named output is multiple.</TD> |
---|
331 | </TR> |
---|
332 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
333 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
334 | <CODE>static void</CODE></FONT></TD> |
---|
335 | <TD><CODE><B><A HREF="../../../../../org/apache/hadoop/mapred/lib/MultipleOutputs.html#setCountersEnabled(org.apache.hadoop.mapred.JobConf, boolean)">setCountersEnabled</A></B>(<A HREF="../../../../../org/apache/hadoop/mapred/JobConf.html" title="class in org.apache.hadoop.mapred">JobConf</A> conf, |
---|
336 | boolean enabled)</CODE> |
---|
337 | |
---|
338 | <BR> |
---|
339 | Enables or disables counters for the named outputs.</TD> |
---|
340 | </TR> |
---|
341 | </TABLE> |
---|
342 | <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A> |
---|
343 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
---|
344 | <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> |
---|
345 | <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> |
---|
346 | </TR> |
---|
347 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
348 | <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> |
---|
349 | </TR> |
---|
350 | </TABLE> |
---|
351 | |
---|
352 | <P> |
---|
353 | |
---|
354 | <!-- ========= CONSTRUCTOR DETAIL ======== --> |
---|
355 | |
---|
356 | <A NAME="constructor_detail"><!-- --></A> |
---|
357 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
---|
358 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
---|
359 | <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> |
---|
360 | <B>Constructor Detail</B></FONT></TH> |
---|
361 | </TR> |
---|
362 | </TABLE> |
---|
363 | |
---|
364 | <A NAME="MultipleOutputs(org.apache.hadoop.mapred.JobConf)"><!-- --></A><H3> |
---|
365 | MultipleOutputs</H3> |
---|
366 | <PRE> |
---|
367 | public <B>MultipleOutputs</B>(<A HREF="../../../../../org/apache/hadoop/mapred/JobConf.html" title="class in org.apache.hadoop.mapred">JobConf</A> job)</PRE> |
---|
368 | <DL> |
---|
369 | <DD>Creates and initializes multiple named outputs support, it should be |
---|
370 | instantiated in the Mapper/Reducer configure method. |
---|
371 | <P> |
---|
372 | <DL> |
---|
373 | <DT><B>Parameters:</B><DD><CODE>job</CODE> - the job configuration object</DL> |
---|
374 | </DL> |
---|
375 | |
---|
376 | <!-- ============ METHOD DETAIL ========== --> |
---|
377 | |
---|
378 | <A NAME="method_detail"><!-- --></A> |
---|
379 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
---|
380 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
---|
381 | <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> |
---|
382 | <B>Method Detail</B></FONT></TH> |
---|
383 | </TR> |
---|
384 | </TABLE> |
---|
385 | |
---|
386 | <A NAME="getNamedOutputsList(org.apache.hadoop.mapred.JobConf)"><!-- --></A><H3> |
---|
387 | getNamedOutputsList</H3> |
---|
388 | <PRE> |
---|
389 | public static <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="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>getNamedOutputsList</B>(<A HREF="../../../../../org/apache/hadoop/mapred/JobConf.html" title="class in org.apache.hadoop.mapred">JobConf</A> conf)</PRE> |
---|
390 | <DL> |
---|
391 | <DD>Returns list of channel names. |
---|
392 | <P> |
---|
393 | <DD><DL> |
---|
394 | <DT><B>Parameters:</B><DD><CODE>conf</CODE> - job conf |
---|
395 | <DT><B>Returns:</B><DD>List of channel Names</DL> |
---|
396 | </DD> |
---|
397 | </DL> |
---|
398 | <HR> |
---|
399 | |
---|
400 | <A NAME="isMultiNamedOutput(org.apache.hadoop.mapred.JobConf, java.lang.String)"><!-- --></A><H3> |
---|
401 | isMultiNamedOutput</H3> |
---|
402 | <PRE> |
---|
403 | public static boolean <B>isMultiNamedOutput</B>(<A HREF="../../../../../org/apache/hadoop/mapred/JobConf.html" title="class in org.apache.hadoop.mapred">JobConf</A> conf, |
---|
404 | <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> namedOutput)</PRE> |
---|
405 | <DL> |
---|
406 | <DD>Returns if a named output is multiple. |
---|
407 | <P> |
---|
408 | <DD><DL> |
---|
409 | <DT><B>Parameters:</B><DD><CODE>conf</CODE> - job conf<DD><CODE>namedOutput</CODE> - named output |
---|
410 | <DT><B>Returns:</B><DD><code>true</code> if the name output is multi, <code>false</code> |
---|
411 | if it is single. If the name output is not defined it returns |
---|
412 | <code>false</code></DL> |
---|
413 | </DD> |
---|
414 | </DL> |
---|
415 | <HR> |
---|
416 | |
---|
417 | <A NAME="getNamedOutputFormatClass(org.apache.hadoop.mapred.JobConf, java.lang.String)"><!-- --></A><H3> |
---|
418 | getNamedOutputFormatClass</H3> |
---|
419 | <PRE> |
---|
420 | public static <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/OutputFormat.html" title="interface in org.apache.hadoop.mapred">OutputFormat</A>> <B>getNamedOutputFormatClass</B>(<A HREF="../../../../../org/apache/hadoop/mapred/JobConf.html" title="class in org.apache.hadoop.mapred">JobConf</A> conf, |
---|
421 | <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> namedOutput)</PRE> |
---|
422 | <DL> |
---|
423 | <DD>Returns the named output OutputFormat. |
---|
424 | <P> |
---|
425 | <DD><DL> |
---|
426 | <DT><B>Parameters:</B><DD><CODE>conf</CODE> - job conf<DD><CODE>namedOutput</CODE> - named output |
---|
427 | <DT><B>Returns:</B><DD>namedOutput OutputFormat</DL> |
---|
428 | </DD> |
---|
429 | </DL> |
---|
430 | <HR> |
---|
431 | |
---|
432 | <A NAME="getNamedOutputKeyClass(org.apache.hadoop.mapred.JobConf, java.lang.String)"><!-- --></A><H3> |
---|
433 | getNamedOutputKeyClass</H3> |
---|
434 | <PRE> |
---|
435 | public static <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A><? extends <A HREF="../../../../../org/apache/hadoop/io/WritableComparable.html" title="interface in org.apache.hadoop.io">WritableComparable</A>> <B>getNamedOutputKeyClass</B>(<A HREF="../../../../../org/apache/hadoop/mapred/JobConf.html" title="class in org.apache.hadoop.mapred">JobConf</A> conf, |
---|
436 | <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> namedOutput)</PRE> |
---|
437 | <DL> |
---|
438 | <DD>Returns the key class for a named output. |
---|
439 | <P> |
---|
440 | <DD><DL> |
---|
441 | <DT><B>Parameters:</B><DD><CODE>conf</CODE> - job conf<DD><CODE>namedOutput</CODE> - named output |
---|
442 | <DT><B>Returns:</B><DD>class for the named output key</DL> |
---|
443 | </DD> |
---|
444 | </DL> |
---|
445 | <HR> |
---|
446 | |
---|
447 | <A NAME="getNamedOutputValueClass(org.apache.hadoop.mapred.JobConf, java.lang.String)"><!-- --></A><H3> |
---|
448 | getNamedOutputValueClass</H3> |
---|
449 | <PRE> |
---|
450 | public static <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A><? extends <A HREF="../../../../../org/apache/hadoop/io/Writable.html" title="interface in org.apache.hadoop.io">Writable</A>> <B>getNamedOutputValueClass</B>(<A HREF="../../../../../org/apache/hadoop/mapred/JobConf.html" title="class in org.apache.hadoop.mapred">JobConf</A> conf, |
---|
451 | <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> namedOutput)</PRE> |
---|
452 | <DL> |
---|
453 | <DD>Returns the value class for a named output. |
---|
454 | <P> |
---|
455 | <DD><DL> |
---|
456 | <DT><B>Parameters:</B><DD><CODE>conf</CODE> - job conf<DD><CODE>namedOutput</CODE> - named output |
---|
457 | <DT><B>Returns:</B><DD>class of named output value</DL> |
---|
458 | </DD> |
---|
459 | </DL> |
---|
460 | <HR> |
---|
461 | |
---|
462 | <A NAME="addNamedOutput(org.apache.hadoop.mapred.JobConf, java.lang.String, java.lang.Class, java.lang.Class, java.lang.Class)"><!-- --></A><H3> |
---|
463 | addNamedOutput</H3> |
---|
464 | <PRE> |
---|
465 | public static void <B>addNamedOutput</B>(<A HREF="../../../../../org/apache/hadoop/mapred/JobConf.html" title="class in org.apache.hadoop.mapred">JobConf</A> conf, |
---|
466 | <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> namedOutput, |
---|
467 | <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/OutputFormat.html" title="interface in org.apache.hadoop.mapred">OutputFormat</A>> outputFormatClass, |
---|
468 | <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A><?> keyClass, |
---|
469 | <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><?> valueClass)</PRE> |
---|
470 | <DL> |
---|
471 | <DD>Adds a named output for the job. |
---|
472 | <p/> |
---|
473 | <P> |
---|
474 | <DD><DL> |
---|
475 | <DT><B>Parameters:</B><DD><CODE>conf</CODE> - job conf to add the named output<DD><CODE>namedOutput</CODE> - named output name, it has to be a word, letters |
---|
476 | and numbers only, cannot be the word 'part' as |
---|
477 | that is reserved for the |
---|
478 | default output.<DD><CODE>outputFormatClass</CODE> - OutputFormat class.<DD><CODE>keyClass</CODE> - key class<DD><CODE>valueClass</CODE> - value class</DL> |
---|
479 | </DD> |
---|
480 | </DL> |
---|
481 | <HR> |
---|
482 | |
---|
483 | <A NAME="addMultiNamedOutput(org.apache.hadoop.mapred.JobConf, java.lang.String, java.lang.Class, java.lang.Class, java.lang.Class)"><!-- --></A><H3> |
---|
484 | addMultiNamedOutput</H3> |
---|
485 | <PRE> |
---|
486 | public static void <B>addMultiNamedOutput</B>(<A HREF="../../../../../org/apache/hadoop/mapred/JobConf.html" title="class in org.apache.hadoop.mapred">JobConf</A> conf, |
---|
487 | <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> namedOutput, |
---|
488 | <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/OutputFormat.html" title="interface in org.apache.hadoop.mapred">OutputFormat</A>> outputFormatClass, |
---|
489 | <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A><?> keyClass, |
---|
490 | <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><?> valueClass)</PRE> |
---|
491 | <DL> |
---|
492 | <DD>Adds a multi named output for the job. |
---|
493 | <p/> |
---|
494 | <P> |
---|
495 | <DD><DL> |
---|
496 | <DT><B>Parameters:</B><DD><CODE>conf</CODE> - job conf to add the named output<DD><CODE>namedOutput</CODE> - named output name, it has to be a word, letters |
---|
497 | and numbers only, cannot be the word 'part' as |
---|
498 | that is reserved for the |
---|
499 | default output.<DD><CODE>outputFormatClass</CODE> - OutputFormat class.<DD><CODE>keyClass</CODE> - key class<DD><CODE>valueClass</CODE> - value class</DL> |
---|
500 | </DD> |
---|
501 | </DL> |
---|
502 | <HR> |
---|
503 | |
---|
504 | <A NAME="setCountersEnabled(org.apache.hadoop.mapred.JobConf, boolean)"><!-- --></A><H3> |
---|
505 | setCountersEnabled</H3> |
---|
506 | <PRE> |
---|
507 | public static void <B>setCountersEnabled</B>(<A HREF="../../../../../org/apache/hadoop/mapred/JobConf.html" title="class in org.apache.hadoop.mapred">JobConf</A> conf, |
---|
508 | boolean enabled)</PRE> |
---|
509 | <DL> |
---|
510 | <DD>Enables or disables counters for the named outputs. |
---|
511 | <p/> |
---|
512 | By default these counters are disabled. |
---|
513 | <p/> |
---|
514 | MultipleOutputs supports counters, by default the are disabled. |
---|
515 | The counters group is the <A HREF="../../../../../org/apache/hadoop/mapred/lib/MultipleOutputs.html" title="class in org.apache.hadoop.mapred.lib"><CODE>MultipleOutputs</CODE></A> class name. |
---|
516 | </p> |
---|
517 | The names of the counters are the same as the named outputs. For multi |
---|
518 | named outputs the name of the counter is the concatenation of the named |
---|
519 | output, and underscore '_' and the multiname. |
---|
520 | <P> |
---|
521 | <DD><DL> |
---|
522 | <DT><B>Parameters:</B><DD><CODE>conf</CODE> - job conf to enableadd the named output.<DD><CODE>enabled</CODE> - indicates if the counters will be enabled or not.</DL> |
---|
523 | </DD> |
---|
524 | </DL> |
---|
525 | <HR> |
---|
526 | |
---|
527 | <A NAME="getCountersEnabled(org.apache.hadoop.mapred.JobConf)"><!-- --></A><H3> |
---|
528 | getCountersEnabled</H3> |
---|
529 | <PRE> |
---|
530 | public static boolean <B>getCountersEnabled</B>(<A HREF="../../../../../org/apache/hadoop/mapred/JobConf.html" title="class in org.apache.hadoop.mapred">JobConf</A> conf)</PRE> |
---|
531 | <DL> |
---|
532 | <DD>Returns if the counters for the named outputs are enabled or not. |
---|
533 | <p/> |
---|
534 | By default these counters are disabled. |
---|
535 | <p/> |
---|
536 | MultipleOutputs supports counters, by default the are disabled. |
---|
537 | The counters group is the <A HREF="../../../../../org/apache/hadoop/mapred/lib/MultipleOutputs.html" title="class in org.apache.hadoop.mapred.lib"><CODE>MultipleOutputs</CODE></A> class name. |
---|
538 | </p> |
---|
539 | The names of the counters are the same as the named outputs. For multi |
---|
540 | named outputs the name of the counter is the concatenation of the named |
---|
541 | output, and underscore '_' and the multiname. |
---|
542 | <P> |
---|
543 | <DD><DL> |
---|
544 | <DT><B>Parameters:</B><DD><CODE>conf</CODE> - job conf to enableadd the named output. |
---|
545 | <DT><B>Returns:</B><DD>TRUE if the counters are enabled, FALSE if they are disabled.</DL> |
---|
546 | </DD> |
---|
547 | </DL> |
---|
548 | <HR> |
---|
549 | |
---|
550 | <A NAME="getNamedOutputs()"><!-- --></A><H3> |
---|
551 | getNamedOutputs</H3> |
---|
552 | <PRE> |
---|
553 | public <A HREF="http://java.sun.com/javase/6/docs/api/java/util/Iterator.html?is-external=true" title="class or interface in java.util">Iterator</A><<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>getNamedOutputs</B>()</PRE> |
---|
554 | <DL> |
---|
555 | <DD>Returns iterator with the defined name outputs. |
---|
556 | <P> |
---|
557 | <DD><DL> |
---|
558 | |
---|
559 | <DT><B>Returns:</B><DD>iterator with the defined named outputs</DL> |
---|
560 | </DD> |
---|
561 | </DL> |
---|
562 | <HR> |
---|
563 | |
---|
564 | <A NAME="getCollector(java.lang.String, org.apache.hadoop.mapred.Reporter)"><!-- --></A><H3> |
---|
565 | getCollector</H3> |
---|
566 | <PRE> |
---|
567 | public <A HREF="../../../../../org/apache/hadoop/mapred/OutputCollector.html" title="interface in org.apache.hadoop.mapred">OutputCollector</A> <B>getCollector</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> namedOutput, |
---|
568 | <A HREF="../../../../../org/apache/hadoop/mapred/Reporter.html" title="interface in org.apache.hadoop.mapred">Reporter</A> reporter) |
---|
569 | 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> |
---|
570 | <DL> |
---|
571 | <DD>Gets the output collector for a named output. |
---|
572 | <p/> |
---|
573 | <P> |
---|
574 | <DD><DL> |
---|
575 | <DT><B>Parameters:</B><DD><CODE>namedOutput</CODE> - the named output name<DD><CODE>reporter</CODE> - the reporter |
---|
576 | <DT><B>Returns:</B><DD>the output collector for the given named output |
---|
577 | <DT><B>Throws:</B> |
---|
578 | <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> - thrown if output collector could not be created</DL> |
---|
579 | </DD> |
---|
580 | </DL> |
---|
581 | <HR> |
---|
582 | |
---|
583 | <A NAME="getCollector(java.lang.String, java.lang.String, org.apache.hadoop.mapred.Reporter)"><!-- --></A><H3> |
---|
584 | getCollector</H3> |
---|
585 | <PRE> |
---|
586 | public <A HREF="../../../../../org/apache/hadoop/mapred/OutputCollector.html" title="interface in org.apache.hadoop.mapred">OutputCollector</A> <B>getCollector</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> namedOutput, |
---|
587 | <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> multiName, |
---|
588 | <A HREF="../../../../../org/apache/hadoop/mapred/Reporter.html" title="interface in org.apache.hadoop.mapred">Reporter</A> reporter) |
---|
589 | 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> |
---|
590 | <DL> |
---|
591 | <DD>Gets the output collector for a multi named output. |
---|
592 | <p/> |
---|
593 | <P> |
---|
594 | <DD><DL> |
---|
595 | <DT><B>Parameters:</B><DD><CODE>namedOutput</CODE> - the named output name<DD><CODE>multiName</CODE> - the multi name part<DD><CODE>reporter</CODE> - the reporter |
---|
596 | <DT><B>Returns:</B><DD>the output collector for the given named output |
---|
597 | <DT><B>Throws:</B> |
---|
598 | <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> - thrown if output collector could not be created</DL> |
---|
599 | </DD> |
---|
600 | </DL> |
---|
601 | <HR> |
---|
602 | |
---|
603 | <A NAME="close()"><!-- --></A><H3> |
---|
604 | close</H3> |
---|
605 | <PRE> |
---|
606 | public void <B>close</B>() |
---|
607 | 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> |
---|
608 | <DL> |
---|
609 | <DD>Closes all the opened named outputs. |
---|
610 | <p/> |
---|
611 | If overriden subclasses must invoke <code>super.close()</code> at the |
---|
612 | end of their <code>close()</code> |
---|
613 | <P> |
---|
614 | <DD><DL> |
---|
615 | |
---|
616 | <DT><B>Throws:</B> |
---|
617 | <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> - thrown if any of the MultipleOutput files |
---|
618 | could not be closed properly.</DL> |
---|
619 | </DD> |
---|
620 | </DL> |
---|
621 | <!-- ========= END OF CLASS DATA ========= --> |
---|
622 | <HR> |
---|
623 | |
---|
624 | |
---|
625 | <!-- ======= START OF BOTTOM NAVBAR ====== --> |
---|
626 | <A NAME="navbar_bottom"><!-- --></A> |
---|
627 | <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A> |
---|
628 | <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> |
---|
629 | <TR> |
---|
630 | <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> |
---|
631 | <A NAME="navbar_bottom_firstrow"><!-- --></A> |
---|
632 | <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> |
---|
633 | <TR ALIGN="center" VALIGN="top"> |
---|
634 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> |
---|
635 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> |
---|
636 | <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> |
---|
637 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/MultipleOutputs.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> |
---|
638 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> |
---|
639 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> |
---|
640 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> |
---|
641 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> |
---|
642 | </TR> |
---|
643 | </TABLE> |
---|
644 | </TD> |
---|
645 | <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> |
---|
646 | </EM> |
---|
647 | </TD> |
---|
648 | </TR> |
---|
649 | |
---|
650 | <TR> |
---|
651 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
---|
652 | <A HREF="../../../../../org/apache/hadoop/mapred/lib/MultipleOutputFormat.html" title="class in org.apache.hadoop.mapred.lib"><B>PREV CLASS</B></A> |
---|
653 | <A HREF="../../../../../org/apache/hadoop/mapred/lib/MultipleSequenceFileOutputFormat.html" title="class in org.apache.hadoop.mapred.lib"><B>NEXT CLASS</B></A></FONT></TD> |
---|
654 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
---|
655 | <A HREF="../../../../../index.html?org/apache/hadoop/mapred/lib/MultipleOutputs.html" target="_top"><B>FRAMES</B></A> |
---|
656 | <A HREF="MultipleOutputs.html" target="_top"><B>NO FRAMES</B></A> |
---|
657 | <SCRIPT type="text/javascript"> |
---|
658 | <!-- |
---|
659 | if(window==top) { |
---|
660 | document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>'); |
---|
661 | } |
---|
662 | //--> |
---|
663 | </SCRIPT> |
---|
664 | <NOSCRIPT> |
---|
665 | <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A> |
---|
666 | </NOSCRIPT> |
---|
667 | |
---|
668 | |
---|
669 | </FONT></TD> |
---|
670 | </TR> |
---|
671 | <TR> |
---|
672 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
---|
673 | SUMMARY: NESTED | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> |
---|
674 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
---|
675 | DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> |
---|
676 | </TR> |
---|
677 | </TABLE> |
---|
678 | <A NAME="skip-navbar_bottom"></A> |
---|
679 | <!-- ======== END OF BOTTOM NAVBAR ======= --> |
---|
680 | |
---|
681 | <HR> |
---|
682 | Copyright © 2009 The Apache Software Foundation |
---|
683 | </BODY> |
---|
684 | </HTML> |
---|