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

Make Op#valueOf() Public

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Patch Available
    • Minor
    • Resolution: Unresolved
    • 3.2.0
    • None
    • ipc

    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
          Hemanth Boyina

        Activity

          People

            hemanthboyina Hemanth Boyina
            belugabehr David Mollitor
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated: