T
- the data model typepublic abstract class AbstractParquetFileFormat<T> extends HadoopFileFormat<T> implements StripedDataFormat<T>, TableInfo.Provider
HadoopFileFormat
for Parquet.StripedDataFormat.InputContext
Constructor and Description |
---|
AbstractParquetFileFormat() |
Modifier and Type | Method and Description |
---|---|
List<DirectInputFragment> |
computeInputFragments(StripedDataFormat.InputContext context)
Compute
DirectInputFragment for the input. |
ModelInput<T> |
createInput(Class<? extends T> dataType,
org.apache.hadoop.fs.FileSystem fileSystem,
org.apache.hadoop.fs.Path path,
long offset,
long fragmentSize,
Counter counter)
Creates a new
ModelInput for the specified properties. |
ModelOutput<T> |
createOutput(Class<? extends T> dataType,
org.apache.hadoop.fs.FileSystem fileSystem,
org.apache.hadoop.fs.Path path,
Counter counter)
Creates a new
ModelOutput for the specified properties. |
abstract DataModelDescriptor |
getDataModelDescriptor()
Returns the target data model descriptor.
|
abstract ParquetFormatConfiguration |
getFormatConfiguration()
Returns the format configuration.
|
TableInfo |
getSchema()
Returns the
TableInfo of this object. |
Class<T> |
getSupportedType()
Returns the supported data model type.
|
abstract String |
getTableName()
Returns the table name.
|
createInput
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getMinimumFragmentSize, getPreferredFragmentSize
public abstract ParquetFormatConfiguration getFormatConfiguration()
public abstract DataModelDescriptor getDataModelDescriptor()
public abstract String getTableName()
public TableInfo getSchema()
TableInfo.Provider
TableInfo
of this object.getSchema
in interface TableInfo.Provider
public Class<T> getSupportedType()
DataFormat
getSupportedType
in interface DataFormat<T>
public List<DirectInputFragment> computeInputFragments(StripedDataFormat.InputContext context) throws IOException, InterruptedException
StripedDataFormat
DirectInputFragment
for the input.computeInputFragments
in interface StripedDataFormat<T>
context
- the current input contextIOException
- if failed to compute fragments by I/O errorInterruptedException
- if interrupted while computing fragmentspublic ModelInput<T> createInput(Class<? extends T> dataType, org.apache.hadoop.fs.FileSystem fileSystem, org.apache.hadoop.fs.Path path, long offset, long fragmentSize, Counter counter) throws IOException, InterruptedException
HadoopFileFormat
ModelInput
for the specified properties.createInput
in class HadoopFileFormat<T>
dataType
- the target data typefileSystem
- the file system to open the target pathpath
- the path to the target fileoffset
- starting stream offsetfragmentSize
- suggested fragment bytes count, or -1
as infinitecounter
- the current counterIOException
- if failed to create readerInterruptedException
- if interruptedpublic ModelOutput<T> createOutput(Class<? extends T> dataType, org.apache.hadoop.fs.FileSystem fileSystem, org.apache.hadoop.fs.Path path, Counter counter) throws IOException, InterruptedException
HadoopFileFormat
ModelOutput
for the specified properties.createOutput
in class HadoopFileFormat<T>
dataType
- the target data typefileSystem
- the file system to open the target pathpath
- the path to the target filecounter
- the current counterIOException
- if failed to create writerInterruptedException
- if interruptedCopyright © 2011–2019 Asakusa Framework Team. All rights reserved.