[
https://issues.apache.org/jira/browse/HBASE-12291?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14710613#comment-14710613
]
ramkrishna.s.vasudevan commented on HBASE-12291:
------------------------------------------------
This is for cases like
HFileBlock#getBufferReadOnly() and HFileBlock#getBufferReadOnlyWithHeader()
where we could safely create a read only type of buffer. With the ByteBuff now
in place we can imitate the behaviour of what nio ByteBuffer does by creating a
read only version which throw exception when we try to modify the buffer. Not
a critical piece anyway. Will be a good add on so that the users of that buffer
does not corrupt it.
> Create Read only buffers where ever possible
> --------------------------------------------
>
> Key: HBASE-12291
> URL: https://issues.apache.org/jira/browse/HBASE-12291
> Project: HBase
> Issue Type: Sub-task
> Components: regionserver, Scanners
> Reporter: ramkrishna.s.vasudevan
> Assignee: ramkrishna.s.vasudevan
>
> This issue is to see if we can really create a Read only buffer in the read
> path. Later can see if this needs to be BR or our own BB impl.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)