hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chia-Ping Tsai (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HBASE-18927) Add the DataType which is subset of KeyValue#Type to CellBuilder for building cell
Date Wed, 04 Oct 2017 04:42:00 GMT

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

Chia-Ping Tsai commented on HBASE-18927:
----------------------------------------

{quote}
In ExtendedCellBuilder you want to keep both versions of setType?
ExtendedCellBuilder setType(final byte type);
This been used heavily?
{quote}
Yes, the common use cases is to overwirte some {{Cell}}'s fields. For example,
{code}
    return cellBuilder.clear()
            .setRow(CellUtil.cloneRow(cell))
            .setFamily(WALEdit.METAFAMILY)
            .setQualifier(WALEdit.BULK_LOAD)
            .setTimestamp(cell.getTimestamp())
            .setType(cell.getTypeByte())
            .setValue(newBulkLoadDescriptor.toByteArray())
            .build();
{code}

> Add the DataType which is subset of KeyValue#Type to CellBuilder for building cell
> ----------------------------------------------------------------------------------
>
>                 Key: HBASE-18927
>                 URL: https://issues.apache.org/jira/browse/HBASE-18927
>             Project: HBase
>          Issue Type: Task
>            Reporter: Chia-Ping Tsai
>            Assignee: Chia-Ping Tsai
>             Fix For: 2.0.0-beta-1
>
>         Attachments: HBASE-18927.v0.patch
>
>
> All class we use to build own cell are shown below:
> 1) Cell -> IA.Public
> 2) CellBuilder -> IA.Public
> 3) CellBuilderFactory -> IA.Public
> 4) Put -> IA.Public
> 5) Put#add(Cell) -> IA.Public
> *5) KeyValue#Type -> IA.Private*
> That means that building the cell is on the unstable way.
> see [dev list|https://lists.apache.org/thread.html/e2bd9d526412df337d92327d5339b7a43534b5f841f8319f3664e849@%3Cdev.hbase.apache.org%3E]
for more information.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message