Skip navigation links

Package net.openhft.chronicle.bytes.algo

Provides classes for hash computations on ByteStore objects.

See: Description

Package net.openhft.chronicle.bytes.algo Description

Provides classes for hash computations on ByteStore objects.

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.

See Also:
BytesStore, BytesStoreHash
Skip navigation links

Copyright © 2024. All rights reserved.