public static MapredContext get() {
    return contexts.get();
  }
Runtime context of MapredTask providing additional information to GenericUDF
ql/src/java/org/apache/hadoop/hive/ql/exec/MapredContext.java