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 ;7 import java.io.File ;8 9 import net.nutch.fs.NutchFileSystem;10 11 /** An output data format. Output files are stored in a {@link12 * NutchFileSystem}. */13 public interface OutputFormat {14 /** Construct a {@link RecordWriter}.15 *16 * @param file the file name to write17 * @return a {@link RecordWriter}18 */19 RecordWriter getRecordWriter(File file) throws IOException ;20 }21 22