Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-6161

Add get/setEnum to Configuration

VotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 0.21.0
    • conf
    • None
    • Reviewed
    • Hide
      Added following APIs to Configuration:
      - public <T extends Enum<T>> T getEnum(String name, T defaultValue)
      - public <T extends Enum<T>> void setEnum(String name, T value)
      Show
      Added following APIs to Configuration: - public <T extends Enum<T>> T getEnum(String name, T defaultValue) - public <T extends Enum<T>> void setEnum(String name, T value)

    Description

      It would be useful if Configuration had helper get/set methods for enumerated types.

      Attachments

        1. C6161-0.patch
          2 kB
          Christopher Douglas
        2. hadoop-6161-yahoo-20-v1.patch
          2 kB
          Amar Kamat

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            cdouglas Christopher Douglas
            cdouglas Christopher Douglas
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment