T - the data model typepublic class SequenceFileModelOutput<T> extends Object implements ModelOutput<T>
ModelOutput using SequenceFile.| Constructor and Description |
|---|
SequenceFileModelOutput(org.apache.hadoop.io.SequenceFile.Writer writer)
Creates a new instance.
|
SequenceFileModelOutput(org.apache.hadoop.io.SequenceFile.Writer writer,
Closeable closeable)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
write(T model)
Writes the contents of the data model object.
|
public SequenceFileModelOutput(org.apache.hadoop.io.SequenceFile.Writer writer)
writer - the target writerIllegalArgumentException - if the parameter is nullpublic SequenceFileModelOutput(org.apache.hadoop.io.SequenceFile.Writer writer,
Closeable closeable)
writer - target writercloseable - close target when close() is invokedIllegalArgumentException - if some parameters were nullpublic void write(T model) throws IOException
ModelOutputwrite in interface ModelOutput<T>model - the target data model objectIOException - if error occurred while writing the data model objectpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionCopyright © 2011–2019 Asakusa Framework Team. All rights reserved.