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

Stefan Baritchii commented on HBASE-6712:
-----------------------------------------

My usecase: I have a row with a rowid and a column that is incremented. rowid 
represents a resource name, column represents how many guys are sharing that 
resource.

It would be nice if I would be able to create the row first (i do it only once 
anyway), and then increment/decrement it's sharing.

To answer the "which would definitely be bad" part I think it has already been 
done at Put where you have checkAndPut() method. Do you think it would be bad 
to have a "checkAndIncrement" method similar to checkAndPut?
                
> incrementColumnValue should throw an exception if row does not exist 
> ---------------------------------------------------------------------
>
>                 Key: HBASE-6712
>                 URL: https://issues.apache.org/jira/browse/HBASE-6712
>             Project: HBase
>          Issue Type: Bug
>          Components: client
>    Affects Versions: 0.92.1
>            Reporter: Stefan Baritchii
>
> increment should throw an exception if a row does not exist. instead it 
> creates the row. checkAndIncrement may be also a solution to it but needs 
> development.

--
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

Reply via email to