/AWS1/IF_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¶
METHODS /AWS1/IF_LKF~STARTQUERYPLANNING
IMPORTING
!IO_QUERYPLANNINGCONTEXT TYPE REF TO /AWS1/CL_LKFQUERYPLANNINGCTX OPTIONAL
!IV_QUERYSTRING TYPE /AWS1/LKFSYNTHETICSTRTQUERYP00 OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_lkfstrtqueryplannin01
RAISING
/AWS1/CX_LKFACCESSDENIEDEX
/AWS1/CX_LKFINTERNALSERVICEEX
/AWS1/CX_LKFINVALIDINPUTEX
/AWS1/CX_LKFTHROTTLEDEXCEPTION
/AWS1/CX_LKFCLIENTEXC
/AWS1/CX_LKFSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
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->startqueryplanning(
io_queryplanningcontext = new /aws1/cl_lkfqueryplanningctx(
it_queryparameters = VALUE /aws1/cl_lkfqueryparammap_w=>tt_queryparametermap(
(
VALUE /aws1/cl_lkfqueryparammap_w=>ts_queryparametermap_maprow(
key = |string|
value = new /aws1/cl_lkfqueryparammap_w( |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.