Package com.illumon.iris.db.v2.hashing
Class IntToLongCastWithOffset<T extends Attributes.Any>
java.lang.Object
com.illumon.iris.db.v2.hashing.IntToLongCastWithOffset<T>
- Type Parameters:
T
- the chunk's attribute
- All Implemented Interfaces:
ToLongFunctor<T>
,Context
,SafeCloseable
,AutoCloseable
public class IntToLongCastWithOffset<T extends Attributes.Any>
extends Object
implements ToLongFunctor<T>
Cast the values in the input chunk to an long and add the specified offset.
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.illumon.iris.db.v2.hashing.ToLongFunctor
ToLongFunctor.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
(IntChunk<T2> input, WritableLongChunk<T2> result, long offset) void
close()
Release any resources associated with this context.
-
Method Details
-
apply
Description copied from interface:ToLongFunctor
Apply this function to the input chunk, returning an output chunk. The result is owned by thisContext
.- Specified by:
apply
in interfaceToLongFunctor<T extends Attributes.Any>
- Parameters:
input
- the chunk to transform- Returns:
- the result LongChunk
-
castInto
public static <T2 extends Attributes.Any> void castInto(IntChunk<T2> input, WritableLongChunk<T2> result, long offset) -
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
-