parquet.io.api.RecordMaterializer Java Examples

The following examples show how to use parquet.io.api.RecordMaterializer. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: ParquetHdfsDataWriterTest.java    From incubator-gobblin with Apache License 2.0 4 votes vote down vote up
@Override
public RecordMaterializer<Group> prepareForRead(Configuration conf, Map<String, String> metaData,
    MessageType schema, ReadContext context) {
  return new GroupRecordConverter(schema);
}
 
Example #2
Source File: PentahoParquetReadSupport.java    From pentaho-hadoop-shims with Apache License 2.0 4 votes vote down vote up
@Override
public RecordMaterializer<RowMetaAndData> prepareForRead( Configuration configuration,
                                                          Map<String, String> keyValueMetaData,
                                                          MessageType fileSchema, ReadContext readContext ) {
  return new ParquetConverter.MyRecordMaterializer( converter );
}
 
Example #3
Source File: SimpleReadSupport.java    From parquet-tools with Apache License 2.0 4 votes vote down vote up
@Override
public RecordMaterializer<SimpleRecord> prepareForRead(Configuration conf, Map<String,String> metaData, MessageType schema, ReadContext context) {
  return new SimpleRecordMaterializer(schema);
}