Interface DupExpandKernel
- All Known Implementing Classes:
BooleanDupExpandKernel
,ByteDupExpandKernel
,CharDupExpandKernel
,DoubleDupExpandKernel
,FloatDupExpandKernel
,IntDupExpandKernel
,LongDupExpandKernel
,ObjectDupExpandKernel
,ShortDupExpandKernel
public interface DupExpandKernel
-
Method Summary
Modifier and Type Method Description void
expandDuplicates(int expandedSize, WritableChunk<? extends Attributes.Any> chunkToExpand, IntChunk<Attributes.ChunkLengths> keyRunLengths)
Expands entries values from chunkToExpand in-place, using keyRunLengths to determine how many copies.static DupExpandKernel
makeDupExpand(ChunkType chunkType)
-
Method Details
-
makeDupExpand
-
expandDuplicates
void expandDuplicates(int expandedSize, WritableChunk<? extends Attributes.Any> chunkToExpand, IntChunk<Attributes.ChunkLengths> keyRunLengths)Expands entries values from chunkToExpand in-place, using keyRunLengths to determine how many copies. The keyRunLengths chunk is parallel to the original chunkToExpand; it is never modified.- Parameters:
expandedSize
- the sum of all entries in keyRunLengthschunkToExpand
- the values to expand in-place (this writable chunk must have capacity >= expandedSize)keyRunLengths
- the key run-lengths parallel to chunkToExpand
-