[ 
https://issues.apache.org/jira/browse/HBASE-10861?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

ramkrishna.s.vasudevan updated HBASE-10861:
-------------------------------------------

    Attachment: HBASE-10861_2.patch

Creates SimpleImmutableByteRange and SimpleImmutablePositionedByteRange and 
returns a read only version of the ByteRanges.
When we need an implementation for Offheap we may need to create such a class 
SimpleOffHeapImmutableBR or in case of DBB backed ByteRange we could call the 
DBB.asReadOnly() and return that new BB. Anyway that is for future usage.

> 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, HBASE-10861_2.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