T - the data model typepublic class ParquetFileInput<T> extends Object implements ModelInput<T>
ModelInput for reading Parquet files.| Constructor and Description |
|---|
ParquetFileInput(DataModelDescriptor descriptor,
DataModelMapping mappingConfiguration,
org.apache.hadoop.conf.Configuration hadoopConfiguration,
org.apache.hadoop.fs.Path path,
long offset,
long fragmentSize,
Counter counter)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
boolean |
readTo(T model)
Reads contents and write them into the target data model object.
|
public ParquetFileInput(DataModelDescriptor descriptor, DataModelMapping mappingConfiguration, org.apache.hadoop.conf.Configuration hadoopConfiguration, org.apache.hadoop.fs.Path path, long offset, long fragmentSize, Counter counter)
descriptor - the target data model descriptormappingConfiguration - the DataModelDriver configurationhadoopConfiguration - the hadoop configurationpath - the path to the target fileoffset - starting stream offsetfragmentSize - suggested fragment bytes countcounter - the current counterpublic boolean readTo(T model) throws IOException
ModelInputreadTo in interface ModelInput<T>model - the target data model objecttrue if the next data was successfully read, or false if there is no any moreIOException - if error occurred while reading the next datapublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionCopyright © 2011–2019 Asakusa Framework Team. All rights reserved.