hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "binlijin (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HBASE-16705) Eliminate long to Long auto boxing in LongComparator
Date Sun, 25 Sep 2016 09:34:22 GMT

     [ https://issues.apache.org/jira/browse/HBASE-16705?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

binlijin updated HBASE-16705:
-----------------------------
    Attachment: HBASE-16705-master.patch

> Eliminate long to Long auto boxing in LongComparator
> ----------------------------------------------------
>
>                 Key: HBASE-16705
>                 URL: https://issues.apache.org/jira/browse/HBASE-16705
>             Project: HBase
>          Issue Type: Improvement
>          Components: Filters
>    Affects Versions: 2.0..
>            Reporter: binlijin
>            Assignee: binlijin
>         Attachments: HBASE-16705-master.patch
>
>
> LongComparator
>     @Override
>     public int compareTo(byte[] value, int offset, int length) {
>       Long that = Bytes.toLong(value, offset, length);
>       return this.longValue.compareTo(that);
>     }
> Every time need to convert long to Long, this is not necessary.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message