View Source Skitter.BIC (Skitter v0.5.3)
Shorthands for using BICs.
This module defines various macros which can be used to use the various built-in components in skitter workflows.
Link to this section Summary
Link to this section Functions
Skitter.BIC.FlatMap
node.
Like map/2
, but with Skitter.BIC.FlatMap
.
Skitter.BIC.KeyBy
node.
Inserts a Skitter.BIC.KeyBy
Skitter.DSL.Workflow.node/2
in the workflow. The provided func
will be passed as an argument to Skitter.BIC.KeyBy
. Other arguments (as:
, with:
) should be
passed as the optional, third argument.
Skitter.BIC.KeyedReduce
node.
Inserts a Skitter.BIC.KeyedReduce
Skitter.DSL.Workflow.node/2
in the workflow. The func
and
initial
arguments passed to this macro are passed as arguments to Skitter.BIC.KeyedReduce
.
Other options (as:
, with:
) can be passed as a third argument.
Skitter.BIC.Map
node.
Inserts a Skitter.BIC.Map
Skitter.DSL.Workflow.node/2
in the workflow. The argument passed
to this macro is passed as an argument to Skitter.BIC.Map
, other options (as:
, with:
)
should be passed as a second, optional argument.
Message source node.
Inserts a Skitter.BIC.MessageSource
node in the workflow. Any options are passed to the
workflow.
Skitter.BIC.Print
node.
Insert a Skitter.BIC.Print
node in the workflow. The argument passed to this macro is passed
as the print label described in the component documentation. Workflow options (as
, with
) can
be passed as the optional second argument.
Skitter.BIC.Send
node.
Insert a Skitter.BIC.Send
sink in the workflow. The argument passed to this macro is passed
as the pid described in the component documentation. Workflow options (as
, with
) can
be passed as the optional second argument. When no argument is provided, self()
will be used.
Stream source node.
Inserts a Skitter.BIC.StreamSource
node in the workflow. The provided enum
is passed as an
argument to Skitter.BIC.StreamSource
. opts
are passed as options to the workflow.
Tcp source node.
Inserts a Skitter.BIC.TCPSource
node in the workflow. The address and ports passed to this
argument will be passed as arguments to Skitter.BIC.TCPSource
. Provided options are passed to
the workflow.