Class ByteToIntegerCast<T extends Attributes.Any>

java.lang.Object
com.illumon.iris.db.v2.hashing.ByteToIntegerCast<T>
Type Parameters:
T - the chunk's attribute
All Implemented Interfaces:
ToIntFunctor<T>, Context, SafeCloseable, AutoCloseable

public class ByteToIntegerCast<T extends Attributes.Any> extends Object implements ToIntFunctor<T>
Cast the values in the input chunk to an int.
  • 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 Context.
      Specified by:
      apply in interface ToIntFunctor<T extends Attributes.Any>
      Parameters:
      input - the chunk to transform
      Returns:
      the result IntChunk
    • castInto

      public static <T2 extends Attributes.Any> void castInto(ByteChunk<? extends T2> input, WritableIntChunk<T2> result)
    • close

      public void close()
      Description copied from interface: Context
      Release any resources associated with this context. The context should not be used afterwards.
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Context
      Specified by:
      close in interface SafeCloseable