public class SequenceFileResultWriter<T extends FetchResult> extends Object implements ResultWriter<T>
| Modifier and Type | Field and Description |
|---|---|
protected org.apache.hadoop.io.SequenceFile.Writer |
writer |
| Constructor and Description |
|---|
SequenceFileResultWriter() |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
org.apache.hadoop.fs.Path |
getOutputPath() |
void |
open(org.apache.hadoop.conf.Configuration conf)
Opens the given result writer with a configuration.
|
void |
write(FetchResult 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(FetchResult result) throws IOException
ResultWriterwrite in interface ResultWriter<T extends FetchResult>IOExceptionpublic org.apache.hadoop.fs.Path getOutputPath()
public void close()
throws Exception
close in interface AutoCloseableExceptionCopyright © 2016. All rights reserved.