Skip to main content

composite:scope_generator

Version: 0.0.0

Description

Generator operator that returns an element chunk each time generator_counteris modified until all elements have been handled.

Inputs

InputNameExpected type(s)Description
Pin 0
Required
generator_counterint32Increment this input to get the next element scope for output element_scoping .
Pin 1element_scopingscopingElement scoping
Pin 3stream_providerstreams_containerstream_provider of the result file. Required if no explicit element scope is providedor the result definition contains Named Selections.
Pin 4data_sourcesdata_sourcesComposite data sources
Pin 402data_treeabstract_data_treeConfiguration containing the following keys: max_chunk_size (int) and named_selections ([string]))

Outputs

OutputNameExpected type(s)Description
Pin 0element_scopingscopingElement scoping for current chunk.
Pin 1is_finishedboolReturns true if generator has returned all the requested elements. In this case the output of pin element_scoping is empty.

Configurations

NameExpected type(s)Default valueDescription
mutexboolfalseIf this option is set to true, the shared memory is prevented from being simultaneously accessed by multiple threads.

Scripting

Category: composite

Plugin: composite

Scripting name: scope_generator

Full name: composite.scope_generator

Internal name: composite::scope_generator

License: None

Changelog

  • Version 0.0.0: Initial release.