List of usage examples for org.apache.hadoop.mapred.lib CombineFileSplit getNumPaths
public int getNumPaths()
From source file:com.ricemap.spateDB.mapred.BinaryRecordReader.java
License:Apache License
@SuppressWarnings("unchecked") public BinaryRecordReader(Configuration conf, CombineFileSplit split) throws IOException { this.conf = conf; this.split = split; internalReaders = new RecordReader[(int) split.getNumPaths()]; // Initialize all record readers for (int i = 0; i < split.getNumPaths(); i++) { this.internalReaders[i] = createRecordReader(this.conf, this.split, i); }// www .j a v a2 s . co m }