| |||||||||||
Reference/es_mbi_beginfetchSyntaxint es_mbi_beginfetch( struct es_mbi *iter, struct es_mbn *nd ); Arguments
Return Codes
DescriptionSet iterator If one or more membership filters ( struct es_mbm ) have been added to the associated iterator field-binding ( struct es_mbb ) es_mbi_beginfetch() will instead point to the first row for which the filters are valid. Equivalent to calling es_mbi_begininit() followed by es_mbi_incfetch(). es_mbi_incfetch() can be used subsequently to advance es_mbi_beginfetch() and es_mbi_incfetch() are typically used together to iterate over all the rows in a node via a for loop: int r; for( r = es_mbi_beginfetch( iter, nd ); r == ES_ERROR_NONE; r = es_mbi_incfetch( iter ) ) { /* do useful work with the data for this row */ } | |||||||||||
Copyright © 2012 by Richard Brooks |