code: public static byte[] getStopRowForTransaction(byte[] queueRowPrefix, Transaction transaction) {
      return Bytes.add(queueRowPrefix, Bytes.toBytes(transaction.getReadPointer() + 1));
    }
docs: Gets the stop row for scan up to the read pointer of a transaction. Stop row is queueName + (readPointer + 1).