@Override
    public int compareTo(BasicRowRange other) {
      byte[] left;
      byte[] right;
      if (isAscendingOrder()) {
        left = this.getComparisonData();
        right = other.getComparisonData();
      } else {
        left = other.getComparisonData();
        right = this.getComparisonData();
      }
      return Bytes.compareTo(left, right);
    }
Returns whether the bounding row used for binary-search is inclusive or not. For forward
scans, we would check the starRow, but we would check the stopRow for the reverse scan case.
hbase-client/src/main/java/org/apache/hadoop/hbase/filter/MultiRowRangeFilter.java