You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hbase.apache.org by "Jean-Daniel Cryans (JIRA)" <ji...@apache.org> on 2008/09/10 19:37:45 UTC

[jira] Issue Comment Edited: (HBASE-880) Improve the current client API by creating new container classes

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

jdcryans edited comment on HBASE-880 at 9/10/08 10:36 AM:
--------------------------------------------------------------------

Some code the support my previous comment: 

{code}
RowGet rowGet = new RowGet(row);
htable.lockRow(rowGet);
row.addColumn("info:");  // overloads for bytes and String
RowResult = htable.getRow(rowGet);
htable.unlockRow(rowGet);
{code}

      was (Author: jdcryans):
    Some code the support my previous comment: 

{code}
RowGet rowGet = new RowRowGet(row);
htable.lockRow(rowGet);
row.addColumn("info:");  // overloads for bytes and String
RowResult = htable.getRow(rowGet);
htable.unlockRow(rowGet);
{code}
  
> Improve the current client API by creating new container classes
> ----------------------------------------------------------------
>
>                 Key: HBASE-880
>                 URL: https://issues.apache.org/jira/browse/HBASE-880
>             Project: Hadoop HBase
>          Issue Type: Improvement
>          Components: client
>            Reporter: Jean-Daniel Cryans
>             Fix For: 0.19.0
>
>
> The current API does not scale very well. For each new feature, we have to add many methods to take care of all the overloads. Also, the need to batch row operations (gets, inserts, deletes) implies that we have to manage some "entities" like we are able to do with BatchUpdate but not with the other operations. The RowLock should be an attribute of such an entity.
> The scope of this jira is only to replace current API with another feature-compatible one, other methods will be added in other issues.

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