use of com.facebook.presto.block.BlockAssertions.Encoding.DICTIONARY in project presto by prestodb.
the class TestBlockEncodingBuffers method buildDictionaryBlockStatus.
private BlockStatus buildDictionaryBlockStatus(BlockStatus dictionary, int positionCount) {
DictionaryBlock dictionaryBlock = createRandomDictionaryBlock(dictionary.block, positionCount);
int[] mappedExpectedRowSizes = IntStream.range(0, positionCount).map(i -> dictionary.expectedRowSizes[dictionaryBlock.getId(i)]).toArray();
return new BlockStatus(dictionaryBlock, mappedExpectedRowSizes);
}
Aggregations