Package org.apache.spark.api.java.function

Set of interfaces to represent functions in Spark's Java API.

See:
          Description

Interface Summary
DoubleFlatMapFunction<T> A function that returns zero or more records of type Double from each input record.
DoubleFunction<T> A function that returns Doubles, and can be used to construct DoubleRDDs.
FlatMapFunction<T,R> A function that returns zero or more output records from each input record.
FlatMapFunction2<T1,T2,R> A function that takes two inputs and returns zero or more output records.
Function<T1,R> Base interface for functions whose return types do not create special RDDs.
Function0<R> A zero-argument function that returns an R.
Function2<T1,T2,R> A two-argument function that takes arguments of type T1 and T2 and returns an R.
Function3<T1,T2,T3,R> A three-argument function that takes arguments of type T1, T2 and T3 and returns an R.
PairFlatMapFunction<T,K,V> A function that returns zero or more key-value pair records from each input record.
PairFunction<T,K,V> A function that returns key-value pairs (Tuple2<K, V>), and can be used to construct PairRDDs.
VoidFunction<T> A function with no return value.
 

Package org.apache.spark.api.java.function Description

Set of interfaces to represent functions in Spark's Java API. Users create implementations of these interfaces to pass functions to various Java API methods for Spark. Please visit Spark's Java programming guide for more details.