public class ResultWriterAdapter<T extends FetchResult> extends Object implements ResultWriter<T>
ResultWriter.| Constructor and Description |
|---|
ResultWriterAdapter() |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
open(org.apache.hadoop.conf.Configuration conf)
Opens the given result writer with a configuration.
|
void |
write(T result)
Writes a single item to the output.
|
public void open(org.apache.hadoop.conf.Configuration conf)
throws IOException
ResultWriteropen in interface ResultWriter<T extends FetchResult>IOExceptionpublic void write(T result) throws IOException
ResultWriterwrite in interface ResultWriter<T extends FetchResult>IOExceptionpublic void close()
throws Exception
close in interface AutoCloseableExceptionCopyright © 2016. All rights reserved.