Class FloatChunkHasher

java.lang.Object
io.deephaven.chunk.util.hashing.FloatChunkHasher
All Implemented Interfaces:
ChunkHasher

public class FloatChunkHasher extends Object implements ChunkHasher
  • Field Details

  • Constructor Details

    • FloatChunkHasher

      public FloatChunkHasher()
  • Method Details

    • hashInitialSingle

      public static int hashInitialSingle(float value)
    • hashUpdateSingle

      public static int hashUpdateSingle(int existing, float newValue)
    • hashInitial

      public int hashInitial(Object value)
      Description copied from interface: ChunkHasher
      Hash a boxed object.
      Specified by:
      hashInitial in interface ChunkHasher
      Parameters:
      value - the boxed object to hash
      Returns:
      the hashcode, as if you called the chunked version of this function
    • hashUpdate

      public int hashUpdate(int existing, Object value)
      Description copied from interface: ChunkHasher
      Update a hash for a boxed object.
      Specified by:
      hashUpdate in interface ChunkHasher
      Parameters:
      existing - the existing hashcode
      value - the boxed object to add to the hash code
      Returns:
      the hashcode, as if you called the chunked version of this function
    • hashInitial

      public void hashInitial(Chunk<Values> values, WritableIntChunk<HashCodes> destination)
      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 interface ChunkHasher
      Parameters:
      values - the values to hash
      destination - the chunk to write hash values into
    • hashUpdate

      public void hashUpdate(Chunk<Values> values, WritableIntChunk<HashCodes> destination)
      Description copied from interface: ChunkHasher
      Called for subsequent hash values, updates the hash codes in destination corresponding to values.
      Specified by:
      hashUpdate in interface ChunkHasher
      Parameters:
      values - the values to hash
      destination - the chunk to update hash values into