org.apache.pig
Interface Function<S,T>

Type Parameters:
S - The argument type for the function.
T - The return type for the function.
All Superinterfaces:
ExceptionalFunction<S,T,RuntimeException>, com.google.common.base.Function<S,T>

public interface Function<S,T>
extends ExceptionalFunction<S,T,RuntimeException>, com.google.common.base.Function<S,T>

A convenience typedef that ties into both google's Function and ExceptionalFunction.


Method Summary
 T apply(S item)
          Performs a unit of work on item, possibly throwing E in the process.
 
Methods inherited from interface com.google.common.base.Function
equals
 

Method Detail

apply

T apply(S item)
Description copied from interface: ExceptionalFunction
Performs a unit of work on item, possibly throwing E in the process.

Specified by:
apply in interface ExceptionalFunction<S,T,RuntimeException>
Specified by:
apply in interface com.google.common.base.Function<S,T>
Parameters:
item - The item to perform work against.
Returns:
The result of the computation.


Copyright © 2007-2012 The Apache Software Foundation