This is an instance of Monad for execution so it can be used in functions that apply to all Monads
This makes a constant execution that runs no job.
This makes a constant execution that runs no job. Note this is a lazy parameter that is evaluated every time run is called.
This converts a function into an Execution monad.
This converts a function into an Execution monad. The flowDef returned is never mutated. The returned callback funcion is called after the flow is run and succeeds.
The call to fn will happen when the run method on the result is called.
The call to fn will happen when the run method on the result is called. The ConcurrentExecutionContext will be the same one used on run. This is intended for cases where you need to make asynchronous calls in the middle or end of execution. Presumably this is used with flatMap either before or after
Use this to read the configuration, which may contain Args or options which describe input on which to run
Use this to get the config and mode.
Use this to get the mode, which may contain the job conf
Use this to use counters/stats with Execution.
Use this to use counters/stats with Execution. You do this: Execution.withId { implicit uid => val myStat = Stat("myStat") // uid is implicitly pulled in pipe.map { t => if(someCase(t)) myStat.inc fn(t) } .writeExecution(mySink) }
combine several executions and run them in parallel when .
combine several executions and run them in parallel when .run is called
combine several executions and run them in parallel when .
combine several executions and run them in parallel when .run is called
combine several executions and run them in parallel when .
combine several executions and run them in parallel when .run is called
combine several executions and run them in parallel when .
combine several executions and run them in parallel when .run is called
This creates a new ExecutionContext, passes to the reader, builds the flow and cleans up the state of the FlowDef
This creates a new ExecutionContext, passes to the reader, builds the flow and cleans up the state of the FlowDef
(Since version 2014-07-29) Use Execution[T]
(Since version 2014-07-29) Use Execution[T].run
(Since version 2014-07-29) Use Execution[T].run
(Since version 2014-07-29) Use Execution[T].run
Execution has many methods for creating Execution[T] instances, which are the preferred way to compose computations in scalding libraries.