Interface ToLongCast<T extends Any>

All Superinterfaces:
AutoCloseable, SafeCloseable, ToLongFunctor<T>

public interface ToLongCast<T extends Any> extends ToLongFunctor<T>
  • Nested Class Summary

    Nested classes/interfaces inherited from interface io.deephaven.chunk.util.hashing.ToLongFunctor

    ToLongFunctor.Identity<T extends Any>
  • Method Summary

    Modifier and Type
    Method
    Description
    apply(Chunk<T> input)
    Apply this function to the input chunk, returning an output chunk.
    static <T extends Any>
    ToLongFunctor<T>
    makeToLongCast(ChunkType type, int size, long offset)
    Create an LongFunctor that casts the values in an input chunk to an long.

    Methods inherited from interface io.deephaven.chunk.util.hashing.ToLongFunctor

    close
  • Method Details

    • apply

      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
    • makeToLongCast

      static <T extends Any> ToLongFunctor<T> makeToLongCast(ChunkType type, int size, long offset)
      Create an LongFunctor that casts the values in an input chunk to an long. An optional offset is applied to each value after the cast.
      Type Parameters:
      T - the chunk's attribute
      Parameters:
      type - the type of chunk, must be an integral primitive type
      size - the size of the largest chunk that can be cast by this functor
      offset - an offset to add to each casted result
      Returns:
      a ToLongFunctor that can be applied to chunks of type in order to produce an LongChunk of values