Master

com.phasmid.majabigwaduce.core.Master
object Master

Value parameters

config

an instance of Config which defines a suitable configuration

f

the mapper function which takes a (K1,V1) pair and creates a key-value tuple of type (K2,W), wrapped in Try

g

the reducer function which combines two values (a V2 and a W) into one V2

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Master.type

Members list

Value members

Concrete methods

def apply[K1, V1, K2, W, V2 >: W](config: Config, f: (K1, V1) => Try[(K2, W)], g: (V2, W) => V2): Behavior[MasterCommand[K1, V1, K2, V2]]
def isForgiving(config: Config): Boolean

method isForgiving which looks up the value of the forgiving property of the configuration.

method isForgiving which looks up the value of the forgiving property of the configuration.

Value parameters

config

an instance of Config which defines a suitable configuration

Attributes

Returns

true/false according to the property's value in config

def unitize[A, B](f: A => B): (Unit, A) => B

Method unitize which takes a function A=>B and returns a (Unit,A)=>B

Method unitize which takes a function A=>B and returns a (Unit,A)=>B

Type parameters

A

input type: the input type of the function f.

B

output type: the output type of the function f.

Value parameters

f

the function to be lifted

Attributes

Returns

a function of (Unit,A)=>B

def zero[V](): V

Returns the zero value of the specified type V. The generic zero value is obtained by casting the integer 0 to the provided type V. TESTME

Returns the zero value of the specified type V. The generic zero value is obtained by casting the integer 0 to the provided type V. TESTME

Type parameters

V

the type for which the zero value is desired

Attributes

Returns

the zero value of type V

Concrete fields

val sMpr: String
val sReducer: String