presto-raptor-legacy/src/main/java/io/prestosql/plugin/raptor/legacy/storage/organization/ShardRange.java/ShardRange/adjacent
class ShardRange:    public boolean adjacent(ShardRange other)
    {
        Object o1Min = this.getMinTuple().getValues().get(0);
        Object o1Max = this.getMaxTuple().getValues().get(0);

        Object o2Min = other.getMinTuple().getValues().get(0);
        Object o2Max = other.getMaxTuple().getValues().get(0);

        return o1Max.equals(o2Min) || o2Max.equals(o1Min);
    }