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

Jonathan Gray commented on HBASE-803:
-------------------------------------

Currently I am doing an actual byte increment.  I may actual do as you propose, 
passing a modify method.  But for now I'm leaving as a straight byte-increment. 
 This includes adding additional bytes if you overflow your array size.  I 
should have a patch up today so you can see.

I completely agree that this functionality is probably too specialized for 
HTable api.  I'm doing it for internal use and I know of at least one other 
person who wants similar behavior.  So I figured I'd put it out there for 
others to see or use.

> Atomic increment operations
> ---------------------------
>
>                 Key: HBASE-803
>                 URL: https://issues.apache.org/jira/browse/HBASE-803
>             Project: Hadoop HBase
>          Issue Type: New Feature
>          Components: client, ipc, regionserver
>    Affects Versions: 0.2.0
>            Reporter: Jonathan Gray
>            Priority: Minor
>             Fix For: 0.2.1
>
>
> Discussion was already started in HBASE-798
> First version will contain to additional HTable methods:
> incrementColumnValue(table,row,family:column) -> Inserts a new version of the 
> specified column (which must already exist) with an incremented cell value.
> incrementFamilyColumn(table,row,family: ) -> Inserts a new column under the 
> specified family.  This assumes the family always contains only one column.  
> That column is read, incremented, deleted, and a new column is inserted with 
> the incremented column name.  The existing value is re-inserted unchanged to 
> the new column.
> I'm going to be making even more specialized versions of these for internal 
> use (taking apart byte[]'s, doing different bit/byte operations, and assorted 
> munging...).  So if anyone has any requests for other specialized versions, 
> or more generic versions, please post them here and I'd be more than happy to 
> take a stab at them.
> Next week I will likely have a go at HBASE-493

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to