ReduceGroupBuilder

class ReduceGroupBuilder<T : Any, R : Any>(val actionMeta: Meta, outputType: KType)

Constructors

Link copied to clipboard
constructor(actionMeta: Meta, outputType: KType)

Properties

Link copied to clipboard
val actionMeta: Meta

Functions

Link copied to clipboard
fun byValue(tag: String, defaultTag: String = "@default", action: JoinGroup<T, R>.() -> Unit)

introduce grouping by meta value

Link copied to clipboard
fun group(groupName: String, predicate: (Name, Meta) -> Boolean, action: JoinGroup<T, R>.() -> Unit)
Link copied to clipboard
fun result(resultName: String, f: suspend ActionEnv.(Map<Name, ValueWithMeta<T>>) -> R)

Apply transformation to the whole node