In these instructions, we'll be working in an example directory called ~/dev/stage/sqlmr-sdk.
- Obtain the C SDK bundle, sqlmr-sdk-c.tar.gz.
-
Unpack the C SDK bundle.
cd ~/dev tar xf sqlmr-sdk-c.tar.gz
Change the working directory to ~/dev/stage/sqlmr-sdk. You will see these directories:
- include/sqlmr/api/c contains the SQL-MapReduce C API headers, such as ArgumentClause.h, ByteArray.h, ByteStream.h, ColumnDefinition.h, Core.h, and so on. Comments in the header files explains the methods you will implement when developing a row or partition function, and they discuss memory ownership, error conditions, and so on.
- example/c contains some sample C API functions (source code and makefiles) such as echo_input and list_files. You will also find source code here, for example function tests that use TestRunner for local testing.
- include/sqlmr/testrunner/c contains the header files of the TestRunner testing framework for testing API functions locally. Comments in the headers explain the tools provided for testing.
- lib contains the TestRunner library.