Documentation
¶
Overview ¶
Package stream_ops exposes kernel stream operations to Flow DSL.
Typical use:
fs.walk -> stream.batch @{ size: 100 } -> process
Index ¶
Constants ¶
View Source
const ID = "stream_ops"
Variables ¶
This section is empty.
Functions ¶
func Fold ¶ added in v0.30.2
func Fold(cfg FoldConfig) action.StreamOp[any, any]
Fold consumes the complete stream and emits one accumulated value. Its expression is compiled once when the operator is built; evaluation remains streaming and retains only the accumulator.
func Operators ¶
func Operators() []action.NamedOperator
Operators exposes the stateless stream manipulators into the DSL.
Types ¶
type FoldConfig ¶ added in v0.30.2
FoldConfig configures stream.fold. Expression is evaluated once per input item with the current accumulator available as acc and the input as item.
Click to show internal directories.
Click to hide internal directories.