[
https://issues.apache.org/jira/browse/HBASE-17836?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15951411#comment-15951411
]
Anoop Sam John commented on HBASE-17836:
----------------------------------------
You will have to add Bytes.SIZEOF_INT. (See KV case)
if (cell instanceof KeyValue) {
1392 return ((KeyValue)cell).getLength() + Bytes.SIZEOF_INT;
1393 }
This check can be remove now as KV is ExtendedCell type any way
> CellUtil#estimatedSerializedSizeOf is slow when input is ByteBufferCell
> -----------------------------------------------------------------------
>
> Key: HBASE-17836
> URL: https://issues.apache.org/jira/browse/HBASE-17836
> Project: HBase
> Issue Type: Improvement
> Affects Versions: 2.0.0
> Reporter: Chia-Ping Tsai
> Assignee: Chia-Ping Tsai
> Priority: Minor
> Fix For: 2.0.0
>
> Attachments: HBASE-17836.v0.patch
>
>
> We call CellUtil#estimatedSerializedSize to calculate the size of rows when
> scanning. If the input is ByteBufferCell, the
> CellUtil#estimatedSerializedSizeOf parses many length components to get the
> qualifierLength stored in the backing buffer.
> We should consider using the KeyValueUtil#getSerializedSize.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)