[
https://issues.apache.org/jira/browse/HBASE-10655?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14070404#comment-14070404
]
Andrew Purtell commented on HBASE-10655:
----------------------------------------
HDFS-6709 introduces a slab allocator as
hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/util/SlabAllocator.java
. It's simple but can be easily adapted for this issue as a starting point for
further refinements. The hadoop-common code introduces a SlabRegion type that
is very similar to our PositionedByteRange.
> ByteRange-fronted slab allocator for on- and off-heap cellblock storage
> -----------------------------------------------------------------------
>
> Key: HBASE-10655
> URL: https://issues.apache.org/jira/browse/HBASE-10655
> Project: HBase
> Issue Type: Sub-task
> Reporter: Andrew Purtell
>
> Our ByteRange interface has some nice properties such as a compareTo method
> using hbase-friendly unsigned byte comparison. This can be backed by either
> on-heap or off-heap byte buffers. Consider an allocator that internally
> allocates huge on or off-heap slabs and hands out ByteRanges over portions of
> those arenas. Keep it as simple as possible, optimized for HBase needs. Can
> be fairly standalone with respect to the rest of the HBase code.
--
This message was sent by Atlassian JIRA
(v6.2#6252)