Package io.deephaven.chunk.util.hashing
Interface ToIntegerCast<T extends Any>
- All Superinterfaces:
AutoCloseable,SafeCloseable,ToIntFunctor<T>
-
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 <T extends Any>
ToIntFunctor<T>makeToIntegerCast(ChunkType type, int size, int offset) Create an IntFunctor that casts the values in an input chunk to an int.Methods inherited from interface io.deephaven.chunk.util.hashing.ToIntFunctor
close
-
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
-
makeToIntegerCast
Create an IntFunctor that casts the values in an input chunk to an int. 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 typesize- the size of the largest chunk that can be cast by this functoroffset- an offset to add to each casted result- Returns:
- a
ToIntFunctorthat can be applied to chunks of type in order to produce an IntChunk of values
-