Interface CfnDataSet.AggregateOperationProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnDataSet.AggregateOperationProperty.Jsii$Proxy
- Enclosing class:
CfnDataSet
@Stability(Stable)
public static interface CfnDataSet.AggregateOperationProperty
extends software.amazon.jsii.JsiiSerializable
A transform operation that groups rows by specified columns and applies aggregation functions to calculate summary values.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.quicksight.*;
AggregateOperationProperty aggregateOperationProperty = AggregateOperationProperty.builder()
.aggregations(List.of(AggregationProperty.builder()
.aggregationFunction(DataPrepAggregationFunctionProperty.builder()
.listAggregation(DataPrepListAggregationFunctionProperty.builder()
.distinct(false)
.separator("separator")
// the properties below are optional
.inputColumnName("inputColumnName")
.build())
.percentileAggregation(DataPrepPercentileAggregationFunctionProperty.builder()
.percentileValue(123)
// the properties below are optional
.inputColumnName("inputColumnName")
.build())
.simpleAggregation(DataPrepSimpleAggregationFunctionProperty.builder()
.functionType("functionType")
// the properties below are optional
.inputColumnName("inputColumnName")
.build())
.build())
.newColumnId("newColumnId")
.newColumnName("newColumnName")
.build()))
.alias("alias")
.source(TransformOperationSourceProperty.builder()
.transformOperationId("transformOperationId")
// the properties below are optional
.columnIdMappings(List.of(DataSetColumnIdMappingProperty.builder()
.sourceColumnId("sourceColumnId")
.targetColumnId("targetColumnId")
.build()))
.build())
// the properties below are optional
.groupByColumnNames(List.of("groupByColumnNames"))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnDataSet.AggregateOperationPropertystatic final classAn implementation forCfnDataSet.AggregateOperationProperty -
Method Summary
Modifier and TypeMethodDescriptionbuilder()The list of aggregation functions to apply to the grouped data, such asSUM,COUNT, orAVERAGE.getAlias()Alias for this operation.The list of column names to group by when performing the aggregation.The source transform operation that provides input data for the aggregation.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getAggregations
The list of aggregation functions to apply to the grouped data, such asSUM,COUNT, orAVERAGE.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnDataSet.AggregationProperty>- See Also:
-
getAlias
Alias for this operation.- See Also:
-
getSource
The source transform operation that provides input data for the aggregation.Returns union: either
IResolvableorCfnDataSet.TransformOperationSourceProperty- See Also:
-
getGroupByColumnNames
The list of column names to group by when performing the aggregation.Rows with the same values in these columns will be grouped together.
- See Also:
-
builder
-