[ 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_3.patch Patch creates AbstractByteRange and AbstractBytePositionedByteRange. Added SimpleByteRange, SimplePositionedByteRange(Immutable) and SimpleMutableByteRange, SimplePositionedMutableByteRange(Mutable). Later we can subclass AbstractByteRange to created BB backed ByteRanges and here again if needed we could create mutable and immutable. though currently only immutable would be enough in my opinion. > 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, > HBASE-10861_3.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)