The API for registering providers with Phlex v0.2.0 looks like:
g.provide("provide_number", provide_number, concurrency::unlimited)
.output_product(product_query{.creator = "input", .layer = "run", .suffix = "number"});
where provide_number is a user-defined function that receives a data_cell_index. There are two problems with this API:
- The
product_query type is the wrong construct. product_query connotes an object that is intended to be used for "looking up" a data product. Instead, the provider is supplying a data product of a particular type, with a particular suffix, creator, and one or more associated layers.
- The
"provide_number" name may not be meaningful. It is not currently used in the lookup of data products.
The API for registering providers with Phlex v0.2.0 looks like:
where
provide_numberis a user-defined function that receives adata_cell_index. There are two problems with this API:product_querytype is the wrong construct.product_queryconnotes an object that is intended to be used for "looking up" a data product. Instead, the provider is supplying a data product of a particular type, with a particular suffix, creator, and one or more associated layers."provide_number"name may not be meaningful. It is not currently used in the lookup of data products.