hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "stack (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HBASE-13404) Add/Refactor vint and vlong related functions in Bytes
Date Fri, 03 Apr 2015 21:56:53 GMT

    [ 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)

Mime
View raw message