public static Class<?> getClass(String className) {
    try {
      return PigContext.resolveClassName(className);
    } catch (IOException e) {
      throw new RuntimeException("Could not instantiate " + className, e);
    }
  }
public static Class<?> getClass(String className) {
    try {
      return PigContext.resolveClassName(className);
    } catch (IOException e) {
      throw new RuntimeException("Could not instantiate " + className, e);
    }
  }
public static Class < ? > getClass ( String className ) { try { return PigContext . resolveClassName ( className ) ; } catch ( IOException e ) { throw new RuntimeException ( "Could not instantiate " + className , e ) ; } }
Returns class using Pig's class loader.
Returns class using Pig s class loader .