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
ModelOutput
write
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 Closeable
close
in interface AutoCloseable
IOException
Copyright © 2011–2018 Asakusa Framework Team. All rights reserved.