hbase-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jonathan Gray (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HBASE-1231) Today, going from a RowResult to a BatchUpdate reqiures some data processing even though they are pretty much the same thing.
Date Mon, 02 Mar 2009 20:32:56 GMT

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

Jonathan Gray commented on HBASE-1231:
--------------------------------------

I think there should be a new constructor in BatchUpdate and a new constructor in RowResult.

{code}
public BatchUpdate(RowResult rr) {
  // conversion code that instantiates a new BatchUpdate with values in passed RowResult
}
{code}

{code}
public RowResult(BatchUpdate bu) {
  // conversion code that instantiates a new RowResult with values in passed BatchUpdate
}
{code}

> Today, going from a RowResult to a BatchUpdate reqiures some data processing even though
they are pretty much the same thing.
> -----------------------------------------------------------------------------------------------------------------------------
>
>                 Key: HBASE-1231
>                 URL: https://issues.apache.org/jira/browse/HBASE-1231
>             Project: Hadoop HBase
>          Issue Type: Improvement
>            Reporter: Erik Holstad
>            Assignee: Erik Holstad
>            Priority: Trivial
>
> When updating some values in a row you need to fetch the row, get the data, change the
data, get the key, get the row, create a new BatchUpdate 
> and put all the keys and new values into it. 
> The overall structure change that might be needed to solve this problem in the right
way, should probably go into HBASE-880. This issue just
> includes a util method that does the conversion for you.

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


Mime
View raw message