classname_indexname_index_cursor (tree)

This function creates a cursor for subsequent use by classname_indexname_search() and the cursor navigation methods.

Prototype

    MCO_RET classname_indexname_index_cursor(    /*IN*/ mco_trans_h trans,
                              /*OUT*/ mco_cursor_h cursor);

Arguments

trans
A transaction handle returned by mco_trans_start().
cursor
An instance of a mco_cursor_h to be prepared.

Description

This function creates a cursor for subsequent use by classname_indexname_search() and the cursor navigation methods.

Return Codes

MCO_S_OK
The cursor was created successfully.
MCO_S_CURSOR_EMPTY
No objects in index.
MCO_E_VOLUNTARY_NOT_EXIST
indexname is a voluntary index, and has not been created.
MCO_ERR_CURSOR
Fatal error in cursor operation.
Related Topics Link IconRelated Topics