Class ChunkBoxer
java.lang.Object
io.deephaven.engine.table.impl.chunkboxer.ChunkBoxer
Convert an arbitrary chunk to a chunk of boxed objects.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
Return a chunk that contains boxedObjects
representing the primitive values invalues
. -
Constructor Summary
-
Method Summary
-
Constructor Details
-
ChunkBoxer
public ChunkBoxer()
-
-
Method Details
-
boxedGet
public static <BOXED_TYPE> BOXED_TYPE boxedGet(@NotNull @NotNull Chunk<? extends Values> values, int offset) Box the value atoffset
invalues
.Please use a
ChunkBoxer
when boxing multiple values in order to amortize the cost of implementation lookup and avoid virtual dispatch.- Type Parameters:
BOXED_TYPE
- The type of the boxed value- Parameters:
values
- The chunk containing the value to boxoffset
- The offset of the value to box- Returns:
- The boxed value
-
getBoxer
-