[
https://issues.apache.org/jira/browse/HBASE-20623?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16503201#comment-16503201
]
maoling commented on HBASE-20623:
---------------------------------
1.If we use **
*final CellBuilder cell =
CellBuilderFactory.create(CellBuilderType.SHALLOW_COPY).setType(Cell.Type.Put);*
** Put.add(cell) will work.more details at
[this|https://github.com/apache/hbase/blob/master/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift/ThriftServerRunner.java#L1933]
2.
{code:java}
A getCellBuilder() method that gives you a CellBuilder instance that
already has relevant parts set(the Type and Row set)?{code}
Can we do this? the default value of *CellBuilderType* can be
*SHALLOW_COPY,*but the value of the Type or Row set should be depended on user?
3.Where can we find the doc examples about the usage of PUT?
> Introduce the helper method "getCellBuilder()" to Mutation
> ----------------------------------------------------------
>
> Key: HBASE-20623
> URL: https://issues.apache.org/jira/browse/HBASE-20623
> Project: HBase
> Issue Type: Task
> Components: API
> Reporter: Chia-Ping Tsai
> Assignee: maoling
> Priority: Minor
> Fix For: 3.0.0, 2.1.0
>
>
> see
> [https://lists.apache.org/thread.html/d05bfaa0134502a47f6e1aca56cb0b096d4dd32ddefbbdf28db4952a@%3Cdev.hbase.apache.org%3E]
> for more details.
> {code:java}
> How about a "getCellBuilder" or "getCellBuilderFactory" method for
> Mutation implementations that gives you a CellBuilder instance that
> already has relevant parts set? Like for a Put instance it should be
> able to already have the Type and Row set.{code}
> mentioned a day or so ago by [~busbey]
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)