T - the data model typepublic class TemporaryFileOutput<T extends org.apache.hadoop.io.Writable> extends Object implements ModelOutput<T>
| Constructor and Description |
|---|
TemporaryFileOutput(OutputStream output,
String dateTypeName,
int initialBufferSize,
int pageBreakThreashold)
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 TemporaryFileOutput(OutputStream output, String dateTypeName, int initialBufferSize, int pageBreakThreashold)
output - target output streamdateTypeName - the data type nameinitialBufferSize - the initial page buffer size (in bytes)pageBreakThreashold - the page size hint (in bytes)public void write(T model) throws IOException
ModelOutputwrite in interface ModelOutput<T extends org.apache.hadoop.io.Writable>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.