Class CharToLongCastWithOffset<T extends Any>

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

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

    • apply

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

      public static <T2 extends Any> void castInto(CharChunk<T2> input, WritableLongChunk<T2> result, long offset)
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface io.deephaven.util.SafeCloseable
      Specified by:
      close in interface ToLongFunctor<T extends Any>