Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-16612

Use array to cache Types for KeyValue.Type.codeToType

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.1.6, 1.2.3, 0.98.22
    • 1.4.0, 2.0.0
    • None
    • None
    • Reviewed

    Description

      We don't rely on enum ordinals in KeyValye.Type. We have own code in it. In codeToType, we use a loop to find the Type which is not a good idea. We can just use an arryay[256] to cache all types.

      Attachments

        1. HBASE-16612-v1.patch
          1 kB
          Phil Yang

        Activity

          People

            yangzhe1991 Phil Yang
            yangzhe1991 Phil Yang
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: