Uploaded image for project: 'Accumulo'
  1. Accumulo
  2. ACCUMULO-1000 support compare and set
  3. ACCUMULO-1909

Adding list of conditions to conditional mutation is cumbersome.

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.6.0
    • client, tserver
    • None

    Description

      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.

        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);
         }
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            kturner Keith Turner
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: