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

Method getClassNameFromSpec

src/org/apache/pig/FuncSpec.java:108–114  ·  view source on GitHub ↗

Parse the class name out of a function specification string. @return name of the class.

(String funcSpec)

Source from the content-addressed store, hash-verified

106 * @return name of the class.
107 */
108 public static String getClassNameFromSpec(String funcSpec){
109 int paren = funcSpec.indexOf('(');
110 if (paren!=-1)
111 return funcSpec.substring(0, paren);
112 else
113 return funcSpec;
114 }
115
116 /**
117 * Get the argument values passed to the func spec.

Callers 2

FuncSpecMethod · 0.95
getClassForAliasMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected