Interface InputSplitSource<T extends InputSplit>

    • Method Detail

      • createInputSplits

        T[] createInputSplits​(int minNumSplits)
                       throws Exception
        Computes the input splits. The given minimum number of splits is a hint as to how many splits are desired.
        Parameters:
        minNumSplits - Number of minimal input splits, as a hint.
        Returns:
        An array of input splits.
        Throws:
        Exception - Exceptions when creating the input splits may be forwarded and will cause the execution to permanently fail.
      • getInputSplitAssigner

        InputSplitAssigner getInputSplitAssigner​(T[] inputSplits)
        Returns the assigner for the input splits. Assigner determines which parallel instance of the input format gets which input split.
        Returns:
        The input split assigner.