presto-spi/src/main/java/io/prestosql/spi/block/Block.java/Block/getPositions
class Block:    default Block getPositions(int[] positions, int offset, int length)
    {
        checkArrayRange(positions, offset, length);

        return new DictionaryBlock(offset, length, this, positions, false, randomDictionaryId());
    }