public void shareStateWith(FunctionInfo function) {
    if (function != null) {
      function.discarded = discarded;
    }
  }
@return TRUE if the function is a Table Function
ql/src/java/org/apache/hadoop/hive/ql/exec/FunctionInfo.java