public boolean isAdjacent()

in athena-federation-sdk/src/main/java/com/amazonaws/athena/connector/lambda/domain/predicate/Marker.java [213:225]


    public boolean isAdjacent(Marker other)
    {
        if (isUpperUnbounded() || isLowerUnbounded() || other.isUpperUnbounded() || other.isLowerUnbounded()) {
            return false;
        }

        if (ArrowTypeComparator.compare(getType(), getValue(), other.getValue()) != 0) {
            return false;
        }

        return (bound == Bound.EXACTLY && other.bound != Bound.EXACTLY) ||
                (bound != Bound.EXACTLY && other.bound == Bound.EXACTLY);
    }