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

Interface ExceptionalFunction

src/org/apache/pig/ExceptionalFunction.java:28–38  ·  view source on GitHub ↗

An interface that captures a unit of work against an item where an exception might be thrown. @param The argument type for the function. @param The return type for the function. @param The exception type that the function throws.

Source from the content-addressed store, hash-verified

26 *
27 */
28public interface ExceptionalFunction<S, T, E extends Exception> {
29
30 /**
31 * Performs a unit of work on item, possibly throwing {@code E} in the process.
32 *
33 * @param item The item to perform work against.
34 * @return The result of the computation.
35 * @throws E if there was a problem performing the work.
36 */
37 public T apply(S item) throws E;
38}

Callers

nothing calls this directly

Implementers 15

Utiltest/org/apache/pig/test/Util.java
StringStringFunctiontest/org/apache/pig/builtin/TestFuncti
StringIntegerFunctiontest/org/apache/pig/builtin/TestFuncti
IntegerFloatFunctiontest/org/apache/pig/builtin/TestFuncti
ExceptionalIntegerFloatFunctiontest/org/apache/pig/builtin/TestFuncti
ToKeyValueFunctionsrc/org/apache/pig/backend/hadoop/exec
MergeValuesFunctionsrc/org/apache/pig/backend/hadoop/exec
ToValueFunctionsrc/org/apache/pig/backend/hadoop/exec
FilterFunctionsrc/org/apache/pig/backend/hadoop/exec
LocalRearrangeFunctionsrc/org/apache/pig/backend/hadoop/exec
PackageFunctionsrc/org/apache/pig/backend/hadoop/exec
ToKeyNullValueFunctionsrc/org/apache/pig/backend/hadoop/exec

Calls

no outgoing calls

Tested by

no test coverage detected