/AWS1/CL_CUSDIVERSITYCOLUMN¶
Defines a diversity constraint for a single item column, specifying a cap type and a target value or placeholder that controls how many recommended items may share the same column value.
CONSTRUCTOR¶
IMPORTING¶
Required arguments:¶
iv_name TYPE /AWS1/CUSTEXT /AWS1/CUSTEXT¶
The name of the item catalog column on which to apply the diversity cap. The column must be defined in the recommender schema.
iv_captype TYPE /AWS1/CUSDIVERSITYCAPTYPE /AWS1/CUSDIVERSITYCAPTYPE¶
The type of diversity cap to apply. Valid values are
PERCENTAGE(interpretTargetas a percentage of returned items) andVALUE(interpretTargetas an absolute count).
iv_target TYPE /AWS1/CUSDIVERSITYTARGETXPRSN /AWS1/CUSDIVERSITYTARGETXPRSN¶
The diversity cap target. Either an integer literal (for example,
"25") or a placeholder expression of the form$namewhose value is supplied at inference time throughGetProfileRecommendations.
Queryable Attributes¶
Name¶
The name of the item catalog column on which to apply the diversity cap. The column must be defined in the recommender schema.
Accessible with the following methods¶
| Method | Description |
|---|---|
GET_NAME() |
Getter for NAME, with configurable default |
ASK_NAME() |
Getter for NAME w/ exceptions if field has no value |
HAS_NAME() |
Determine if NAME has a value |
CapType¶
The type of diversity cap to apply. Valid values are
PERCENTAGE(interpretTargetas a percentage of returned items) andVALUE(interpretTargetas an absolute count).
Accessible with the following methods¶
| Method | Description |
|---|---|
GET_CAPTYPE() |
Getter for CAPTYPE, with configurable default |
ASK_CAPTYPE() |
Getter for CAPTYPE w/ exceptions if field has no value |
HAS_CAPTYPE() |
Determine if CAPTYPE has a value |
Target¶
The diversity cap target. Either an integer literal (for example,
"25") or a placeholder expression of the form$namewhose value is supplied at inference time throughGetProfileRecommendations.
Accessible with the following methods¶
| Method | Description |
|---|---|
GET_TARGET() |
Getter for TARGET, with configurable default |
ASK_TARGET() |
Getter for TARGET w/ exceptions if field has no value |
HAS_TARGET() |
Determine if TARGET has a value |
Public Local Types In This Class¶
Internal table types, representing arrays and maps of this class, are defined as local types:
TT_DIVERSITYCOLUMNSLIST¶
TYPES TT_DIVERSITYCOLUMNSLIST TYPE STANDARD TABLE OF REF TO /AWS1/CL_CUSDIVERSITYCOLUMN WITH DEFAULT KEY
.