Package io.deephaven.chunk.util.hashing
Class ShortToIntegerCast<T extends Any>
java.lang.Object
io.deephaven.chunk.util.hashing.ShortToIntegerCast<T>
- Type Parameters:
T- the chunk's attribute
- All Implemented Interfaces:
ToIntFunctor<T>,SafeCloseable,AutoCloseable
Cast the values in the input chunk to an int.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.deephaven.chunk.util.hashing.ToIntFunctor
ToIntFunctor.Identity<T extends Any> -
Method Summary
Modifier and TypeMethodDescriptionApply this function to the input chunk, returning an output chunk.static <T2 extends Any>
voidcastInto(ShortChunk<? extends T2> input, WritableIntChunk<T2> result) voidclose()
-
Method Details
-
apply
Description copied from interface:ToIntFunctorApply this function to the input chunk, returning an output chunk. The result is owned by this ToIntFunctor.- Specified by:
applyin interfaceToIntFunctor<T extends Any>- Parameters:
input- the chunk to transform- Returns:
- the result IntChunk
-
castInto
public static <T2 extends Any> void castInto(ShortChunk<? extends T2> input, WritableIntChunk<T2> result) -
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceSafeCloseable- Specified by:
closein interfaceToIntFunctor<T extends Any>
-