hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Apekshit Sharma (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HBASE-13404) Add/Refactor vint and vlong related functions in Bytes
Date Sat, 04 Apr 2015 01:17:33 GMT

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

Apekshit Sharma commented on HBASE-13404:
-----------------------------------------

Changes in patch
VInt functions added
{code}
int readAsVInt(byte[] buffer)
int readAsVInt(byte[] buffer, int offset)  // deprecated bytesToVint
putAsVInt(byte[] buffer, int offset, int vint)
byte [] vintToBytes(int vint)  // deprecated vintToBytes(long vint)
{code}

VLong functions added
{code}
long readAsVLong(byte []  bytes)
putAsVLong((byte[] buffer, int offset, long vlong)
byte [] vlongToBytes(long vlong)
{code}

+ some tests

> 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
>         Attachments: HBASE-13404.patch
>
>   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