Datatype objects in the SQL-MapReduce C API provide utility methods for memory allocation and operations on data objects. The datatypes have the following common set of utility functions, where "*" is replaced with the name of the datatype:
- sqlmr_*_newFromOther
- sqlmr_*_newFromCstring
- sqlmr_*_releaseOwned
- sqlmr_*_allocCstring
- sqlmr_*_printToCstring
- sqlmr_*_cmp
- sqlmr_*_equals
In addition to the common methods listed above, some datatypes provide more specialized functions. For example, the SqlmrDate datatype provides the utility functions sqlmr_date_newFromMDY and sqlmr_date_toMDY for working with month, day, and year values directly.
For details, read the individual header file comments. For example, see String.h for information about sqlmr_string_newFromOther, sqlmr_string_newFromCstring, sqlmr_string_releaseOwned, and so on.