You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@kudu.apache.org by "Raymond blanch kongnyuy mbah (JIRA)" <ji...@apache.org> on 2019/03/25 22:37:00 UTC
[jira] [Commented] (KUDU-2689) Make PartialRow.add methods fluent
[ https://issues.apache.org/jira/browse/KUDU-2689?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16801203#comment-16801203 ]
Raymond blanch kongnyuy mbah commented on KUDU-2689:
----------------------------------------------------
Hi! I think this is useful update and i'll like to work on it
> Make PartialRow.add methods fluent
> ----------------------------------
>
> Key: KUDU-2689
> URL: https://issues.apache.org/jira/browse/KUDU-2689
> Project: Kudu
> Issue Type: Improvement
> Components: client
> Affects Versions: 1.8.0
> Reporter: Grant Henke
> Priority: Minor
> Labels: beginner
>
> Today when creating populating a partial row the user needs to specify each value on a new line:
> {code:java}
> PartialRow row = schema.newPartialRow();
> row.addInt("col1", 1);
> row.addString("col2" "hello");
> row.addBoolean("col3", false);
> {code}
> By adjusting all of the add methods to return `this` a user could build the row fluently:
> {code:java}
> PartialRow row = schema.newPartialRow()
> .addInt("col1", 1)
> .addString("col2" "hello")
> .addBoolean("col3", false);
> {code}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)