See: Description
Interface | Description |
---|---|
BytesStoreHash<B extends BytesStore> |
Represents a function that computes a 64-bit hash value from a
BytesStore . |
Class | Description |
---|---|
XxHash |
This class implements the xxHash algorithm for hashing byte stores.
|
Enum | Description |
---|---|
OptimisedBytesStoreHash |
Optimized hashing algorithm for BytesStore.
|
VanillaBytesStoreHash |
This enum provides hashing functionality for byte stores.
|
This package includes two hash implementations, VanillaBytesStoreHash
and XxHash
. Both implement the BytesStoreHash
interface for the BytesStore
objects. These hashing algorithms are designed for
speed and effectiveness. VanillaBytesStoreHash provides a single instance of the hashing algorithm with constants
for faster computation, while XxHash is a more customizable hash implementation with seed support.
Both classes feature the fetch and applyAsLong methods for fetching values from a byte store and computing their hash respectively. Errors during execution are thrown as IllegalStateException and BufferUnderflowException.
XxHash
is migrated from the Zero-Allocation-Hashing project, renowned for its speed.
Note: As these algorithms are non-cryptographic, they should not be used for any security or privacy sensitive computations.
BytesStore
,
BytesStoreHash
Copyright © 2024. All rights reserved.