hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Zhihong Yu (Commented) (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HBASE-5271) Result.getValue and Result.getColumnLatest return the wrong column.
Date Tue, 24 Jan 2012 20:32:41 GMT

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

Zhihong Yu commented on HBASE-5271:
-----------------------------------

See http://hbase.apache.org/book.html#developer

For large patch, https://reviews.apache.org can be used for review.

You can push the 'Submit Patch' button to let Hadoop QA run through the tests.
                
> Result.getValue and Result.getColumnLatest return the wrong column.
> -------------------------------------------------------------------
>
>                 Key: HBASE-5271
>                 URL: https://issues.apache.org/jira/browse/HBASE-5271
>             Project: HBase
>          Issue Type: Bug
>          Components: client
>    Affects Versions: 0.90.5
>            Reporter: Ghais Issa
>         Attachments: fixKeyValueMatchingColumn.diff, testGetValue.diff
>
>
> In the following example result.getValue returns the wrong column
> KeyValue kv = new KeyValue(Bytes.toBytes("r"), Bytes.toBytes("24"), Bytes.toBytes("2"),
Bytes.toBytes(7L));
> Result result = new Result(new KeyValue[] { kv });
> System.out.println(Bytes.toLong(result.getValue(Bytes.toBytes("2"), Bytes.toBytes("2"))));
//prints 7.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message