MapReduce
MapReduce is a trait, with case classes, which implements a functional API for the map-reduce classes in this package.
Type parameters
- K1
-
the key type of the returned map
- T
-
the input type of the MapReduce function: T may be V1 for a first stage, or (K1,V1) for a subsequent stage.
- V1
-
the value type of the returned map
Attributes
- Graph
-
- Supertypes
-
trait AutoCloseabletrait Seq[T] => Future[Map[K1, V1]]class Objecttrait Matchableclass Any
- Known subtypes
-
Show all
- Self type
-
Members list
Value members
Abstract methods
Attributes
- Returns
-
a suitable execution context
Concrete methods
Alternative formulation for compose method (:&)
Alternative formulation for compose method (:&)
Type parameters
- K2
-
the key type of the composed MapReduce object
- V2
-
the value type of the composed MapReduce object
Value parameters
- mr
-
the other MapReduce object
Attributes
- Returns
-
a new MapReduceComposed object
Compose this MapReduce object with mr, yielding a new MapReduce object.
Compose this MapReduce object with mr, yielding a new MapReduce object.
Type parameters
- K2
-
the key type of the composed MapReduce object
- V2
-
the value type of the composed MapReduce object
Value parameters
- f
-
a function of type ASync[Seq[(K1, V1)], Map[K2, V2], i.e. Seq[(K1, V1)]=>Future[Map[K2, V2]
Attributes
- Returns
-
a new MapReduceComposed object
terminate this MapReduce object with r, a reducer which yields a simple value
terminate this MapReduce object with r, a reducer which yields a simple value
Type parameters
- S
-
the return type, which is a super-class of V1 (for sum, or sigma)
Value parameters
- executionContext
-
(implicit)
- r
-
the Reduce object
Attributes
- Returns
-
an Async function of Seq[T]=>Future[S] type S.
alternative name to terminate
alternative name to terminate
Type parameters
- S
-
the return type, which is a super-class of V1 (for sum, or sigma)
Value parameters
- executionContext
-
(implicit)
- r
-
the Reduce object
Attributes
- Returns
-
an Async function of Seq[T]=>Future[S] type S.
Inherited methods
Composes two instances of Function1 in a new Function1, with this function applied first.
Composes two instances of Function1 in a new Function1, with this function applied first.
Type parameters
- A
-
the result type of function
g
Value parameters
- g
-
a function R => A
Attributes
- Returns
-
a new function
fsuch thatf(x) == g(apply(x)) - Inherited from:
- Function1
Composes two instances of Function1 in a new Function1, with this function applied last.
Composes two instances of Function1 in a new Function1, with this function applied last.
Type parameters
- A
-
the type to which function
gcan be applied
Value parameters
- g
-
a function A => T1
Attributes
- Returns
-
a new function
fsuch thatf(x) == apply(g(x)) - Inherited from:
- Function1
Returns a string representation of the object.
Returns a string representation of the object.
The default representation is platform dependent.
Attributes
- Returns
-
a string representation of the object.
- Definition Classes
-
Function1 -> Any
- Inherited from:
- Function1
Inherited and Abstract methods
Applies the body of this function to the argument.
Applies the body of this function to the argument.
Value parameters
- v1
-
the function argument
Attributes
- Returns
-
the result of function application.
- Inherited from:
- Function1
Attributes
- Inherited from:
- AutoCloseable