A11 (C++ runtime)
Native C++ implementation of the A11 streaming action runtime
Loading...
Searching...
No Matches
a11::flow::graph::Stage Struct Reference

A resolved pipeline stage. kAt extracts a field from each stream value. More...

#include <cpp/a11/flow/graph.h>

Public Attributes

std::string name
 
RefId destination = kNone
 Destination context used by a terminal reference stage.
 
bool optional = false
 
std::optional< syntax::TypeExpression > type
 
vocabulary::StageArgument takes = vocabulary::StageArgument::kNone
 
long long count = 0
 kNumber: a constant count, or the runtime configuration when evaluated.
 
std::string text
 kString/kOptionalString: the text. Also the field name for at.
 
ExprId expr = kNone
 kExpression: the expression, with it bound.
 
ExprId context_before = kNone
 context: surrounding item counts, evaluated once at stage activation.
 
ExprId context_after = kNone
 
bool context_numbered = false
 
ExprId context_base = kNone
 
RefId stream = kNone
 kStream: the stream then reads after this one.
 
LogTail log
 kLog/kLogFormat: what was written after the stage name.
 
bool indexed = false
 Whether at was written as an index rather than a field name.
 
long long index = 0
 
std::vector< std::string > destructured
 
std::vector< std::optional< syntax::TypeExpression > > destructured_types
 
absl::Duration duration
 kDuration: how long timeout waits for the next value, or pace leaves between two of them.
 
bool descending = false
 sort: whether the order is reversed.
 
syntax::Constant start
 fold: initial value, carried name, and its expression reference.
 
std::string carried
 
RefId carry = kNone
 
bool tolerant = false
 try: tolerate an item's evaluation failure; context may retain it.
 
RefId failures = kNone
 try ... failures into ref: where a tolerated failure goes.
 
int parallel = 1
 parallel n: how many values this stage may work on at once.
 
ExprId parallel_expression = kNone
 
bool ordered = true
 Whether values leave in the order they arrived.
 

Detailed Description

A resolved pipeline stage. kAt extracts a field from each stream value.

Member Data Documentation

◆ carried

std::string a11::flow::graph::Stage::carried

◆ carry

RefId a11::flow::graph::Stage::carry = kNone

◆ context_after

ExprId a11::flow::graph::Stage::context_after = kNone

◆ context_base

ExprId a11::flow::graph::Stage::context_base = kNone

◆ context_before

ExprId a11::flow::graph::Stage::context_before = kNone

context: surrounding item counts, evaluated once at stage activation.

◆ context_numbered

bool a11::flow::graph::Stage::context_numbered = false

◆ count

long long a11::flow::graph::Stage::count = 0

kNumber: a constant count, or the runtime configuration when evaluated.

◆ descending

bool a11::flow::graph::Stage::descending = false

sort: whether the order is reversed.

◆ destination

RefId a11::flow::graph::Stage::destination = kNone

Destination context used by a terminal reference stage.

◆ destructured

std::vector<std::string> a11::flow::graph::Stage::destructured

◆ destructured_types

std::vector<std::optional<syntax::TypeExpression> > a11::flow::graph::Stage::destructured_types

◆ duration

absl::Duration a11::flow::graph::Stage::duration

kDuration: how long timeout waits for the next value, or pace leaves between two of them.

◆ expr

ExprId a11::flow::graph::Stage::expr = kNone

kExpression: the expression, with it bound.

kNumber/kDuration: scalar configuration evaluated once per activation, without it.

◆ failures

RefId a11::flow::graph::Stage::failures = kNone

try ... failures into ref: where a tolerated failure goes.

◆ index

long long a11::flow::graph::Stage::index = 0

◆ indexed

bool a11::flow::graph::Stage::indexed = false

Whether at was written as an index rather than a field name.

◆ log

LogTail a11::flow::graph::Stage::log

kLog/kLogFormat: what was written after the stage name.

◆ name

std::string a11::flow::graph::Stage::name

◆ optional

bool a11::flow::graph::Stage::optional = false

◆ ordered

bool a11::flow::graph::Stage::ordered = true

Whether values leave in the order they arrived.

A parallel stage puts them back in order unless unordered said not to.

◆ parallel

int a11::flow::graph::Stage::parallel = 1

parallel n: how many values this stage may work on at once.

◆ parallel_expression

ExprId a11::flow::graph::Stage::parallel_expression = kNone

◆ start

syntax::Constant a11::flow::graph::Stage::start

fold: initial value, carried name, and its expression reference.

◆ stream

RefId a11::flow::graph::Stage::stream = kNone

kStream: the stream then reads after this one.

◆ takes

◆ text

std::string a11::flow::graph::Stage::text

kString/kOptionalString: the text. Also the field name for at.

◆ tolerant

bool a11::flow::graph::Stage::tolerant = false

try: tolerate an item's evaluation failure; context may retain it.

◆ type

std::optional<syntax::TypeExpression> a11::flow::graph::Stage::type

The documentation for this struct was generated from the following file: