Module riak_pipe_sink

Methods for sending messages to the sink.

Description

Methods for sending messages to the sink.

Sink messages are delivered as three record types: #pipe_result{}, #pipe_log{}, and #pipe_eoi{}.

Data Types

sink_type()

sink_type() = raw | {fsm, Period::integer(), Timeout::timeout()}

Function Index

eoi/2Send an end-of-inputs message to the sink (used by fittings).
log/4Send a log message to the sink (used by worker processes and fittings).
result/4Send a result to the sink (used by worker processes).
valid_sink_type/1Validate the type of sink given in the execution options.

Function Details

eoi/2

eoi(Sink::riak_pipe:fitting(), Opts::list()) -> ok | {error, term()}

Send an end-of-inputs message to the sink (used by fittings). The message is delivered as a #pipe_eoi{} record in the sink process's mailbox.

log/4

log(From::term(), Sink::riak_pipe:fitting(), Msg::term(), Opts::list()) -> ok | {error, term()}

Send a log message to the sink (used by worker processes and fittings). The message is delivered as a #pipe_log{} record in the sink process's mailbox.

result/4

result(From::term(), Sink::riak_pipe:fitting(), Output::term(), Opts::riak_pipe:exec_opts()) -> ok | {error, term()}

Send a result to the sink (used by worker processes). The result is delivered as a #pipe_result{} record in the sink process's mailbox.

valid_sink_type/1

valid_sink_type(Opts::riak_pipe:exec_opts()) -> true | {false, term()}

Validate the type of sink given in the execution options. Returns true if the type is valid, or {false, Type} if invalid, where Type is what was found.


Generated by EDoc