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

Vikas Vishwakarma edited comment on HBASE-17877 at 4/6/17 10:06 AM:
--------------------------------------------------------------------

that is a good point .. i checked back on this .. 

In Bytes.java we are using this for the littleEndian check .. this is 
evaluating to true for me on my dev/prod box
    static final boolean littleEndian =
                ByteOrder.nativeOrder().equals(ByteOrder.LITTLE_ENDIAN);

ByteOrder.nativeOrder()
Retrieves the native byte order of the underlying platform.

echo -n I | od -to2 | head -n1 | cut -f2 -d" " | cut -c6 
1

So looks like it is using the machine endianess?




was (Author: vik.karma):
that is a good point .. i checked back on this .. 

In Bytes.java we are using this for the littleEndian check .. this is 
evaluating to true for me on my dev/prod box
    static final boolean littleEndian =
                ByteOrder.nativeOrder().equals(ByteOrder.LITTLE_ENDIAN);

Although from what i read online java is supposed to be bigendian .. will check 
on this also 

> Replace/improve HBase's byte[] comparator
> -----------------------------------------
>
>                 Key: HBASE-17877
>                 URL: https://issues.apache.org/jira/browse/HBASE-17877
>             Project: HBase
>          Issue Type: Bug
>            Reporter: Lars Hofhansl
>            Assignee: Vikas Vishwakarma
>         Attachments: 17877-1.2.patch, 17877-v2-1.3.patch, 
> ByteComparatorJiraHBASE-17877.pdf
>
>
> [~vik.karma] did some extensive tests and found that Hadoop's version is 
> faster - dramatically faster in some cases.
> Patch forthcoming.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to