T - the data model typepublic class ParquetFileOutput<T> extends Object implements ModelOutput<T>
ModelOutput for writing Parquet files.| Modifier and Type | Class and Description |
|---|---|
static class |
ParquetFileOutput.Options
The parquet file writing options.
|
| Constructor and Description |
|---|
ParquetFileOutput(DataModelDescriptor descriptor,
org.apache.hadoop.conf.Configuration configuration,
org.apache.hadoop.fs.Path path,
ParquetFileOutput.Options options,
Counter counter)
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 ParquetFileOutput(DataModelDescriptor descriptor, org.apache.hadoop.conf.Configuration configuration, org.apache.hadoop.fs.Path path, ParquetFileOutput.Options options, Counter counter)
descriptor - the target data model descriptorconfiguration - the hadoop configurationpath - the path to the target fileoptions - the parquet file output optionscounter - the current counterpublic 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–2018 Asakusa Framework Team. All rights reserved.