You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Jonathan Gray (JIRA)" <ji...@apache.org> on 2010/09/01 04:36:53 UTC
[jira] Commented: (HBASE-2946) Increment multiple columns in a row
at once
[ https://issues.apache.org/jira/browse/HBASE-2946?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12904883#action_12904883 ]
Jonathan Gray commented on HBASE-2946:
--------------------------------------
There are two general approaches from an API perspective.
One would be just adding another single HTable call, something like:
{noformat}
long [] incrementColumns(byte [] row, byte [][] families, byte [][] qualifiers, long [] amounts)
{noformat}
The other would be to upgrade our increment friend to his own Increment class. Then he'd operate like Gets/Puts:
{noformat}
long [] increment(new Increment(byte [] row).addColumn(family, qualifier1).addColumn(family, qualifier2))
{noformat}
The latter would be more amenable to HBASE-2947.
> Increment multiple columns in a row at once
> -------------------------------------------
>
> Key: HBASE-2946
> URL: https://issues.apache.org/jira/browse/HBASE-2946
> Project: HBase
> Issue Type: New Feature
> Components: client, regionserver
> Reporter: Jonathan Gray
> Fix For: 0.90.0
>
>
> Currently there is no way to do multiple increments to a single row in one RPC. This jira is about adding an HTable and HRegionInterface method to increment multiple columns within a single row at once.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.