You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@parquet.apache.org by "David Mollitor (Jira)" <ji...@apache.org> on 2020/10/13 15:49:00 UTC

[jira] [Created] (PARQUET-1924) Do not Instantiate a New LongHashFunction

David Mollitor created PARQUET-1924:
---------------------------------------

             Summary: Do not Instantiate a New LongHashFunction 
                 Key: PARQUET-1924
                 URL: https://issues.apache.org/jira/browse/PARQUET-1924
             Project: Parquet
          Issue Type: Improvement
            Reporter: David Mollitor
            Assignee: David Mollitor


{code:java|title=XxHash.java}
|/**|
| | * The implementation of HashFunction interface. The XxHash uses XXH64 version xxHash|
| | * with a seed of 0.|
| | */|
| |public class XxHash implements HashFunction {|
| |@Override|
| |public long hashBytes(byte[] input) {|
| |return LongHashFunction.xx(0).hashBytes(input);|
| |}|
| | |
| |@Override|
| |public long hashByteBuffer(ByteBuffer input) {|
| |return LongHashFunction.xx(0).hashBytes(input);|
| |}|



--
This message was sent by Atlassian Jira
(v8.3.4#803005)