accumulo-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Keith Turner (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (ACCUMULO-1000) support compare and set
Date Wed, 05 Jun 2013 23:23:19 GMT

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

Keith Turner edited comment on ACCUMULO-1000 at 6/5/13 11:22 PM:
-----------------------------------------------------------------

Maybe something like the following is an option. 

{code:java}
public class Column {
   public Column(byte[] colf, byte colq[]){}
   //setters for optional parts
   public Column setColVis(ColVis cv){}
   public Column setTimestamp(long ts){}
}

public abstract class Test {
   //package private constructor to limit subtypes
   Test(){}
}

public class AbsenceTest extends Test {
  public AbsenceTest();
}

public class EqualityTest extend Test {
  public EqualityTest(byte[] val);
}

public class ConditionalMutation extends Mutation {
   public void putCondition(Column col, Test test);
}

{code}
                
      was (Author: kturner):
    Maybe something like the following is an option. 

{code:java}

public class Column {
   public Column(byte[] colf, byte colq[]){}
   //setters for optional parts
   public Column setColVis(ColVis cv){}
   public Column setTimestamp(long ts){}
}

public abstract class Test {
   //package private constructor to limit subtypes
   Test(){}
}

public class AbsenceTest extends Test {
  public AbsenceTest();
}

public class EqualityTest extend Test {
  public EqualityTest(byte[] val);
}

public class ConditionalMutation extends Mutation {
   public void putCondition(Column col, Test test);
}

{code:java}
                  
> support compare and set
> -----------------------
>
>                 Key: ACCUMULO-1000
>                 URL: https://issues.apache.org/jira/browse/ACCUMULO-1000
>             Project: Accumulo
>          Issue Type: New Feature
>          Components: client, tserver
>            Reporter: Keith Turner
>            Assignee: Keith Turner
>             Fix For: 1.6.0
>
>         Attachments: ACCUMULO-1000-proposal-01.html, ACCUMULO-1000-proposal-01.txt
>
>
> Add support to mutation for compare and set operations.  This would allow user to specify
that a row must contain certain data for a mutation to be applied.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message