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

add lifecycle to Comparators

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Not A Problem
    • None
    • None
    • None

    Description

      current mapreduce api is using RawComparator interface in:

      setGroupingComparatorClass
      setSortComparatorClass

      This interface has no lifecycle support. I propose to change that methods to take argument new class implements RawComparator with setup and cleanup methods.

      This will leave existing code with RawComparator alone, Providing some backward compatibility.

      new class:

      class SortComparator implements RawComparator

      Attachments

        Activity

          People

            Unassigned Unassigned
            hsn Radim Kolar
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: