rewind

Use the rewind v4 API method to restart a result set at the beginning of the table.

Declaration

 short rewind(
		a_v4_extfn_table_context           *cntxt,
		)

Usage

Call the rewind method on an open result set to rewind the table to the beginning. If the UDF intends to rewind an input table, it must inform the producer during the state EXTFNAPIV4_STATE_OPTIMIZATION using the EXTFNAPIV4_DESCRIBE_PARM_TABLE_REQUEST_REWIND parameter.

rewind() is an optional entry point. If NULL, rewind is not supported. Otherwise, the rewind() entry point restarts the result set at the beginning of the table.

Parameters

Parameter Description
cntxt The table context object

Returns

1 if successful, 0 otherwise.