Adding a count attribute and marking it with the is.linkedEntity.array.count trait indicating that for each record, this attribute holds the count of array members that should be expected to contain data values. For a detailed description and a list of use cases for this operation refer to this page.
public class CdmOperationAddCountAttribute extends CdmOperationBase
CdmProjection extends CdmObjectDefinition in Python.
Constructors
| Name |
Description |
CdmOperationAddCountAttribute(CdmCorpusContext) ctx: The corpus context.
|
Initializes a new instance of the CdmOperationAddCountAttribute class. |
Properties
| Name |
Type |
Description |
| CountAttribute |
CdmTypeAttributeDefinition |
The count attribute that will be added to the end of the input attributes list. |
Common properties
| Name |
Type |
Description |
| Condition |
string |
A string condition that is evaluated at runtime to determine if the operation will run or not. If the condition evaluates to false, only this operation will not run. |
| Explanation |
string |
The operation's explanation. |
| SourceInput |
bool? |
Property of an operation that defines if the operation receives the input from previous operation or from source entity. If true, this operation receives the attributes coming from the source entity while if false, receives the attributes coming from the previous operation. In case this property is not set, it defaults to !runSequentially. |
Methods