Class LocalityAwareSplitAssigner

  • All Implemented Interfaces:
    FileSplitAssigner

    @PublicEvolving
    public class LocalityAwareSplitAssigner
    extends Object
    implements FileSplitAssigner
    A FileSplitAssigner that assigns to each host preferably splits that are local, before assigning splits that are not local.

    Implementation Note: This class is an adjusted copy of the previous API's class LocatableInputSplitAssigner and reproduces the same assignment logic, for compatibility. The logic has not been changed or optimized.