presto-spi/src/main/java/io/prestosql/spi/statistics/ComputedStatistics.java/ComputedStatistics/isSingleValueBlock
class ComputedStatistics:    private static boolean isSingleValueBlock(Block block)
    {
        return block.getPositionCount() == 1;
    }