An introduction to SDK functions, their purposes, and parameters.
The functions available in the C/C++ SDK to register a query are listed below:
Parameters:
i_server_uri: The URL of the (for example, http://localhost:6789) that manages the query.
i_workspace: The name of the workspace where the query is run.
i_query_name: The name of the query. This name must be unique among the dynamically loaded queries for this workspace.
i_query_text: The text of the query. The text of the query is a set of zero or more CCL statements. Any CCL constructs may be used in the query.
i_stream_cnt: The number of streams in the query.
i_streams: An array of objects describing the streams used by the query.
i_parameter_cnt: The number of parameters in the query.
i_parameters: An array describing the query parameters. If you are not specifying any parameters (for example, "$XYZ" in a CCL statement), you can pass NULL.
i_opts: A struct describing the compiler options to be set. Pass NULL to use defaults.
i_cleanup_tmp_files: A boolean indicating whether to clean up temporary files.
o_tmp_file_list: A pointer that will be set to point to an array of character strings that contain the names of the temporary files. If you do not want the names of these files, simply pass NULL.
Returns: C8_OK on success; C8_FAIL otherwise.
Parameters:
i_name: The stream name as used in the CCL query text.
i_src_uri: The URI of the stream this stream binds to.
i_max_delay: Max delay parameter for the input stream, in microseconds.
i_is_out_of_order: C8_TRUE if the stream is to accept out-of-order messages; C8_FALSE otherwise.
i_out_of_order_delay: If out-of-order messages are accepted, the maximum out-of-order delay, in microseconds.
i_is_use_server_timestamp: C8_TRUE if the stream is to set the timestamp of incoming messages to the current server time; C8_FALSE otherwise.
Returns: An instance of the C8StreamInfo if successful; NULL otherwise. The object returned by this function must be deallocated with C8StreamInfoDestroy().
Parameters:
i_name stream: The name as used in the CCL query text.
i_schema: The stream schema.
i_max_delay: Max delay parameter for the input stream, in microseconds.
i_is_out_of_order: C8_TRUE if the stream is to accept out-of-order messages; C8_FALSE otherwise.
i_out_of_order_delay: If out-of-order messages are accepted, the maximum out-of-order delay, in microseconds.
i_is_use_server_timestamp: C8_TRUE if the stream is to set the timestamp of incoming messages to the current server time.
Returns: An instance of C8StreamInfo if successful; NULL otherwise
Parameters:
i_name: The stream name as used in the CCL query text.
i_schema: The stream schema.
Returns: An instance of the C8StreamInfo if successful; NULL otherwise. The object returned by this function must be deallocated with C8StreamInfoDestroy().
Parameters:
i_name: The stream name as used in the CCL query text.
i_dst_uri: The URI of the stream this stream binds to.
Returns: An instance of the C8StreamInfo if successful; NULL otherwise. The object returned by this function must be deallocated with C8StreamInfoDestroy().
Parameters:
i_name: The stream name as used in the CCL query text.
Returns: An instance of the C8StreamInfo if successful; NULL otherwise. The object returned by this function must be deallocated with C8StreamInfoDestroy().
Parameters:
i_stream_info: The object to destroy.
Parameters:
i_name: The parameter name.
i_value: The parameter value.
Returns: An instance of the C8ParameterInfo if successful; NULL otherwise.
Parameters:
i_name: The parameter name.
i_value: The parameter value.
Returns: An instance of the C8ParameterInfo if successful; NULL otherwise. The object returned by this function must be deallocated with C8ParameterInfoDestroy().
Parameters:
i_name: The parameter name.
i_value: The parameter value.
Returns: Instance of the C8ParameterInfo if successful; NULL otherwise. The object returned by this function must be deallocated with C8ParameterInfoDestroy().
Parameters:
i_name: The parameter name.
i_value: The parameter value.
Returns: An instance of the C8ParameterInfo if successful; NULL otherwise. The object returned by this function must be deallocated with C8ParameterInfoDestroy().
Parameters:
i_name: The parameter name.
i_value: The parameter value.
Returns: An instance of the C8ParameterInfo if successful; NULL otherwise. The object returned by this function must be deallocated with C8ParameterInfoDestroy().
Parameters:
i_name: The parameter name.
i_value: The parameter value.
Returns: An instance of the C8ParameterInfo if successful; NULL otherwise. The object returned by this function must be deallocated with C8ParameterInfoDestroy().
Parameters:
i_name: The parameter name.
i_value: The parameter value.
Returns: An instance of the C8ParameterInfo if successful; NULL otherwise. The object returned by this function must be deallocated with C8ParameterInfoDestroy().
Parameters:
i_prm_info: The C8ParameterInfo object to destroy.