IBM / data-broker

The Data Broker (DBR) is a distributed, in-memory container of key-value stores enabling applications in a workflow to exchange data through one or more shared namespaces. Thanks to a small set of primitives, applications in a workflow deployed in a (possibly) shared nothing distributed cluster, can easily share and exchange data and messages with a minimum effort. In- spired by the Linda coordination and communication model, the Data Broker provides a unified shared namespace to applications, which is independent from applications’ programming and communication model.
Apache License 2.0
19 stars 23 forks source link

Iterator feature #95

Closed lasch closed 5 years ago

lasch commented 5 years ago

This PR introduces an initial iterator feature (and API) to the Data Broker. It uses only a single API call to work with iterators.

 DBR_Iterator_t iterator = DBR_ITERATOR_NEW;
 do {
   iterator = dbrIterator( namespace, iterator, group, filter, keybuffer );
   /* do something with key in keybuffer */
 } while( iterator != DBR_ITERATOR_DONE )

This is the first version of the API, suggestions are welcome. Depending on feedback, there maybe minor changes in the future.