code: public void setOutputKeyClass(Class<?> theClass
                                  ) throws IllegalStateException {
      ensureState(JobState.DEFINE);
      conf.setOutputKeyClass(theClass);
    }
docs: Set the key class for the job output data.
  
  @param theClass the key class for the job output data.
  @throws IllegalStateException if the job is submitted