T - the data model typepublic class OrcFileOutput<T> extends Object implements ModelOutput<T>
ModelOutput for creating ORCFile.| Constructor and Description |
|---|
OrcFileOutput(DataModelDescriptor descriptor,
org.apache.hadoop.fs.Path path,
org.apache.hadoop.fs.FileSystem fileSystem,
org.apache.hadoop.hive.ql.io.orc.OrcFile.WriterOptions options,
Counter counter)
Creates a new instance.
|
OrcFileOutput(DataModelDescriptor descriptor,
org.apache.hadoop.fs.Path path,
org.apache.hadoop.hive.ql.io.orc.OrcFile.WriterOptions 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 OrcFileOutput(DataModelDescriptor descriptor, org.apache.hadoop.fs.Path path, org.apache.hadoop.hive.ql.io.orc.OrcFile.WriterOptions options, Counter counter)
descriptor - the target data model descriptorpath - the path to the target fileoptions - the ORCFile writer optionscounter - the current counterpublic OrcFileOutput(DataModelDescriptor descriptor, org.apache.hadoop.fs.Path path, org.apache.hadoop.fs.FileSystem fileSystem, org.apache.hadoop.hive.ql.io.orc.OrcFile.WriterOptions options, Counter counter)
descriptor - the target data model descriptorpath - the path to the target filefileSystem - the target file systemoptions - the ORCFile writer 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–2019 Asakusa Framework Team. All rights reserved.