Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Minor 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.

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

        Activity

        Tom White made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Hemanth Yamijala made changes -
        Release Note 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)
        Amar Kamat made changes -
        Attachment hadoop-6161-yahoo-20-v1.patch [ 12434928 ]
        Chris Douglas made changes -
        Status Patch Available [ 10002 ] Resolved [ 5 ]
        Hadoop Flags [Reviewed]
        Fix Version/s 0.21.0 [ 12313563 ]
        Resolution Fixed [ 1 ]
        Chris Douglas made changes -
        Status Open [ 1 ] Patch Available [ 10002 ]
        Assignee Chris Douglas [ chris.douglas ]
        Chris Douglas made changes -
        Field Original Value New Value
        Attachment C6161-0.patch [ 12413934 ]
        Chris Douglas created issue -

          People

          • Assignee:
            Chris Douglas
            Reporter:
            Chris Douglas
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development