Class LocatableInputSplit

    • Constructor Detail

      • LocatableInputSplit

        public LocatableInputSplit​(int splitNumber,
                                   String[] hostnames)
        Creates a new locatable input split that refers to a multiple host as its data location.
        Parameters:
        splitNumber - The number of the split
        hostnames - The names of the hosts storing the data this input split refers to.
      • LocatableInputSplit

        public LocatableInputSplit​(int splitNumber,
                                   String hostname)
        Creates a new locatable input split that refers to a single host as its data location.
        Parameters:
        splitNumber - The number of the split.
        hostname - The names of the host storing the data this input split refers to.
    • 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
      • getHostnames

        public String[] getHostnames()
        Returns the names of the hosts storing the data this input split refers to
        Returns:
        the names of the hosts storing the data this input split refers to
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object