parquet.hadoop.api.ReadSupport Java Examples
The following examples show how to use
parquet.hadoop.api.ReadSupport.
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: PentahoTwitterInputFormat.java From pentaho-hadoop-shims with Apache License 2.0 | 6 votes |
@Override public IPentahoRecordReader createRecordReader( IPentahoInputSplit split ) throws Exception { return inClassloader( () -> { PentahoInputSplitImpl pentahoInputSplit = (PentahoInputSplitImpl) split; InputSplit inputSplit = pentahoInputSplit.getInputSplit(); ReadSupport<RowMetaAndData> readSupport = new PentahoParquetReadSupport(); ParquetRecordReader<RowMetaAndData> nativeRecordReader = new ParquetRecordReader<>( readSupport, ParquetInputFormat.getFilter( job .getConfiguration() ) ); TaskAttemptContextImpl task = new TaskAttemptContextImpl( job.getConfiguration(), new TaskAttemptID() ); nativeRecordReader.initialize( inputSplit, task ); return new PentahoParquetRecordReader( nativeRecordReader ); } ); }