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 2013/11/20 16:51:37 UTC

[jira] [Created] (ACCUMULO-1909) Adding list of conditions to conditional mutation is cumbersome.

Keith Turner created ACCUMULO-1909:
--------------------------------------

             Summary: Adding list of conditions to conditional mutation is cumbersome.
                 Key: ACCUMULO-1909
                 URL: https://issues.apache.org/jira/browse/ACCUMULO-1909
             Project: Accumulo
          Issue Type: Sub-task
            Reporter: Keith Turner
             Fix For: 1.6.0


The conditional mutation constructor requires that a user pass in at least one condition.  For cases where I have a list of data that I want to create conditions from I have found this to be very cumbersome writing code like the following.

{code:java}
  List<String> cdata = ...;
  ConditionalMutation cm = null;
  for(String s : cdata){
    Condition condition = createCondition(s);
     if(cm == null)
        cm = new ConditionalMutation(row, condition)
    else
        cm.addCondition(condition);
   }
{code}



--
This message was sent by Atlassian JIRA
(v6.1#6144)