You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "stack (JIRA)" <ji...@apache.org> on 2015/04/03 23:56:53 UTC

[jira] [Commented] (HBASE-13404) Add/Refactor vint and vlong related functions in Bytes

    [ https://issues.apache.org/jira/browse/HBASE-13404?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14395140#comment-14395140 ] 

stack commented on HBASE-13404:
-------------------------------

[~apeksharma] Is this a good idea? The Bytes vint stuff is only used in a few places, the vint implementation is not very good (hadoop) and not the same as pb, and even where we do use vints, I think its fair to say we now regret it (at least for mvcc on Cell).

> Add/Refactor vint and vlong related functions in Bytes
> ------------------------------------------------------
>
>                 Key: HBASE-13404
>                 URL: https://issues.apache.org/jira/browse/HBASE-13404
>             Project: HBase
>          Issue Type: Improvement
>            Reporter: Apekshit Sharma
>            Priority: Minor
>   Original Estimate: 48h
>  Remaining Estimate: 48h
>
> Bytes has these 4 functions for a lot of data types, might make sense to add missing ones/fix existing ones related to vint and vlong.
> 1) read X from byte[]
> 2) read X from offset in byte[]
> 3) put X in byte[] at a given offset
> 4) return byte[] for X
> Also add tests for these new/changed functions.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)