Interface CfnDataSet.PivotOperationProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnDataSet.PivotOperationProperty.Jsii$Proxy
- Enclosing class:
CfnDataSet
@Stability(Stable)
public static interface CfnDataSet.PivotOperationProperty
extends software.amazon.jsii.JsiiSerializable
A transform operation that pivots data by converting row values into columns.
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.*;
PivotOperationProperty pivotOperationProperty = PivotOperationProperty.builder()
.alias("alias")
.pivotConfiguration(PivotConfigurationProperty.builder()
.pivotedLabels(List.of(PivotedLabelProperty.builder()
.labelName("labelName")
.newColumnId("newColumnId")
.newColumnName("newColumnName")
.build()))
// the properties below are optional
.labelColumnName("labelColumnName")
.build())
.source(TransformOperationSourceProperty.builder()
.transformOperationId("transformOperationId")
// the properties below are optional
.columnIdMappings(List.of(DataSetColumnIdMappingProperty.builder()
.sourceColumnId("sourceColumnId")
.targetColumnId("targetColumnId")
.build()))
.build())
.valueColumnConfiguration(ValueColumnConfigurationProperty.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())
.build())
// the properties below are optional
.groupByColumnNames(List.of("groupByColumnNames"))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnDataSet.PivotOperationPropertystatic final classAn implementation forCfnDataSet.PivotOperationProperty -
Method Summary
Modifier and TypeMethodDescriptionbuilder()getAlias()Alias for this operation.The list of column names to group by when performing the pivot operation.Configuration that specifies which labels to pivot and how to structure the resulting columns.The source transform operation that provides input data for pivoting.Configuration for how to aggregate values when multiple rows map to the same pivoted column.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getAlias
Alias for this operation.- See Also:
-
getPivotConfiguration
Configuration that specifies which labels to pivot and how to structure the resulting columns.Returns union: either
IResolvableorCfnDataSet.PivotConfigurationProperty- See Also:
-
getSource
The source transform operation that provides input data for pivoting.Returns union: either
IResolvableorCfnDataSet.TransformOperationSourceProperty- See Also:
-
getValueColumnConfiguration
Configuration for how to aggregate values when multiple rows map to the same pivoted column.Returns union: either
IResolvableorCfnDataSet.ValueColumnConfigurationProperty- See Also:
-
getGroupByColumnNames
The list of column names to group by when performing the pivot operation.- See Also:
-
builder
-