use of io.trino.spi.block.Int128ArrayBlockBuilder in project trino by trinodb.
the class TestInt128ArrayBlock method createBlockBuilderWithValues.
private static BlockBuilder createBlockBuilderWithValues(Slice[] expectedValues) {
Int128ArrayBlockBuilder blockBuilder = new Int128ArrayBlockBuilder(null, expectedValues.length);
writeValues(expectedValues, blockBuilder);
return blockBuilder;
}
use of io.trino.spi.block.Int128ArrayBlockBuilder in project trino by trinodb.
the class TestLongDecimalType method decimalAsBlock.
private Block decimalAsBlock(String value) {
Int128 decimal = Decimals.valueOf(new BigDecimal(value));
BlockBuilder blockBuilder = new Int128ArrayBlockBuilder(null, 1);
TYPE.writeObject(blockBuilder, decimal);
return blockBuilder.build();
}
Aggregations