Uploaded image for project: 'Hadoop Map/Reduce'
  1. Hadoop Map/Reduce
  2. MAPREDUCE-990

Making distributed cache getters in JobContext never return null

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • None
    • None
    • None
    • None

    Description

      MAPREDUCE-898 moved distributed cache setters and getters into Job and JobContext. Since the API is new, I'd like to propose that those getters never return null, but instead always return an array, even if it's empty.

      If people don't like this change, I can instead merely update the javadoc to reflect the fact that null may be returned.

      Attachments

        1. MAPREDUCE-990.patch
          4 kB
          Thomas White
        2. MAPREDUCE-990.patch.txt
          4 kB
          Philip Martin

        Activity

          People

            philip Philip Martin
            philip Philip Martin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: