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

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.21.0
    • Component/s: conf
    • Labels:
      None
    • Hadoop Flags:
      Reviewed
    • Release Note:
      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. hadoop-6161-yahoo-20-v1.patch
          2 kB
          Amar Kamat
        2. C6161-0.patch
          2 kB
          Christopher Douglas

          Activity

            People

            • Assignee:
              cdouglas Christopher Douglas
              Reporter:
              cdouglas Christopher Douglas

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment