Accumulo
  1. Accumulo
  2. ACCUMULO-1000 support compare and set
  3. ACCUMULO-1909

Adding list of conditions to conditional mutation is cumbersome.

    Details

    • Type: Sub-task Sub-task
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.6.0
    • Component/s: client, tserver
    • Labels:
      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);
         }
      

        Activity

        Keith Turner created issue -
        Keith Turner made changes -
        Field Original Value New Value
        Component/s client [ 12316207 ]
        Component/s tserver [ 12316201 ]
        Keith Turner made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]

          People

          • Assignee:
            Unassigned
            Reporter:
            Keith Turner
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development