public class Aggregation128Utils extends Object
Constructor and Description |
---|
Aggregation128Utils() |
Modifier and Type | Method and Description |
---|---|
static Table |
combineInt64SumChunks(Table chunks,
DType type)
Reassemble a column of 128-bit values from a table of four 64-bit integer columns and check
for overflow.
|
static ColumnVector |
extractInt32Chunk(ColumnView col,
DType outType,
int chunkIdx)
Extract a 32-bit chunk from a 128-bit value.
|
public static ColumnVector extractInt32Chunk(ColumnView col, DType outType, int chunkIdx)
col
- column of 128-bit values (e.g.: DECIMAL128)outType
- integer type to use for the output column (e.g.: UINT32 or INT32)chunkIdx
- index of the 32-bit chunk to extract where 0 is the least significant chunk
and 3 is the most significant chunkpublic static Table combineInt64SumChunks(Table chunks, DType type)
chunks
- table of four 64-bit integer columns with the columns ordered from least
significant to most significant. The last column must be of type INT64.type
- the type to use for the resulting 128-bit value columnCopyright © 2024. All rights reserved.