Class GenericInputSplit

    • Constructor Detail

      • GenericInputSplit

        public GenericInputSplit​(int partitionNumber,
                                 int totalNumberOfPartitions)
        Creates a generic input split with the given split number.
        Parameters:
        partitionNumber - The number of the split's partition.
        totalNumberOfPartitions - The total number of the splits (partitions).
    • Method Detail

      • getSplitNumber

        public int getSplitNumber()
        Description copied from interface: InputSplit
        Returns the number of this input split.
        Specified by:
        getSplitNumber in interface InputSplit
        Returns:
        the number of this input split
      • getTotalNumberOfSplits

        public int getTotalNumberOfSplits()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object