public void setLimit(final int limit) {
    this.limit = limit;
  }
not to print the offset if it is 0 we need to turn null.
use Integer instead of int.
ql/src/java/org/apache/hadoop/hive/ql/plan/LimitDesc.java