Action

interface Action<in T : Any, out R : Any>

A simple data transformation on a data node. Actions should avoid doing actual dependency evaluation in execute.

Inheritors

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
abstract fun execute(dataSet: DataSet<T>, meta: Meta = Meta.EMPTY): DataSet<R>

Transform the data in the node, producing a new node. By default, it is assumed that all calculations are lazy so not actual computation is started at this moment.

Link copied to clipboard
operator fun <T : Any, R : Any> Action<T, R>.invoke(dataSet: DataSet<T>, meta: Meta = Meta.EMPTY): DataSet<R>
Link copied to clipboard
infix fun <T : Any, I : Any, R : Any> Action<T, I>.then(action: Action<I, R>): Action<T, R>

Action composition. The result is terminal if one of its parts is terminal