MCPcopy Create free account
hub / github.com/apache/pig / getClassForAlias

Method getClassForAlias

src/org/apache/pig/impl/PigContext.java:785–798  ·  view source on GitHub ↗
(String alias)

Source from the content-addressed store, hash-verified

783 }
784
785 @SuppressWarnings("rawtypes")
786 public Class getClassForAlias(String alias) throws IOException{
787 String className = null;
788 FuncSpec funcSpec = null;
789 if (definedFunctions != null) {
790 funcSpec = definedFunctions.get(alias);
791 }
792 if (funcSpec != null) {
793 className = funcSpec.getClassName();
794 }else{
795 className = FuncSpec.getClassNameFromSpec(alias);
796 }
797 return resolveClassName(className);
798 }
799
800 public Object instantiateFuncFromAlias(String alias) throws IOException {
801 FuncSpec funcSpec;

Callers 4

visitSparkOpMethod · 0.80
getJobMethod · 0.80
getLocalResourcesMethod · 0.80
buildUDFMethod · 0.80

Calls 4

getClassNameMethod · 0.95
getClassNameFromSpecMethod · 0.95
resolveClassNameMethod · 0.95
getMethod · 0.65

Tested by

no test coverage detected