public void restore() {
      setConf(null);
      isExprNodeFirst = false;
      classCounter = 0;
    }
Provides general-purpose hooks for specific types, as well as a global hook.
ql/src/java/org/apache/hadoop/hive/ql/exec/SerializationUtilities.java