[ https://issues.apache.org/jira/browse/HADOOP-2329?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12547703 ]
Edward Yoon commented on HADOOP-2329: ------------------------------------- Let's see the integer value example. {code} int integer = 123456789; ByteBuffer buff = ByteBuffer.allocate(Integer.SIZE / 8); buff.putInt(integer); buff.order(ByteOrder.BIG_ENDIAN); 1: table.put(lockId, column, buff.array()); 2: table.put(lockId, column, "123456789".getBytes()); {code} 4 bytes vs 9 bytes. Nine is the almost double of four. > [Hbase Shell] Addition of Built-In Value Data Types for efficient accessing > and stroing data > -------------------------------------------------------------------------------------------- > > Key: HADOOP-2329 > URL: https://issues.apache.org/jira/browse/HADOOP-2329 > Project: Hadoop > Issue Type: New Feature > Components: contrib/hbase > Affects Versions: 0.16.0 > Reporter: Edward Yoon > Assignee: Edward Yoon > Fix For: 0.16.0 > > > A built-in data type is a fundamental data type that the hbase shell defines. > (character strings, scalars, ranges, arrays, ... , etc) > If you need a specialized data type that is not currently provided as a > built-in type, > you are encouraged to write your own user-defined data type using UDC(not yet > implemented). > (or contribute it for distribution in a future release of hbase shell) -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.