Example usage for org.apache.hadoop.mapred.lib CombineFileSplit getNumPaths

List of usage examples for org.apache.hadoop.mapred.lib CombineFileSplit getNumPaths

Introduction

In this page you can find the example usage for org.apache.hadoop.mapred.lib CombineFileSplit getNumPaths.

Prototype

public int getNumPaths() 

Source Link

Document

Returns the number of Paths in the split

Usage

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
}