KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > net > nutch > mapReduce > OutputFormat


1 /* Copyright (c) 2005 The Nutch Organization. All rights reserved. */
2 /* Use subject to the conditions in http://www.nutch.org/LICENSE.txt. */
3
4 package net.nutch.mapReduce;
5
6 import java.io.IOException JavaDoc;
7 import java.io.File JavaDoc;
8
9 import net.nutch.fs.NutchFileSystem;
10
11 /** An output data format. Output files are stored in a {@link
12  * NutchFileSystem}. */

13 public interface OutputFormat {
14   /** Construct a {@link RecordWriter}.
15    *
16    * @param file the file name to write
17    * @return a {@link RecordWriter}
18    */

19   RecordWriter getRecordWriter(File JavaDoc file) throws IOException JavaDoc;
20 }
21
22
Popular Tags