@Override
  public String toString() {
    if (direction == null) return "";
    if (direction == Direction.CURRENT) {
      return Direction.CURRENT.toString();
    }

    return direction + "(" + (getAmt() == Integer.MAX_VALUE ? "MAX" : getAmt()) + ")";
  }
Returns signed offset from XX PRECEDING/FOLLOWING. Negative for preceding.

@return signed offset from XX PRECEDING/FOLLOWING
ql/src/java/org/apache/hadoop/hive/ql/plan/ptf/BoundaryDef.java