Expand description
DBSP stream operator implementations.
Operators are implemented in two layers. An outer layer, in most of the submodules of this one, implements a statically typed API. An inner layer, in the dynamic sub-module, is dynamically typed, unsafe, and wrapped by the outer layer in a safe way.
Code that uses DBSP hardly needs to work directly with this module. Instead, use Stream methods to instantiate operators.
Re-exports§
pub use dynamic::aggregate::Aggregator;pub use dynamic::aggregate::Avg;pub use dynamic::aggregate::Fold;pub use dynamic::aggregate::Max;pub use dynamic::aggregate::MaxSemigroup;pub use dynamic::aggregate::Min;pub use dynamic::aggregate::MinSemigroup;pub use dynamic::aggregate::Postprocess;pub use dynamic::neighborhood::DynNeighborhood;pub use group::CmpFunc;pub use input::IndexedZSetHandle;pub use input::Input;pub use input::InputHandle;pub use input::MapHandle;pub use input::SetHandle;pub use input::StagedBuffers;pub use input::Update;pub use input::ZSetHandle;pub use dynamic::join_range::StreamJoinRange;pub use dynamic::neighborhood::NeighborhoodDescr;pub use dynamic::trace::TraceBound;pub use neighborhood::NeighborhoodDescrBox;pub use neighborhood::NeighborhoodDescrStream;pub use sample::MAX_QUANTILES;pub use sample::MAX_SAMPLE_SIZE;pub use time_series::OrdPartitionedIndexedZSet;
Modules§
- apply2
- Binary operator that applies an arbitrary binary function to its inputs.
- apply3
- Ternary operator that applies an arbitrary ternary function to its inputs.
- chain_
aggregate - communication
- controlled_
filter - dynamic
- group
- input
- join
- neighborhood
- sample
- star_
join_ macros - time_
series
Structs§
- Apply
- Operator that applies a user provided function to its input at each timestamp.
- Condition
- A condition attached to a stream that can be used
to terminate the execution of a subcircuit
(see
ChildCircuit::iterate_with_conditionandChildCircuit::iterate_with_conditions). - Constant
Generator - A source operator that yields an infinite output stream from a constant value. Note: only worker 0 generates the data; the other workers generate empty streams.
- CsvSource
- A source operator that reads records of type
Tfrom a CSV file. - Delayed
Feedback - Like
FeedbackConnectorbut specialized forZ1feedback operator. - Delayed
Nested Feedback - Like
FeedbackConnectorbut specialized forZ1Nestedfeedback operator. - Delta0
delta_0DBSP operator.- Generator
- A source operator that yields an infinite output stream from a generator function.
- Generator
Nested - Generator operator for nested circuits.
- Inspect
- Sink operator that consumes a stream of values of type
Tand applies a user-provided callback to each input. - Minus
- Operator that computes the difference of values in its two input streams at each timestamp.
- Output
Handle - A handle used to read data from a stream from outside the circuit.
- Plus
- Operator that computes the sum of values in its two input streams at each timestamp.
- Sum
- Operator that computes the sum of values across all its input streams at each timestamp.
- Transaction
Generator - A version of Generator that passes a flag to the generator function when
flushhas been called, giving it a chance to produce one output per transaction. - Transaction
Z1 - Z1
- z^-1 operator delays its input by one timestamp.
- Z1Nested
- z^-1 operator over streams of streams.