org.apache.hadoop.tools.rumen
Interface Outputter<T>

All Superinterfaces:
Closeable
All Known Implementing Classes:
DefaultOutputter

public interface Outputter<T>
extends Closeable

Interface to output a sequence of objects of type T.


Method Summary
 void init(org.apache.hadoop.fs.Path path, org.apache.hadoop.conf.Configuration conf)
          Initialize the Outputter to a specific path.
 void output(T object)
          Output an object.
 
Methods inherited from interface java.io.Closeable
close
 

Method Detail

init

void init(org.apache.hadoop.fs.Path path,
          org.apache.hadoop.conf.Configuration conf)
          throws IOException
Initialize the Outputter to a specific path.

Parameters:
path - The Path to the output file.
conf - Configuration
Throws:
IOException

output

void output(T object)
            throws IOException
Output an object.

Parameters:
object - The objecte.
Throws:
IOException


Copyright © 2009 The Apache Software Foundation