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
public class CharToLongCast<T extends Attributes.Any> extends Object implements ToLongFunctor<T>
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 Type Method Description LongChunk<T>
apply(Chunk<T> input)
Apply this function to the input chunk, returning an output chunk.static <T2 extends Attributes.Any>
voidcastInto(CharChunk<? extends T2> input, WritableLongChunk<? super T2> result)
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(CharChunk<? extends T2> input, WritableLongChunk<? super 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
-