org.apache.hadoop.mapreduce.lib.input.CombineFileRecordReader Java Examples
The following examples show how to use
org.apache.hadoop.mapreduce.lib.input.CombineFileRecordReader.
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: CombinedAvroKeyInputFormat.java From datafu with Apache License 2.0 | 5 votes |
@SuppressWarnings("unchecked") @Override public RecordReader<AvroKey<T>, NullWritable> createRecordReader(InputSplit inputSplit, TaskAttemptContext context) throws IOException { Schema readerSchema = AvroJob.getInputKeySchema(context.getConfiguration()); if (null == readerSchema) { LOG.warn("Reader schema was not set. Use AvroJob.setInputKeySchema() if desired."); LOG.info("Using a reader schema equal to the writer schema."); } Object c = CombinedAvroKeyRecordReader.class; return new CombineFileRecordReader<AvroKey<T>, NullWritable>((CombineFileSplit) inputSplit, context, (Class<? extends RecordReader<AvroKey<T>, NullWritable>>)c); }
Example #2
Source File: CombineAvroKeyInputFormat.java From incubator-pinot with Apache License 2.0 | 5 votes |
@Override public RecordReader<AvroKey<T>, NullWritable> createRecordReader(InputSplit split, TaskAttemptContext context) throws IOException { Class cls = AvroKeyRecordReaderWrapper.class; return new CombineFileRecordReader<>((CombineFileSplit) split, context, (Class<? extends RecordReader<AvroKey<T>, NullWritable>>) cls); }
Example #3
Source File: TextSequenceFileCombinerFormat.java From datawave with Apache License 2.0 | 4 votes |
@Override public RecordReader<Text,Counters> createRecordReader(InputSplit split, TaskAttemptContext context) throws IOException { return new CombineFileRecordReader<>((CombineFileSplit) split, context, TextRecordReader.class); }
Example #4
Source File: NullWritableSequenceFileCombinerFormat.java From datawave with Apache License 2.0 | 4 votes |
@Override public RecordReader<NullWritable,Counters> createRecordReader(InputSplit split, TaskAttemptContext context) throws IOException { return new CombineFileRecordReader<>((CombineFileSplit) split, context, NullRecordReader.class); }
Example #5
Source File: MDSCombineSpreadInputFormat.java From multiple-dimension-spread with Apache License 2.0 | 4 votes |
@Override public RecordReader<NullWritable,Spread> createRecordReader( final InputSplit split , final TaskAttemptContext context)throws IOException{ return new CombineFileRecordReader<NullWritable,Spread>( (CombineFileSplit)split , context , MDSCombineSpreadReader.class ); }
Example #6
Source File: MultiFileWordCount.java From hadoop with Apache License 2.0 | 4 votes |
public RecordReader<WordOffset,Text> createRecordReader(InputSplit split, TaskAttemptContext context) throws IOException { return new CombineFileRecordReader<WordOffset, Text>( (CombineFileSplit)split, context, CombineFileLineRecordReader.class); }
Example #7
Source File: MultiFileWordCount.java From big-c with Apache License 2.0 | 4 votes |
public RecordReader<WordOffset,Text> createRecordReader(InputSplit split, TaskAttemptContext context) throws IOException { return new CombineFileRecordReader<WordOffset, Text>( (CombineFileSplit)split, context, CombineFileLineRecordReader.class); }
Example #8
Source File: OrcValueCombineFileInputFormat.java From incubator-gobblin with Apache License 2.0 | 4 votes |
@Override public RecordReader<NullWritable, OrcValue> createRecordReader(InputSplit split, TaskAttemptContext context) throws IOException { return new CombineFileRecordReader((CombineFileSplit) split, context, OrcValueCombineFileRecordReader.class); }
Example #9
Source File: AvroKeyRecursiveCombineFileInputFormat.java From incubator-gobblin with Apache License 2.0 | 4 votes |
@Override public RecordReader<AvroKey<GenericRecord>, NullWritable> createRecordReader(InputSplit split, TaskAttemptContext cx) throws IOException { return new CombineFileRecordReader<>((CombineFileSplit) split, cx, AvroKeyCombineFileRecordReader.class); }
Example #10
Source File: CsvBlurDriver.java From incubator-retired-blur with Apache License 2.0 | 4 votes |
@Override public RecordReader<Writable, Text> createRecordReader(InputSplit split, TaskAttemptContext context) throws IOException { return new CombineFileRecordReader<Writable, Text>((CombineFileSplit) split, context, SequenceFileRecordReaderWrapper.class); }