Uploaded image for project: 'Kudu'
  1. Kudu
  2. KUDU-2689

Make PartialRow.add methods fluent

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 1.8.0
    • None
    • client

    Description

      Today when creating populating a partial row the user needs to specify each value on a new line:

      PartialRow row = schema.newPartialRow();
      row.addInt("col1", 1);
      row.addString("col2" "hello");
      row.addBoolean("col3", false);
      

      By adjusting all of the add methods to return `this` a user could build the row fluently:

      PartialRow row = schema.newPartialRow()
         .addInt("col1", 1)
         .addString("col2" "hello")
         .addBoolean("col3", false);
      

      Attachments

        Activity

          People

            raymondblanc Raymond blanch kongnyuy mbah
            granthenke Grant Henke
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated: