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

ramkrishna.s.vasudevan commented on HBASE-10861:
------------------------------------------------

bq.Does the patch introduce new javadoc warnings?
Let me check
bq.Does asReadOnlyByteRange actually return a read only ByteRange?
Currently no. But trying to take a copy of the byte range.  In case of block 
cache when we deserialize a read only byte buffer is preffered.  So in case we 
want a read only buffer then we may have to subclass SimplePositinedByteRange 
and support only read methods in them.

> Supporting API in ByteRange
> ---------------------------
>
>                 Key: HBASE-10861
>                 URL: https://issues.apache.org/jira/browse/HBASE-10861
>             Project: HBase
>          Issue Type: Improvement
>            Reporter: ramkrishna.s.vasudevan
>            Assignee: ramkrishna.s.vasudevan
>         Attachments: HBASE-10861.patch
>
>
> We would need APIs that would 
> setLimit(int limit)
> getLimt()
> asReadOnly()
> These APIs would help in implementations that have Buffers offheap (for now 
> BRs backed by DBB).
> If anything more is needed could be added when needed.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to