public Scan withStopRow(byte[] stopRow) {
    return withStopRow(stopRow, false);
  }
Set the stop row of the scan.
<p>
The scan will include rows that are lexicographically less than the provided stopRow.
<p>
<b>Note:</b> <strong>Do NOT use this in combination with {@link #setRowPrefixFilter(byte[])} or
{@link #setStartStopRowForPrefixScan(byte[])}.</strong> Doing so will make the scan result
unexpected or even undefined.
</p>
@param stopRow row to end at (exclusive)
@throws IllegalArgumentException if stopRow does not meet criteria for a row key (when length
                                 exceeds {@link HConstants#MAX_ROW_LENGTH})
hbase-client/src/main/java/org/apache/hadoop/hbase/client/Scan.java