public class CompatibilityV2 extends Compatibility
Constructor and Description |
---|
CompatibilityV2() |
Modifier and Type | Method and Description |
---|---|
List<DirectInputFragment> |
computeInputFragments(AbstractParquetFileFormat<?> format,
StripedDataFormat.InputContext context)
delegate from
StripedDataFormat.computeInputFragments(InputContext) . |
<T> ModelInput<T> |
createInput(AbstractParquetFileFormat<T> format,
Class<? extends T> dataType,
org.apache.hadoop.fs.FileSystem fileSystem,
org.apache.hadoop.fs.Path path,
long offset,
long fragmentSize,
Counter counter)
|
<T> ModelOutput<T> |
createOutput(AbstractParquetFileFormat<T> format,
Class<? extends T> dataType,
org.apache.hadoop.fs.FileSystem fileSystem,
org.apache.hadoop.fs.Path path,
Counter counter)
|
Optional<ParquetValueDriver> |
findValueDriver(org.apache.hadoop.hive.serde2.typeinfo.TypeInfo typeInfo,
Class<?> valueClass)
delegate to
ParquetValueDrivers.find() . |
Optional<org.apache.parquet.column.ParquetProperties.WriterVersion> |
findVersionId(String name)
returns the version symbol if the name.
|
Class<org.apache.parquet.hadoop.metadata.CompressionCodecName> |
getCompressionCodecNameClass()
returns the compression kind class.
|
protected int |
getPriority()
returns the priority of this compatibility layer.
|
getInstance
protected int getPriority()
Compatibility
getPriority
in class Compatibility
public List<DirectInputFragment> computeInputFragments(AbstractParquetFileFormat<?> format, StripedDataFormat.InputContext context) throws IOException, InterruptedException
Compatibility
StripedDataFormat.computeInputFragments(InputContext)
.computeInputFragments
in class Compatibility
format
- the source formatcontext
- the current input contextIOException
- if failed to compute fragments by I/O errorInterruptedException
- if interrupted while computing fragmentspublic <T> ModelInput<T> createInput(AbstractParquetFileFormat<T> format, 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
Compatibility
createInput
in class Compatibility
T
- the data typeformat
- the source formatdataType
- 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 <T> ModelOutput<T> createOutput(AbstractParquetFileFormat<T> format, Class<? extends T> dataType, org.apache.hadoop.fs.FileSystem fileSystem, org.apache.hadoop.fs.Path path, Counter counter) throws IOException, InterruptedException
Compatibility
createOutput
in class Compatibility
T
- the data typeformat
- the source formatdataType
- 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 interruptedpublic Optional<org.apache.parquet.column.ParquetProperties.WriterVersion> findVersionId(String name)
Compatibility
findVersionId
in class Compatibility
name
- the version namepublic Class<org.apache.parquet.hadoop.metadata.CompressionCodecName> getCompressionCodecNameClass()
Compatibility
getCompressionCodecNameClass
in class Compatibility
public Optional<ParquetValueDriver> findValueDriver(org.apache.hadoop.hive.serde2.typeinfo.TypeInfo typeInfo, Class<?> valueClass)
Compatibility
ParquetValueDrivers.find()
.findValueDriver
in class Compatibility
typeInfo
- the Hive type infovalueClass
- the ValueOption
typeParquetValueDriver
, or empty
if it is not foundCopyright © 2011–2019 Asakusa Framework Team. All rights reserved.