Class XxHash
java.lang.Object
org.apache.parquet.column.values.bloomfilter.XxHash
- All Implemented Interfaces:
HashFunction
The implementation of HashFunction interface. The XxHash uses XXH64 version xxHash
with a seed of 0.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlonghashByteBuffer(ByteBuffer input) compute the hash value for a ByteBuffer.longhashBytes(byte[] input) compute the hash value for a byte array.
-
Constructor Details
-
XxHash
public XxHash()
-
-
Method Details
-
hashBytes
public long hashBytes(byte[] input) Description copied from interface:HashFunctioncompute the hash value for a byte array.- Specified by:
hashBytesin interfaceHashFunction- Parameters:
input- the input byte array- Returns:
- a result of long value.
-
hashByteBuffer
Description copied from interface:HashFunctioncompute the hash value for a ByteBuffer.- Specified by:
hashByteBufferin interfaceHashFunction- Parameters:
input- the input ByteBuffer- Returns:
- a result of long value.
-