use of com.facebook.presto.common.block.AbstractMapBlock in project presto by prestodb.
the class TestMapBlock method verifyMapRegion.
private void verifyMapRegion(Map<String, Long>[] testValues, AbstractMapBlock block, BlockBuilder blockBuilder, int offset, int length) {
boolean isHashTablePresent = block.isHashTablesPresent();
MapBlock region = (MapBlock) block.getRegion(offset, length);
assertEquals(region.isHashTablesPresent(), isHashTablePresent);
assertBlock(region, () -> blockBuilder.newBlockBuilderLike(null), Arrays.copyOfRange(testValues, offset, offset + length));
assertTrue(region.isHashTablesPresent());
}
Aggregations