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
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 -
Method Summary
Modifier and TypeMethodDescriptioninit(InitContext context) called inInputFormat.getSplits(org.apache.hadoop.mapreduce.JobContext)in the front endorg.apache.parquet.io.api.RecordMaterializer<T>prepareForRead(org.apache.hadoop.conf.Configuration configuration, Map<String, String> keyValueMetaData, org.apache.parquet.schema.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 destinationorg.apache.parquet.io.api.RecordMaterializer<T>prepareForRead(org.apache.parquet.conf.ParquetConfiguration configuration, Map<String, String> keyValueMetaData, org.apache.parquet.schema.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 destinationtoString()Methods inherited from class org.apache.parquet.hadoop.api.ReadSupport
getSchemaForRead, getSchemaForRead, init, init
-
Constructor Details
-
DelegatingReadSupport
-
-
Method Details
-
init
Description copied from class:ReadSupportcalled inInputFormat.getSplits(org.apache.hadoop.mapreduce.JobContext)in the front end- Overrides:
initin classReadSupport<T>- Parameters:
context- the initialisation context- Returns:
- the readContext that defines how to read the file
-
prepareForRead
public org.apache.parquet.io.api.RecordMaterializer<T> prepareForRead(org.apache.hadoop.conf.Configuration configuration, Map<String, String> keyValueMetaData, org.apache.parquet.schema.MessageType fileSchema, ReadSupport.ReadContext readContext) Description copied from class:ReadSupportcalled 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:
prepareForReadin 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
-
prepareForRead
public org.apache.parquet.io.api.RecordMaterializer<T> prepareForRead(org.apache.parquet.conf.ParquetConfiguration configuration, Map<String, String> keyValueMetaData, org.apache.parquet.schema.MessageType fileSchema, ReadSupport.ReadContext readContext) Description copied from class:ReadSupportcalled 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- Overrides:
prepareForReadin classReadSupport<T>- Parameters:
configuration- the 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
-
toString
-