public interface ResultWriter<T extends FetchResult> extends AutoCloseable
open(Configuration),
write(FetchResult) n-items and then AutoCloseable.close(). Note that this
implements AutoCloseable and can be used for a try catch with
resources.| Modifier and Type | Method and Description |
|---|---|
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.
|
closevoid open(org.apache.hadoop.conf.Configuration conf) throws IOException
IOExceptionvoid write(T result) throws IOException
IOExceptionCopyright © 2016. All rights reserved.