Couchbase C Client  3.3.14
Asynchronous C Client for Couchbase
Views (Map-Reduce)

Detailed Description

Higher level API which splits view results into rows

Typedef Documentation

◆ lcb_VIEW_CALLBACK

typedef void(* lcb_VIEW_CALLBACK) (lcb_INSTANCE *instance, int cbtype, const lcb_RESPVIEW *row)

Callback function invoked for each row returned from the view.

Parameters
instancethe library handle
cbtypethe callback type. This is set to LCB_CALLBACK_VIEWQUERY
rowInformation about the current row

Note that this callback's row->rflags will contain the LCB_RESP_F_FINAL flag set after all rows have been returned. Applications should check for the presence of this flag. If this flag is present, the row itself will contain the raw response metadata in its lcb_RESPVIEWQUERY::value field.