toggle menu
dataforge-data
0.7.0
common
switch theme
search in API
dataforge-data
/
space.kscience.dataforge.actions
/
ReduceGroupBuilder
Reduce
Group
Builder
class
ReduceGroupBuilder
<
T
:
Any
,
R
:
Any
>
(
val
actionMeta
:
Meta
,
outputType
:
KType
)
Members
Constructors
Reduce
Group
Builder
Link copied to clipboard
constructor
(
actionMeta
:
Meta
,
outputType
:
KType
)
Properties
action
Meta
Link copied to clipboard
val
actionMeta
:
Meta
Functions
by
Value
Link copied to clipboard
fun
byValue
(
tag
:
String
,
defaultTag
:
String
=
"@default"
,
action
:
JoinGroup
<
T
,
R
>
.
(
)
->
Unit
)
introduce grouping by meta value
group
Link copied to clipboard
fun
group
(
groupName
:
String
,
predicate
:
(
Name
,
Meta
)
->
Boolean
,
action
:
JoinGroup
<
T
,
R
>
.
(
)
->
Unit
)
result
Link copied to clipboard
fun
result
(
resultName
:
String
,
f
:
suspend
ActionEnv
.
(
Map
<
Name
,
ValueWithMeta
<
T
>
>
)
->
R
)
Apply transformation to the whole node