presto-spi/src/main/java/io/prestosql/spi/predicate/SortedRangeSet.java/SortedRangeSet/union
class SortedRangeSet:    @Override
    public SortedRangeSet union(Collection<ValueSet> valueSets)
    {
        Builder builder = new Builder(type);
        builder.addAll(this.lowIndexedRanges.values());
        for (ValueSet valueSet : valueSets) {
            builder.addAll(checkCompatibility(valueSet).lowIndexedRanges.values());
        }
        return builder.build();
    }