Package com.mongodb.hadoop.mapred.input

Examples of com.mongodb.hadoop.mapred.input.MongoRecordReader


        if (!(split instanceof MongoInputSplit))
            throw new IllegalStateException("Creation of a new RecordReader requires a MongoInputSplit instance.");

        final MongoInputSplit mis = (MongoInputSplit) split;

        return new MongoRecordReader(mis);
    }
View Full Code Here


        // split is of type 'MongoHiveInputSplit'
        MongoHiveInputSplit mhis = (MongoHiveInputSplit) split;

        // return MongoRecordReader. Delegate is of type 'MongoInputSplit'
        return new MongoRecordReader((MongoInputSplit) mhis.getDelegate());
    }
View Full Code Here

            throw new IllegalStateException("Creation of a new RecordReader requires a MongoInputSplit instance.");
        }

        final MongoInputSplit mis = (MongoInputSplit) split;

        return new MongoRecordReader(mis);
    }
View Full Code Here

TOP

Related Classes of com.mongodb.hadoop.mapred.input.MongoRecordReader

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.