/AWS1/IF_LKF=>SEARCHTABLESBYLFTAGS()¶
About SearchTablesByLFTags¶
This operation allows a search on TABLE resources by LFTags. This will be used by admins who want to grant user permissions on certain LF-tags. Before making a grant, the admin can use SearchTablesByLFTags to find all resources where the given LFTags are valid to verify whether the returned resources can be shared.
Method Signature¶
METHODS /AWS1/IF_LKF~SEARCHTABLESBYLFTAGS
IMPORTING
!IV_NEXTTOKEN TYPE /AWS1/LKFTOKEN OPTIONAL
!IV_MAXRESULTS TYPE /AWS1/LKFSEARCHPAGESIZE OPTIONAL
!IV_CATALOGID TYPE /AWS1/LKFCATALOGIDSTRING OPTIONAL
!IT_EXPRESSION TYPE /AWS1/CL_LKFLFTAG=>TT_EXPRESSION OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_lkfsrchtblsbylftgsrsp
RAISING
/AWS1/CX_LKFACCESSDENIEDEX
/AWS1/CX_LKFENTITYNOTFOUNDEX
/AWS1/CX_LKFGLUEENCEXCEPTION
/AWS1/CX_LKFINTERNALSERVICEEX
/AWS1/CX_LKFINVALIDINPUTEX
/AWS1/CX_LKFOPERATIONTIMEOUTEX
/AWS1/CX_LKFCLIENTEXC
/AWS1/CX_LKFSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
it_expression TYPE /AWS1/CL_LKFLFTAG=>TT_EXPRESSION TT_EXPRESSION¶
A list of conditions (
LFTagstructures) to search for in table resources.
Optional arguments:¶
iv_nexttoken TYPE /AWS1/LKFTOKEN /AWS1/LKFTOKEN¶
A continuation token, if this is not the first call to retrieve this list.
iv_maxresults TYPE /AWS1/LKFSEARCHPAGESIZE /AWS1/LKFSEARCHPAGESIZE¶
The maximum number of results to return.
iv_catalogid TYPE /AWS1/LKFCATALOGIDSTRING /AWS1/LKFCATALOGIDSTRING¶
The identifier for the Data Catalog. By default, the account ID. The Data Catalog is the persistent metadata store. It contains database definitions, table definitions, and other control information to manage your Lake Formation environment.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_lkfsrchtblsbylftgsrsp /AWS1/CL_LKFSRCHTBLSBYLFTGSRSP¶
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->searchtablesbylftags(
it_expression = VALUE /aws1/cl_lkflftag=>tt_expression(
(
new /aws1/cl_lkflftag(
it_tagvalues = VALUE /aws1/cl_lkftagvaluelist_w=>tt_tagvaluelist(
( new /aws1/cl_lkftagvaluelist_w( |string| ) )
)
iv_tagkey = |string|
)
)
)
iv_catalogid = |string|
iv_maxresults = 123
iv_nexttoken = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lv_token = lo_result->get_nexttoken( ).
LOOP AT lo_result->get_tablelist( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lo_tableresource = lo_row_1->get_table( ).
IF lo_tableresource IS NOT INITIAL.
lv_catalogidstring = lo_tableresource->get_catalogid( ).
lv_namestring = lo_tableresource->get_databasename( ).
lv_namestring = lo_tableresource->get_name( ).
lo_tablewildcard = lo_tableresource->get_tablewildcard( ).
IF lo_tablewildcard IS NOT INITIAL.
ENDIF.
ENDIF.
LOOP AT lo_row_1->get_lftagondatabase( ) into lo_row_2.
lo_row_3 = lo_row_2.
IF lo_row_3 IS NOT INITIAL.
lv_catalogidstring = lo_row_3->get_catalogid( ).
lv_lftagkey = lo_row_3->get_tagkey( ).
LOOP AT lo_row_3->get_tagvalues( ) into lo_row_4.
lo_row_5 = lo_row_4.
IF lo_row_5 IS NOT INITIAL.
lv_lftagvalue = lo_row_5->get_value( ).
ENDIF.
ENDLOOP.
ENDIF.
ENDLOOP.
LOOP AT lo_row_1->get_lftagsontable( ) into lo_row_2.
lo_row_3 = lo_row_2.
IF lo_row_3 IS NOT INITIAL.
lv_catalogidstring = lo_row_3->get_catalogid( ).
lv_lftagkey = lo_row_3->get_tagkey( ).
LOOP AT lo_row_3->get_tagvalues( ) into lo_row_4.
lo_row_5 = lo_row_4.
IF lo_row_5 IS NOT INITIAL.
lv_lftagvalue = lo_row_5->get_value( ).
ENDIF.
ENDLOOP.
ENDIF.
ENDLOOP.
LOOP AT lo_row_1->get_lftagsoncolumns( ) into lo_row_6.
lo_row_7 = lo_row_6.
IF lo_row_7 IS NOT INITIAL.
lv_namestring = lo_row_7->get_name( ).
LOOP AT lo_row_7->get_lftags( ) into lo_row_2.
lo_row_3 = lo_row_2.
IF lo_row_3 IS NOT INITIAL.
lv_catalogidstring = lo_row_3->get_catalogid( ).
lv_lftagkey = lo_row_3->get_tagkey( ).
LOOP AT lo_row_3->get_tagvalues( ) into lo_row_4.
lo_row_5 = lo_row_4.
IF lo_row_5 IS NOT INITIAL.
lv_lftagvalue = lo_row_5->get_value( ).
ENDIF.
ENDLOOP.
ENDIF.
ENDLOOP.
ENDIF.
ENDLOOP.
ENDIF.
ENDLOOP.
ENDIF.