Arguments of the RtreeInfo support function
Write the RtreeInfo support function to take
four arguments.
Argument | Signature | Description |
---|---|---|
First | mi_lvarchar *dummy_obj | Should be NULL. |
Second | mi_lvarchar *operation_ptr | A pointer to an MI_LVARCHAR structure that contains a string that represents the information needed from the DataBlade module. When writing the RtreeInfo function to return the internal-page equivalents of strategy functions, the string is strat_func_substitutions. |
Third | mi_lvarchar *opclass_ptr | This argument points to an MI_LVARCHAR structure that contains a string that represents the name of the operator class. |
Fourth | mi_lvarchar *answer_ptr | This argument points to an MI_LVARCHAR structure that contains a pointer to the structure that returns information to the R-tree access method. If answer_ptr is NULL, then the R-tree access method calls the RtreeInfo function to determine if a particular operation is supported by your DataBlade module. If the operation is not supported, set the return value of the function to RLT_OP_UNSUPPORTED. If the operation is supported, set the return value of the function to MI_OK. If answer_ptr is not NULL, fill in the array of integers with the slot numbers of the internal-page equivalent strategy functions. (This array is allocated by the R-tree access method). Then set the return value of the function to MI_OK. |