You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@accumulo.apache.org by "Keith Turner (JIRA)" <ji...@apache.org> on 2017/12/06 18:39:00 UTC

[jira] [Comment Edited] (ACCUMULO-4746) Create Builder for Mutation

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

Keith Turner edited comment on ACCUMULO-4746 at 12/6/17 6:38 PM:
-----------------------------------------------------------------

Another entry point function to consider is {{for()}}.  What I like about {{for()}} is that it reads a bit like a sentence (e.g. For the family X and qualifier Y set the value to Z.)

{code:java}
 m1.for().family(fam).qualifier("q1").set("v1");
 m1.for().family(fam).qualifier("q2").set(bb);
 m1.for().family(fam).qualifier("q3").delete();
{code}

I think I like {{at()}} more than {{for()}}. 


was (Author: kturner):
Another entry point function to consider is `for()`.  What I like about `for()` is that it reads a bit like a sentence (e.g. For the family X and qualifier Y set the value to Z.)

{code:java}
 m1.for().family(fam).qualifier("q1").set("v1");
 m1.for().family(fam).qualifier("q2").set(bb);
 m1.for().family(fam).qualifier("q3").delete();
{code}

I think I like `at()` more than `for()`. 

> Create Builder for Mutation
> ---------------------------
>
>                 Key: ACCUMULO-4746
>                 URL: https://issues.apache.org/jira/browse/ACCUMULO-4746
>             Project: Accumulo
>          Issue Type: Sub-task
>          Components: client
>            Reporter: Keith Turner
>            Assignee: Benjamin F
>             Fix For: 2.0.0
>
>
> Accumulo needs a builder for mutation similar to the one that was added for Key.



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