Example usage for org.apache.hadoop.mapreduce.lib.input FileSplit FileSplit

List of usage examples for org.apache.hadoop.mapreduce.lib.input FileSplit FileSplit

Introduction

In this page you can find the example usage for org.apache.hadoop.mapreduce.lib.input FileSplit FileSplit.

Prototype

public FileSplit(Path file, long start, long length, String[] hosts, String[] inMemoryHosts) 

Source Link

Document

Constructs a split with host and cached-blocks information

Usage

From source file:com.ikanow.aleph2.analytics.hadoop.assets.UpdatedFileInputFormat.java

License:Apache License

/**
 * A factory that makes the split for this class. It can be overridden
 * by sub-classes to make sub-types//ww  w  . j  a v a2 s.co  m
 */
protected FileSplit makeSplit(Path file, long start, long length, String[] hosts, String[] inMemoryHosts) {
    return new FileSplit(file, start, length, hosts, inMemoryHosts);
}