public boolean isFetchFrom(FileSinkDesc fs) {
    return fs.getFinalDirName().equals(work.getTblDir());
  }
Set the maximum number of rows returned by fetch.
ql/src/java/org/apache/hadoop/hive/ql/exec/FetchTask.java