Class XxHash
- java.lang.Object
-
- org.apache.parquet.column.values.bloomfilter.XxHash
-
- All Implemented Interfaces:
HashFunction
public class XxHash extends Object implements HashFunction
The implementation of HashFunction interface. The XxHash uses XXH64 version xxHash with a seed of 0.
-
-
Constructor Summary
Constructors Constructor Description XxHash()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longhashByteBuffer(ByteBuffer input)compute the hash value for a ByteBuffer.longhashBytes(byte[] input)compute the hash value for a byte array.
-
-
-
Method Detail
-
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
public long hashByteBuffer(ByteBuffer input)
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.
-
-