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

Method registerFunction

src/org/apache/pig/PigServer.java:560–562  ·  view source on GitHub ↗

Defines an alias for the given function spec. This is useful for functions that require arguments to the constructor. @param function - the new function alias to define. @param funcSpec - the FuncSpec object representing the name of the function class and any arguments to constructor.

(String function, FuncSpec funcSpec)

Source from the content-addressed store, hash-verified

558 * the function class and any arguments to constructor.
559 */
560 public void registerFunction(String function, FuncSpec funcSpec) {
561 pigContext.registerFunction(function, funcSpec);
562 }
563
564 /**
565 * Defines an alias for the given streaming command.

Calls

no outgoing calls