Skip to content

/AWS1/CL_GLU=>GETMLTRANSFORMS()

About GetMLTransforms

Gets a sortable, filterable list of existing Glue machine learning transforms. Machine learning transforms are a special type of transform that use machine learning to learn the details of the transformation to be performed by learning from examples provided by humans. These transformations are then saved by Glue, and you can retrieve their metadata by calling GetMLTransforms.

Method Signature

IMPORTING

Optional arguments:

iv_nexttoken TYPE /AWS1/GLUPAGINATIONTOKEN /AWS1/GLUPAGINATIONTOKEN

A paginated token to offset the results.

iv_maxresults TYPE /AWS1/GLUPAGESIZE /AWS1/GLUPAGESIZE

The maximum number of results to return.

io_filter TYPE REF TO /AWS1/CL_GLUTRANSFORMFILTCRIT /AWS1/CL_GLUTRANSFORMFILTCRIT

The filter transformation criteria.

io_sort TYPE REF TO /AWS1/CL_GLUTRANSFORMSORTCRIT /AWS1/CL_GLUTRANSFORMSORTCRIT

The sorting criteria.

RETURNING

oo_output TYPE REF TO /aws1/cl_glugetmltransformsrsp /AWS1/CL_GLUGETMLTRANSFORMSRSP

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~getmltransforms(
  io_filter = new /aws1/cl_glutransformfiltcrit(
    it_schema = VALUE /aws1/cl_gluschemacolumn=>tt_transformschema(
      (
        new /aws1/cl_gluschemacolumn(
          iv_datatype = |string|
          iv_name = |string|
        )
      )
    )
    iv_createdafter = '20150101000000.0000000'
    iv_createdbefore = '20150101000000.0000000'
    iv_glueversion = |string|
    iv_lastmodifiedafter = '20150101000000.0000000'
    iv_lastmodifiedbefore = '20150101000000.0000000'
    iv_name = |string|
    iv_status = |string|
    iv_transformtype = |string|
  )
  io_sort = new /aws1/cl_glutransformsortcrit(
    iv_column = |string|
    iv_sortdirection = |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.
  LOOP AT lo_result->get_transforms( ) into lo_row.
    lo_row_1 = lo_row.
    IF lo_row_1 IS NOT INITIAL.
      lv_hashstring = lo_row_1->get_transformid( ).
      lv_namestring = lo_row_1->get_name( ).
      lv_descriptionstring = lo_row_1->get_description( ).
      lv_transformstatustype = lo_row_1->get_status( ).
      lv_timestamp = lo_row_1->get_createdon( ).
      lv_timestamp = lo_row_1->get_lastmodifiedon( ).
      LOOP AT lo_row_1->get_inputrecordtables( ) into lo_row_2.
        lo_row_3 = lo_row_2.
        IF lo_row_3 IS NOT INITIAL.
          lv_namestring = lo_row_3->get_databasename( ).
          lv_namestring = lo_row_3->get_tablename( ).
          lv_namestring = lo_row_3->get_catalogid( ).
          lv_namestring = lo_row_3->get_connectionname( ).
          LOOP AT lo_row_3->get_additionaloptions( ) into ls_row_4.
            lv_key = ls_row_4-key.
            lo_value = ls_row_4-value.
            IF lo_value IS NOT INITIAL.
              lv_descriptionstring = lo_value->get_value( ).
            ENDIF.
          ENDLOOP.
        ENDIF.
      ENDLOOP.
      lo_transformparameters = lo_row_1->get_parameters( ).
      IF lo_transformparameters IS NOT INITIAL.
        lv_transformtype = lo_transformparameters->get_transformtype( ).
        lo_findmatchesparameters = lo_transformparameters->get_findmatchesparameters( ).
        IF lo_findmatchesparameters IS NOT INITIAL.
          lv_columnnamestring = lo_findmatchesparameters->get_primarykeycolumnname( ).
          lv_genericboundeddouble = lo_findmatchesparameters->get_precisionrecalltradeoff( ).
          lv_genericboundeddouble = lo_findmatchesparameters->get_accuracycosttradeoff( ).
          lv_nullableboolean = lo_findmatchesparameters->get_enforceprovidedlabels( ).
        ENDIF.
      ENDIF.
      lo_evaluationmetrics = lo_row_1->get_evaluationmetrics( ).
      IF lo_evaluationmetrics IS NOT INITIAL.
        lv_transformtype = lo_evaluationmetrics->get_transformtype( ).
        lo_findmatchesmetrics = lo_evaluationmetrics->get_findmatchesmetrics( ).
        IF lo_findmatchesmetrics IS NOT INITIAL.
          lv_genericboundeddouble = lo_findmatchesmetrics->get_areaunderprcurve( ).
          lv_genericboundeddouble = lo_findmatchesmetrics->get_precision( ).
          lv_genericboundeddouble = lo_findmatchesmetrics->get_recall( ).
          lv_genericboundeddouble = lo_findmatchesmetrics->get_f1( ).
          lo_confusionmatrix = lo_findmatchesmetrics->get_confusionmatrix( ).
          IF lo_confusionmatrix IS NOT INITIAL.
            lv_recordscount = lo_confusionmatrix->get_numtruepositives( ).
            lv_recordscount = lo_confusionmatrix->get_numfalsepositives( ).
            lv_recordscount = lo_confusionmatrix->get_numtruenegatives( ).
            lv_recordscount = lo_confusionmatrix->get_numfalsenegatives( ).
          ENDIF.
          LOOP AT lo_findmatchesmetrics->get_columnimportances( ) into lo_row_5.
            lo_row_6 = lo_row_5.
            IF lo_row_6 IS NOT INITIAL.
              lv_namestring = lo_row_6->get_columnname( ).
              lv_genericboundeddouble = lo_row_6->get_importance( ).
            ENDIF.
          ENDLOOP.
        ENDIF.
      ENDIF.
      lv_labelcount = lo_row_1->get_labelcount( ).
      LOOP AT lo_row_1->get_schema( ) into lo_row_7.
        lo_row_8 = lo_row_7.
        IF lo_row_8 IS NOT INITIAL.
          lv_columnnamestring = lo_row_8->get_name( ).
          lv_columntypestring = lo_row_8->get_datatype( ).
        ENDIF.
      ENDLOOP.
      lv_rolestring = lo_row_1->get_role( ).
      lv_glueversionstring = lo_row_1->get_glueversion( ).
      lv_nullabledouble = lo_row_1->get_maxcapacity( ).
      lv_workertype = lo_row_1->get_workertype( ).
      lv_nullableinteger = lo_row_1->get_numberofworkers( ).
      lv_timeout = lo_row_1->get_timeout( ).
      lv_nullableinteger = lo_row_1->get_maxretries( ).
      lo_transformencryption = lo_row_1->get_transformencryption( ).
      IF lo_transformencryption IS NOT INITIAL.
        lo_mluserdataencryption = lo_transformencryption->get_mluserdataencryption( ).
        IF lo_mluserdataencryption IS NOT INITIAL.
          lv_mluserdataencryptionmod = lo_mluserdataencryption->get_mluserdataencryptionmode( ).
          lv_namestring = lo_mluserdataencryption->get_kmskeyid( ).
        ENDIF.
        lv_namestring = lo_transformencryption->get_taskrunsecurityconfname( ).
      ENDIF.
    ENDIF.
  ENDLOOP.
  lv_paginationtoken = lo_result->get_nexttoken( ).
ENDIF.