Class GroupReadSupport
java.lang.Object
org.apache.parquet.hadoop.api.ReadSupport<org.apache.parquet.example.data.Group>
org.apache.parquet.hadoop.example.GroupReadSupport
-
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(org.apache.hadoop.conf.Configuration configuration, Map<String, String> keyValueMetaData, org.apache.parquet.schema.MessageType fileSchema) called inInputFormat.getSplits(org.apache.hadoop.mapreduce.JobContext)in the front endinit(org.apache.parquet.conf.ParquetConfiguration configuration, Map<String, String> keyValueMetaData, org.apache.parquet.schema.MessageType fileSchema) called inInputFormat.getSplits(org.apache.hadoop.mapreduce.JobContext)in the front endorg.apache.parquet.io.api.RecordMaterializer<org.apache.parquet.example.data.Group>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<org.apache.parquet.example.data.Group>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 destinationMethods inherited from class org.apache.parquet.hadoop.api.ReadSupport
getSchemaForRead, getSchemaForRead, init
-
Constructor Details
-
GroupReadSupport
public GroupReadSupport()
-
-
Method Details
-
init
public ReadSupport.ReadContext init(org.apache.hadoop.conf.Configuration configuration, Map<String, String> keyValueMetaData, org.apache.parquet.schema.MessageType fileSchema) Description copied from class:ReadSupportcalled inInputFormat.getSplits(org.apache.hadoop.mapreduce.JobContext)in the front end- Overrides:
initin classReadSupport<org.apache.parquet.example.data.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
-
init
public ReadSupport.ReadContext init(org.apache.parquet.conf.ParquetConfiguration configuration, Map<String, String> keyValueMetaData, org.apache.parquet.schema.MessageType fileSchema) Description copied from class:ReadSupportcalled inInputFormat.getSplits(org.apache.hadoop.mapreduce.JobContext)in the front end- Overrides:
initin classReadSupport<org.apache.parquet.example.data.Group>- Parameters:
configuration- the 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 org.apache.parquet.io.api.RecordMaterializer<org.apache.parquet.example.data.Group> 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<org.apache.parquet.example.data.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
-
prepareForRead
public org.apache.parquet.io.api.RecordMaterializer<org.apache.parquet.example.data.Group> 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<org.apache.parquet.example.data.Group>- 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
-