You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Ivan Valchev (JIRA)" <ji...@apache.org> on 2010/11/19 10:05:16 UTC

[jira] Commented: (HBASE-3245) client.Result uses inverted Comparator in the versionMap (containted in familyMap)

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

Ivan Valchev commented on HBASE-3245:
-------------------------------------

Hi Jonathan,

So I guess this:

 getMap().get(family).get(qualifier).lowerKey(HConstants.LATEST_TIMESTAMP) == null

being always true is the correct behavior. I know versions are sorted in descending order but navigating through the versionMap is some how counterintuitive

> client.Result uses inverted Comparator<Long> in the versionMap (containted in familyMap)
> ----------------------------------------------------------------------------------------
>
>                 Key: HBASE-3245
>                 URL: https://issues.apache.org/jira/browse/HBASE-3245
>             Project: HBase
>          Issue Type: Bug
>            Reporter: Ivan Valchev
>             Fix For: 0.89.20100924
>
>
> In getMap() method the comparator passed to versionMap does:
>       public int compare(Long l1, Long l2) {
>             return l2.compareTo(l1);
>        }
> which inverts the result of the comparison. 

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