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
          Chris Douglas

          Activity

            People

            • Assignee:
              chris.douglas Chris Douglas
              Reporter:
              chris.douglas Chris Douglas
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: