Create an iterator function

You can write iterator functions in SPL, C, or Java™. Each language uses different statements, functions, and methods to manage iterator tasks:
  • An SPL iterator function uses the FOREACH keyword in conjunction with the RETURN WITH RESUME statement.
  • A C-language iterator function uses DataBlade® API functions, such as mi_fp_setisdone() and mi_fp_request(), to handle each return item of the active set. MI_FPARAM maintains the iterator state that mi_fp_setisdone() and mi_fp_request() access.
  • A Java iterator function uses the UDREnv interface, which provides all necessary methods and constants.