Package io.deephaven.chunk.util.hashing
Class FloatChunkHasher
java.lang.Object
io.deephaven.chunk.util.hashing.FloatChunkHasher
- All Implemented Interfaces:
ChunkHasher
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
hashInitial
(Chunk<Values> values, WritableIntChunk<HashCodes> destination) Called for the first (or only) hash value, sets the hash codes in destination corresponding to values.int
hashInitial
(Object value) Hash a boxed object.static int
hashInitialSingle
(float value) int
hashUpdate
(int existing, Object value) Update a hash for a boxed object.void
hashUpdate
(Chunk<Values> values, WritableIntChunk<HashCodes> destination) Called for subsequent hash values, updates the hash codes in destination corresponding to values.static int
hashUpdateSingle
(int existing, float newValue)
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
FloatChunkHasher
public FloatChunkHasher()
-
-
Method Details
-
hashInitialSingle
public static int hashInitialSingle(float value) -
hashUpdateSingle
public static int hashUpdateSingle(int existing, float newValue) -
hashInitial
Description copied from interface:ChunkHasher
Hash a boxed object.- Specified by:
hashInitial
in interfaceChunkHasher
- Parameters:
value
- the boxed object to hash- Returns:
- the hashcode, as if you called the chunked version of this function
-
hashUpdate
Description copied from interface:ChunkHasher
Update a hash for a boxed object.- Specified by:
hashUpdate
in interfaceChunkHasher
- Parameters:
existing
- the existing hashcodevalue
- the boxed object to add to the hash code- Returns:
- the hashcode, as if you called the chunked version of this function
-
hashInitial
Description copied from interface:ChunkHasher
Called for the first (or only) hash value, sets the hash codes in destination corresponding to values.- Specified by:
hashInitial
in interfaceChunkHasher
- Parameters:
values
- the values to hashdestination
- the chunk to write hash values into
-
hashUpdate
Description copied from interface:ChunkHasher
Called for subsequent hash values, updates the hash codes in destination corresponding to values.- Specified by:
hashUpdate
in interfaceChunkHasher
- Parameters:
values
- the values to hashdestination
- the chunk to update hash values into
-