hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Anoop Sam John (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HBASE-18010) Connect CellChunkMap to be used for flattening in CompactingMemStore
Date Thu, 18 May 2017 15:30:04 GMT

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

Anoop Sam John commented on HBASE-18010:

protected long heapSizeChange(Cell cell, boolean succ) {
    if (succ) {
      return ClassSize
          .align(ClassSize.CONCURRENT_SKIPLISTMAP_ENTRY + CellUtil.estimatedHeapSizeOf(cell));
    return 0;
public static long estimatedHeapSizeOf(final Cell cell) {
    if (cell instanceof HeapSize) {
      return ((HeapSize) cell).heapSize();
    // TODO: Add sizing of references that hold the row, family, etc., arrays.
    return estimatedSerializedSizeOf(cell);
Every ExtendedCell is a HeapSize impl.  So we will end up calling KV.heapSize() only

> Connect CellChunkMap to be used for flattening in CompactingMemStore
> --------------------------------------------------------------------
>                 Key: HBASE-18010
>                 URL: https://issues.apache.org/jira/browse/HBASE-18010
>             Project: HBase
>          Issue Type: Sub-task
>            Reporter: Anastasia Braginsky
> The CellChunkMap helps to create a new type of ImmutableSegment, where the index (CellSet's
delegatee) is going to be CellChunkMap. No big cells or upserted cells are going to be supported

This message was sent by Atlassian JIRA

View raw message