Skip to content

/AWS1/CL_GLU=>BATCHGETTABLEOPTIMIZER()

About BatchGetTableOptimizer

Returns the configuration for the specified table optimizers.

Method Signature

IMPORTING

Required arguments:

it_entries TYPE /AWS1/CL_GLUBTCGETTBLOPTIMIZ01=>TT_BTCGETTABLEOPTIMIZERENTRIES TT_BTCGETTABLEOPTIMIZERENTRIES

A list of BatchGetTableOptimizerEntry objects specifying the table optimizers to retrieve.

RETURNING

oo_output TYPE REF TO /aws1/cl_glubtcgettbloptimiz02 /AWS1/CL_GLUBTCGETTBLOPTIMIZ02

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_glu~batchgettableoptimizer(
  it_entries = VALUE /aws1/cl_glubtcgettbloptimiz01=>tt_btcgettableoptimizerentries(
    (
      new /aws1/cl_glubtcgettbloptimiz01(
        iv_catalogid = |string|
        iv_databasename = |string|
        iv_tablename = |string|
        iv_type = |string|
      )
    )
  )
).

This is an example of reading all possible response values

lo_result = lo_result.
IF lo_result IS NOT INITIAL.
  LOOP AT lo_result->get_tableoptimizers( ) into lo_row.
    lo_row_1 = lo_row.
    IF lo_row_1 IS NOT INITIAL.
      lv_catalogidstring = lo_row_1->get_catalogid( ).
      lv_databasenamestring = lo_row_1->get_databasename( ).
      lv_tablenamestring = lo_row_1->get_tablename( ).
      lo_tableoptimizer = lo_row_1->get_tableoptimizer( ).
      IF lo_tableoptimizer IS NOT INITIAL.
        lv_tableoptimizertype = lo_tableoptimizer->get_type( ).
        lo_tableoptimizerconfigura = lo_tableoptimizer->get_configuration( ).
        IF lo_tableoptimizerconfigura IS NOT INITIAL.
          lv_arnstring = lo_tableoptimizerconfigura->get_rolearn( ).
          lv_nullableboolean = lo_tableoptimizerconfigura->get_enabled( ).
          lo_tableoptimizervpcconfig = lo_tableoptimizerconfigura->get_vpcconfiguration( ).
          IF lo_tableoptimizervpcconfig IS NOT INITIAL.
            lv_glueconnectionnamestrin = lo_tableoptimizervpcconfig->get_glueconnectionname( ).
          ENDIF.
          lo_retentionconfiguration = lo_tableoptimizerconfigura->get_retentionconfiguration( ).
          IF lo_retentionconfiguration IS NOT INITIAL.
            lo_icebergretentionconfigu = lo_retentionconfiguration->get_icebergconfiguration( ).
            IF lo_icebergretentionconfigu IS NOT INITIAL.
              lv_nullableinteger = lo_icebergretentionconfigu->get_snapshotretperiodindays( ).
              lv_nullableinteger = lo_icebergretentionconfigu->get_numberofsnapstoretain( ).
              lv_nullableboolean = lo_icebergretentionconfigu->get_cleanexpiredfiles( ).
            ENDIF.
          ENDIF.
          lo_orphanfiledeletionconfi = lo_tableoptimizerconfigura->get_orphanfiledeletionconf( ).
          IF lo_orphanfiledeletionconfi IS NOT INITIAL.
            lo_icebergorphanfiledeleti = lo_orphanfiledeletionconfi->get_icebergconfiguration( ).
            IF lo_icebergorphanfiledeleti IS NOT INITIAL.
              lv_nullableinteger = lo_icebergorphanfiledeleti->get_orphanfileretperindays( ).
              lv_messagestring = lo_icebergorphanfiledeleti->get_location( ).
            ENDIF.
          ENDIF.
        ENDIF.
        lo_tableoptimizerrun = lo_tableoptimizer->get_lastrun( ).
        IF lo_tableoptimizerrun IS NOT INITIAL.
          lv_tableoptimizereventtype = lo_tableoptimizerrun->get_eventtype( ).
          lv_tableoptimizerruntimest = lo_tableoptimizerrun->get_starttimestamp( ).
          lv_tableoptimizerruntimest = lo_tableoptimizerrun->get_endtimestamp( ).
          lo_runmetrics = lo_tableoptimizerrun->get_metrics( ).
          IF lo_runmetrics IS NOT INITIAL.
            lv_messagestring = lo_runmetrics->get_numberofbytescompacted( ).
            lv_messagestring = lo_runmetrics->get_numberoffilescompacted( ).
            lv_messagestring = lo_runmetrics->get_numberofdpus( ).
            lv_messagestring = lo_runmetrics->get_jobdurationinhour( ).
          ENDIF.
          lv_messagestring = lo_tableoptimizerrun->get_error( ).
          lo_compactionmetrics = lo_tableoptimizerrun->get_compactionmetrics( ).
          IF lo_compactionmetrics IS NOT INITIAL.
            lo_icebergcompactionmetric = lo_compactionmetrics->get_icebergmetrics( ).
            IF lo_icebergcompactionmetric IS NOT INITIAL.
              lv_metriccounts = lo_icebergcompactionmetric->get_numberofbytescompacted( ).
              lv_metriccounts = lo_icebergcompactionmetric->get_numberoffilescompacted( ).
              lv_dpuhours = lo_icebergcompactionmetric->get_dpuhours( ).
              lv_dpucounts = lo_icebergcompactionmetric->get_numberofdpus( ).
              lv_dpudurationinhour = lo_icebergcompactionmetric->get_jobdurationinhour( ).
            ENDIF.
          ENDIF.
          lo_retentionmetrics = lo_tableoptimizerrun->get_retentionmetrics( ).
          IF lo_retentionmetrics IS NOT INITIAL.
            lo_icebergretentionmetrics = lo_retentionmetrics->get_icebergmetrics( ).
            IF lo_icebergretentionmetrics IS NOT INITIAL.
              lv_metriccounts = lo_icebergretentionmetrics->get_numberofdatafilesdeleted( ).
              lv_metriccounts = lo_icebergretentionmetrics->get_numofmanifestfilesdeld( ).
              lv_metriccounts = lo_icebergretentionmetrics->get_numofmanifestlistsdeld( ).
              lv_dpuhours = lo_icebergretentionmetrics->get_dpuhours( ).
              lv_dpucounts = lo_icebergretentionmetrics->get_numberofdpus( ).
              lv_dpudurationinhour = lo_icebergretentionmetrics->get_jobdurationinhour( ).
            ENDIF.
          ENDIF.
          lo_orphanfiledeletionmetri = lo_tableoptimizerrun->get_orphanfiledeletionmet( ).
          IF lo_orphanfiledeletionmetri IS NOT INITIAL.
            lo_icebergorphanfiledeleti_1 = lo_orphanfiledeletionmetri->get_icebergmetrics( ).
            IF lo_icebergorphanfiledeleti_1 IS NOT INITIAL.
              lv_metriccounts = lo_icebergorphanfiledeleti_1->get_numoforphanfilesdeleted( ).
              lv_dpuhours = lo_icebergorphanfiledeleti_1->get_dpuhours( ).
              lv_dpucounts = lo_icebergorphanfiledeleti_1->get_numberofdpus( ).
              lv_dpudurationinhour = lo_icebergorphanfiledeleti_1->get_jobdurationinhour( ).
            ENDIF.
          ENDIF.
        ENDIF.
      ENDIF.
    ENDIF.
  ENDLOOP.
  LOOP AT lo_result->get_failures( ) into lo_row_2.
    lo_row_3 = lo_row_2.
    IF lo_row_3 IS NOT INITIAL.
      lo_errordetail = lo_row_3->get_error( ).
      IF lo_errordetail IS NOT INITIAL.
        lv_namestring = lo_errordetail->get_errorcode( ).
        lv_descriptionstring = lo_errordetail->get_errormessage( ).
      ENDIF.
      lv_catalogidstring = lo_row_3->get_catalogid( ).
      lv_databasenamestring = lo_row_3->get_databasename( ).
      lv_tablenamestring = lo_row_3->get_tablename( ).
      lv_tableoptimizertype = lo_row_3->get_type( ).
    ENDIF.
  ENDLOOP.
ENDIF.