/AWS1/CL_LKF=>STARTQUERYPLANNING()
¶
About StartQueryPlanning¶
Submits a request to process a query statement.
This operation generates work units that can be retrieved with the GetWorkUnits
operation as soon as the query state is WORKUNITS_AVAILABLE or FINISHED.
Method Signature¶
IMPORTING¶
Required arguments:¶
io_queryplanningcontext
TYPE REF TO /AWS1/CL_LKFQUERYPLANNINGCTX
/AWS1/CL_LKFQUERYPLANNINGCTX
¶
A structure containing information about the query plan.
iv_querystring
TYPE /AWS1/LKFSYNTHETICSTRTQUERYP00
/AWS1/LKFSYNTHETICSTRTQUERYP00
¶
A PartiQL query statement used as an input to the planner service.
RETURNING¶
oo_output
TYPE REF TO /aws1/cl_lkfstrtqueryplannin01
/AWS1/CL_LKFSTRTQUERYPLANNIN01
¶
Domain /AWS1/RT_ACCOUNT_ID Primitive Type NUMC
Examples¶
Syntax Example¶
This is an example of the syntax for calling the method. It includes every possible argument and initializes every possible value. The data provided is not necessarily semantically accurate (for example the value "string" may be provided for something that is intended to be an instance ID, or in some cases two arguments may be mutually exclusive). The syntax shows the ABAP syntax for creating the various data structures.
DATA(lo_result) = lo_client->/aws1/if_lkf~startqueryplanning(
io_queryplanningcontext = new /aws1/cl_lkfqueryplanningctx(
it_queryparameters = VALUE /aws1/cl_lkfqueryparammap_w=>tt_queryparametermap(
(
VALUE /aws1/cl_lkfqueryparammap_w=>ts_queryparametermap_maprow(
value = new /aws1/cl_lkfqueryparammap_w( |string| )
key = |string|
)
)
)
iv_catalogid = |string|
iv_databasename = |string|
iv_queryasoftime = '20150101000000.0000000'
iv_transactionid = |string|
)
iv_querystring = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lv_queryidstring = lo_result->get_queryid( ).
ENDIF.