Interface ToBigDecimalCast

All Superinterfaces:
AutoCloseable, SafeCloseable
All Known Implementing Classes:
BigNumberToBigDecimalCast, ByteToBigDecimalCast, CharToBigDecimalCast, DoubleToBigDecimalCast, FloatToBigDecimalCast, IntToBigDecimalCast, LongToBigDecimalCast, ShortToBigDecimalCast, ToBigDecimalCast.Identity

public interface ToBigDecimalCast extends SafeCloseable
  • Field Details

  • Method Details

    • cast

      <T> ObjectChunk<BigDecimal,? extends Any> cast(Chunk<? extends T> input)
    • makeToBigDecimalCast

      static ToBigDecimalCast makeToBigDecimalCast(ChunkType type, Class<?> sourceType, int size)
      Create a kernel that converts the values in an input chunk to a BigDecimal.
      Parameters:
      type - the type of chunk, can be an integral primitive type or BigInteger/BigDecimal
      size - the size of the largest chunk that can be cast by this kernel
      Returns:
      a ToBigDecimalCast that can be applied to chunks of type in order to produce a DoubleChunk of values