Package com.illumon.iris.db.v2.hashing
Class ShortToLongCastWithOffset<T extends Attributes.Any>
java.lang.Object
com.illumon.iris.db.v2.hashing.ShortToLongCastWithOffset<T>
- Type Parameters:
T- the chunk's attribute
- All Implemented Interfaces:
ToLongFunctor<T>,Context,SafeCloseable,AutoCloseable
public class ShortToLongCastWithOffset<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(ShortChunk<T2> input, WritableLongChunk<T2> result, long offset) voidclose()Release any resources associated with this context.
-
Method Details
-
apply
Description copied from interface:ToLongFunctorApply this function to the input chunk, returning an output chunk. The result is owned by thisContext.- Specified by:
applyin interfaceToLongFunctor<T extends Attributes.Any>- Parameters:
input- the chunk to transform- Returns:
- the result LongChunk
-
castInto
public static <T2 extends Attributes.Any> void castInto(ShortChunk<T2> input, WritableLongChunk<T2> result, long offset) -
close
public void close()Description copied from interface:ContextRelease any resources associated with this context. The context should not be used afterwards.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceContext- Specified by:
closein interfaceSafeCloseable
-