Class GroupReadSupport
- java.lang.Object
-
- org.apache.parquet.hadoop.api.ReadSupport<Group>
-
- org.apache.parquet.hadoop.example.GroupReadSupport
-
public class GroupReadSupport extends ReadSupport<Group>
-
-
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 GroupReadSupport()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ReadSupport.ReadContext
init(org.apache.hadoop.conf.Configuration configuration, Map<String,String> keyValueMetaData, MessageType fileSchema)
called inInputFormat.getSplits(org.apache.hadoop.mapreduce.JobContext)
in the front endRecordMaterializer<Group>
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 destination-
Methods inherited from class org.apache.parquet.hadoop.api.ReadSupport
getSchemaForRead, getSchemaForRead, init
-
-
-
-
Method Detail
-
init
public ReadSupport.ReadContext init(org.apache.hadoop.conf.Configuration configuration, Map<String,String> keyValueMetaData, MessageType fileSchema)
Description copied from class:ReadSupport
called inInputFormat.getSplits(org.apache.hadoop.mapreduce.JobContext)
in the front end- Overrides:
init
in classReadSupport<Group>
- Parameters:
configuration
- the job configurationkeyValueMetaData
- the app specific metadata from the filefileSchema
- the schema of the file- Returns:
- the readContext that defines how to read the file
-
prepareForRead
public RecordMaterializer<Group> 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<Group>
- 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
-
-