Package com.illumon.iris.db.v2.hashing
Class CharToLongCast<T extends Attributes.Any>
java.lang.Object
com.illumon.iris.db.v2.hashing.CharToLongCast<T>
- Type Parameters:
T- the chunk's attribute
- All Implemented Interfaces:
ToLongFunctor<T>,Context,SafeCloseable,AutoCloseable
Cast the values in the input chunk to a long.
-
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(CharChunk<? extends T2> input, WritableLongChunk<? super T2> result) 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(CharChunk<? extends T2> input, WritableLongChunk<? super T2> result) -
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
-