| Constructor and Description |
|---|
DefaultOutputter() |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
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.
|
public void init(org.apache.hadoop.fs.Path path,
org.apache.hadoop.conf.Configuration conf)
throws IOException
OutputterOutputter to a specific path.init in interface Outputter<T>path - The Path to the output file.conf - ConfigurationIOExceptionpublic void output(T object) throws IOException
Outputteroutput in interface Outputter<T>object - The objecte.IOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionCopyright © 2008–2020 Apache Software Foundation. All rights reserved.