Class ByteToIntegerCastWithOffset<T extends Any>

java.lang.Object
io.deephaven.chunk.util.hashing.ByteToIntegerCastWithOffset<T>
Type Parameters:
T - the chunk's attribute
All Implemented Interfaces:
ToIntFunctor<T>, SafeCloseable, AutoCloseable

public class ByteToIntegerCastWithOffset<T extends Any> extends Object implements ToIntFunctor<T>
Cast the values in the input chunk to an int and add the specified offset.
  • Method Details

    • apply

      public IntChunk<? extends T> apply(Chunk<? extends T> input)
      Description copied from interface: ToIntFunctor
      Apply this function to the input chunk, returning an output chunk. The result is owned by this ToIntFunctor.
      Specified by:
      apply in interface ToIntFunctor<T extends Any>
      Parameters:
      input - the chunk to transform
      Returns:
      the result IntChunk
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface SafeCloseable
      Specified by:
      close in interface ToIntFunctor<T extends Any>