You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hbase.apache.org by "Phil Yang (JIRA)" <ji...@apache.org> on 2016/09/12 06:54:20 UTC
[jira] [Created] (HBASE-16612) Use array to cache Types for
KeyValue.Type.codeToType
Phil Yang created HBASE-16612:
---------------------------------
Summary: Use array to cache Types for KeyValue.Type.codeToType
Key: HBASE-16612
URL: https://issues.apache.org/jira/browse/HBASE-16612
Project: HBase
Issue Type: Bug
Reporter: Phil Yang
Assignee: Phil Yang
Priority: Minor
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.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)