Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-14452

Make Op#valueOf() Public

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Patch Available
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.2.0
    • Fix Version/s: None
    • Component/s: ipc
    • Labels:

      Description

      Change signature of private static Op valueOf(byte code) to be public. Right now, the only easy way to look up in Op is to pass in a DataInput object, which is not all that flexible and efficient for other custom implementations that want to store the Op code a different way.

      https://github.com/apache/hadoop/blob/8c95cb9d6bef369fef6a8364f0c0764eba90e44a/hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/protocol/datatransfer/Op.java#L53

        Attachments

        1. HDFS-14452.patch
          0.9 kB
          hemanthboyina

          Activity

            People

            • Assignee:
              hemanthboyina hemanthboyina
              Reporter:
              belugabehr David Mollitor
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated: