Package com.alexholmes.hadooputils.combine.common.mapred

Examples of com.alexholmes.hadooputils.combine.common.mapred.CommonCombineRecordReader


    @SuppressWarnings("unchecked")
    public RecordReader<K, V> getRecordReader(InputSplit split, JobConf job, Reporter reporter) throws IOException {
        reporter.setStatus(split.toString());

        return new CommonCombineRecordReader(job, (CombineFileSplit) split, new CommonCombineRecordReader.RecordReaderEngineerer() {
            @Override
            public RecordReader createRecordReader(Configuration conf, FileSplit split) throws IOException {
                return new SequenceFileRecordReader<K, V>(conf, split);
            }
        });
View Full Code Here


    public RecordReader<AvroWrapper<T>, NullWritable>
    getRecordReader(final InputSplit split, final JobConf job, final Reporter reporter)
            throws IOException {
        reporter.setStatus(split.toString());

        return new CommonCombineRecordReader(job, (CombineFileSplit) split, new CommonCombineRecordReader.RecordReaderEngineerer() {
            @Override
            public RecordReader createRecordReader(Configuration conf, FileSplit split) throws IOException {
                return new AvroRecordReader<T>(job, (FileSplit) split);
            }
        });
View Full Code Here

TOP

Related Classes of com.alexholmes.hadooputils.combine.common.mapred.CommonCombineRecordReader

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.