Package com.illumon.iris.db.v2.hashing
Class CharToIntegerCastWithOffset<T extends Attributes.Any>
java.lang.Object
com.illumon.iris.db.v2.hashing.CharToIntegerCastWithOffset<T>
- Type Parameters:
T
- the chunk's attribute
- All Implemented Interfaces:
ToIntFunctor<T>
,Context
,SafeCloseable
,AutoCloseable
public class CharToIntegerCastWithOffset<T extends Attributes.Any> extends Object implements ToIntFunctor<T>
Cast the values in the input chunk to an int and add the specified offset.
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.illumon.iris.db.v2.hashing.ToIntFunctor
ToIntFunctor.Identity<T extends Attributes.Any>
-
Method Summary
-
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
-
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
-