/AWS1/IF_GLU=>CREATECLASSIFIER()¶
About CreateClassifier¶
Creates a classifier in the user's account. This can be a GrokClassifier, an
XMLClassifier, a JsonClassifier, or a CsvClassifier,
depending on which field of the request is present.
Method Signature¶
METHODS /AWS1/IF_GLU~CREATECLASSIFIER
IMPORTING
!IO_GROKCLASSIFIER TYPE REF TO /AWS1/CL_GLUCREGROKCLIFIERREQ OPTIONAL
!IO_XMLCLASSIFIER TYPE REF TO /AWS1/CL_GLUCREXMLCLIFIERREQ OPTIONAL
!IO_JSONCLASSIFIER TYPE REF TO /AWS1/CL_GLUCREJSONCLIFIERREQ OPTIONAL
!IO_CSVCLASSIFIER TYPE REF TO /AWS1/CL_GLUCRECSVCLIFIERREQ OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_glucreclassifierrsp
RAISING
/AWS1/CX_GLUALREADYEXISTSEX
/AWS1/CX_GLUINVALIDINPUTEX
/AWS1/CX_GLUOPERATIONTIMEOUTEX
/AWS1/CX_GLUCLIENTEXC
/AWS1/CX_GLUSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Optional arguments:¶
io_grokclassifier TYPE REF TO /AWS1/CL_GLUCREGROKCLIFIERREQ /AWS1/CL_GLUCREGROKCLIFIERREQ¶
A
GrokClassifierobject specifying the classifier to create.
io_xmlclassifier TYPE REF TO /AWS1/CL_GLUCREXMLCLIFIERREQ /AWS1/CL_GLUCREXMLCLIFIERREQ¶
An
XMLClassifierobject specifying the classifier to create.
io_jsonclassifier TYPE REF TO /AWS1/CL_GLUCREJSONCLIFIERREQ /AWS1/CL_GLUCREJSONCLIFIERREQ¶
A
JsonClassifierobject specifying the classifier to create.
io_csvclassifier TYPE REF TO /AWS1/CL_GLUCRECSVCLIFIERREQ /AWS1/CL_GLUCRECSVCLIFIERREQ¶
A
CsvClassifierobject specifying the classifier to create.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_glucreclassifierrsp /AWS1/CL_GLUCRECLASSIFIERRSP¶
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->createclassifier(
io_csvclassifier = new /aws1/cl_glucrecsvclifierreq(
it_customdatatypes = VALUE /aws1/cl_glucustomdatatypes_w=>tt_customdatatypes(
( new /aws1/cl_glucustomdatatypes_w( |string| ) )
)
it_header = VALUE /aws1/cl_glucsvheader_w=>tt_csvheader(
( new /aws1/cl_glucsvheader_w( |string| ) )
)
iv_allowsinglecolumn = ABAP_TRUE
iv_containsheader = |string|
iv_customdatatypeconfigured = ABAP_TRUE
iv_delimiter = |string|
iv_disablevaluetrimming = ABAP_TRUE
iv_name = |string|
iv_quotesymbol = |string|
iv_serde = |string|
)
io_grokclassifier = new /aws1/cl_glucregrokclifierreq(
iv_classification = |string|
iv_custompatterns = |string|
iv_grokpattern = |string|
iv_name = |string|
)
io_jsonclassifier = new /aws1/cl_glucrejsonclifierreq(
iv_jsonpath = |string|
iv_name = |string|
)
io_xmlclassifier = new /aws1/cl_glucrexmlclifierreq(
iv_classification = |string|
iv_name = |string|
iv_rowtag = |string|
)
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
ENDIF.