Package org.apache.hadoop.mapred.lib

Examples of org.apache.hadoop.mapred.lib.NLineInputFormat.configure()


   
    writeInput(input);
   
    conf.setInt("mapred.line.input.format.linespermap", 2);
    NLineInputFormat format = new NLineInputFormat();
    format.configure(conf);
    InputSplit[] splits = format.getSplits(conf, 2);
    RecordReader<LongWritable, Text> recordReader =
      format.getRecordReader(splits[0], conf, Reporter.NULL);
    checkNextLine(recordReader, 0, "On the top of the Crumpetty Tree");
    checkNextLine(recordReader, 33, "The Quangle Wangle sat,");
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.