Datatypes in the C API - Aster Execution Engine

Teradata Aster® Developer Guide

Product
Aster Execution Engine
Release Number
7.00.02
Published
July 2017
Language
English (United States)
Last Update
2018-04-13
dita:mapPath
xnl1494366523182.ditamap
dita:ditavalPath
Generic_no_ie_no_tempfilter.ditaval
dita:id
ffu1489104705746
lifecycle
previous
Product Category
Software

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.