[
https://issues.apache.org/jira/browse/HBASE-14116?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14632523#comment-14632523
]
Anoop Sam John commented on HBASE-14116:
----------------------------------------
getXXXStrictlyForward takes absolute position and it has to be always after
the current position. Because of this restriction it will be better if this
API is changed so as to take an offset from the current pos and get primitive
value at that pos. The assumption holds true by default then. Attached patch
doing this.
> Change ByteBuff.getXXXStrictlyForward to relative position based reads
> ----------------------------------------------------------------------
>
> Key: HBASE-14116
> URL: https://issues.apache.org/jira/browse/HBASE-14116
> Project: HBase
> Issue Type: Sub-task
> Reporter: ramkrishna.s.vasudevan
> Assignee: Anoop Sam John
> Fix For: 2.0.0
>
> Attachments: HBASE-14116.patch
>
>
> There is a TODO added in ByteBuff.getXXXStrictlyForward to a positional based
> read from the current position. This could help in avoiding the initial check
> that is added in the API to ensure that the passed in index is always greater
> than the current position.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)