Package org.apache.parquet.hadoop.api
Class DelegatingReadSupport<T>
- java.lang.Object
-
- org.apache.parquet.hadoop.api.ReadSupport<T>
-
- org.apache.parquet.hadoop.api.DelegatingReadSupport<T>
-
- Type Parameters:
T
- the Java class of objects created by this ReadSupport
public class DelegatingReadSupport<T> extends ReadSupport<T>
Helps composing read supports
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.parquet.hadoop.api.ReadSupport
ReadSupport.ReadContext
-
-
Field Summary
-
Fields inherited from class org.apache.parquet.hadoop.api.ReadSupport
PARQUET_READ_SCHEMA
-
-
Constructor Summary
Constructors Constructor Description DelegatingReadSupport(ReadSupport<T> delegate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ReadSupport.ReadContext
init(InitContext context)
called inInputFormat.getSplits(org.apache.hadoop.mapreduce.JobContext)
in the front endRecordMaterializer<T>
prepareForRead(org.apache.hadoop.conf.Configuration configuration, Map<String,String> keyValueMetaData, MessageType fileSchema, ReadSupport.ReadContext readContext)
called inRecordReader.initialize(org.apache.hadoop.mapreduce.InputSplit, org.apache.hadoop.mapreduce.TaskAttemptContext)
in the back end the returned RecordMaterializer will materialize the records and add them to the destinationString
toString()
-
Methods inherited from class org.apache.parquet.hadoop.api.ReadSupport
getSchemaForRead, getSchemaForRead, init
-
-
-
-
Constructor Detail
-
DelegatingReadSupport
public DelegatingReadSupport(ReadSupport<T> delegate)
-
-
Method Detail
-
init
public ReadSupport.ReadContext init(InitContext context)
Description copied from class:ReadSupport
called inInputFormat.getSplits(org.apache.hadoop.mapreduce.JobContext)
in the front end- Overrides:
init
in classReadSupport<T>
- Parameters:
context
- the initialisation context- Returns:
- the readContext that defines how to read the file
-
prepareForRead
public RecordMaterializer<T> prepareForRead(org.apache.hadoop.conf.Configuration configuration, Map<String,String> keyValueMetaData, MessageType fileSchema, ReadSupport.ReadContext readContext)
Description copied from class:ReadSupport
called inRecordReader.initialize(org.apache.hadoop.mapreduce.InputSplit, org.apache.hadoop.mapreduce.TaskAttemptContext)
in the back end the returned RecordMaterializer will materialize the records and add them to the destination- Specified by:
prepareForRead
in classReadSupport<T>
- Parameters:
configuration
- the job configurationkeyValueMetaData
- the app specific metadata from the filefileSchema
- the schema of the filereadContext
- returned by the init method- Returns:
- the recordMaterializer that will materialize the records
-
-