Package com.illumon.iris.db.v2.hashing
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
Cast the values in the input chunk to an int.
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.illumon.iris.db.v2.hashing.ToIntFunctor
ToIntFunctor.Identity<T extends Attributes.Any>
-
Method Summary
Modifier and TypeMethodDescriptionApply this function to the input chunk, returning an output chunk.static <T2 extends Attributes.Any>
voidcastInto
(ByteChunk<? extends T2> input, WritableIntChunk<T2> result) void
close()
Release any resources associated with this context.
-
Method Details
-
apply
Description copied from interface:ToIntFunctor
Apply this function to the input chunk, returning an output chunk. The result is owned by thisContext
.- Specified by:
apply
in interfaceToIntFunctor<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 interfaceAutoCloseable
- Specified by:
close
in interfaceContext
- Specified by:
close
in interfaceSafeCloseable
-