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