You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Istvan Toth (Jira)" <ji...@apache.org> on 2024/06/18 05:52:00 UTC

[jira] [Commented] (HBASE-28670) Marker interface for Cells which may have backing ByteBuffers

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

Istvan Toth commented on HBASE-28670:
-------------------------------------

something like 
interface MaybeOffHeapCell, which adds a method isOffHeap()

So that wrapper Cells could return the value according to the wrapped Cell's type.

> Marker interface for Cells which may have backing ByteBuffers
> -------------------------------------------------------------
>
>                 Key: HBASE-28670
>                 URL: https://issues.apache.org/jira/browse/HBASE-28670
>             Project: HBase
>          Issue Type: Improvement
>            Reporter: Istvan Toth
>            Priority: Major
>
> We often need to treat cells that may have backing ByteBuffers differently.
> The easy thing to would be checking if they are ByteBufferExtendedCell , but CellWrapper , OnHepDecodedCell and TagRewriteCell may also delegate to a ByteBufferExtendedCell.
> Having a marker interface that indicates that a cell is guaranteed to be on-heap, or that it may not be fully on-heap would make it easier and faster to check whether we need to clone them. (We only need one, it may be either negative or positive)



--
This message was sent by Atlassian Jira
(v8.20.10#820010)