Interface AggregationThreshold.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<AggregationThreshold.Builder,,AggregationThreshold> SdkBuilder<AggregationThreshold.Builder,,AggregationThreshold> SdkPojo
- Enclosing class:
AggregationThreshold
-
Method Summary
Modifier and TypeMethodDescriptionallowedAggregateExpressionType(String allowedAggregateExpressionType) Specifies whether a query can aggregate a transformed column.allowedAggregateExpressionType(AllowedAggregateExpressionType allowedAggregateExpressionType) Specifies whether a query can aggregate a transformed column.identityColumns(String... identityColumns) The identity column, such asuser_id, whose distinct values Clean Rooms counts to enforce minimum aggregation thresholds.identityColumns(Collection<String> identityColumns) The identity column, such asuser_id, whose distinct values Clean Rooms counts to enforce minimum aggregation thresholds.minimumIdentityCount(Integer minimumIdentityCount) The minimum number of distinct identities that each query output group must represent.outputColumnThresholds(Collection<OutputColumnThreshold> outputColumnThresholds) The per-column overrides ofminimumIdentityCount.outputColumnThresholds(Consumer<OutputColumnThreshold.Builder>... outputColumnThresholds) The per-column overrides ofminimumIdentityCount.outputColumnThresholds(OutputColumnThreshold... outputColumnThresholds) The per-column overrides ofminimumIdentityCount.The type of aggregation that the threshold enforces.type(AggregationThresholdType type) The type of aggregation that the threshold enforces.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
identityColumns
The identity column, such as
user_id, whose distinct values Clean Rooms counts to enforce minimum aggregation thresholds. Currently, you can specify only one column, and its data type must be string, varchar, or char.- Parameters:
identityColumns- The identity column, such asuser_id, whose distinct values Clean Rooms counts to enforce minimum aggregation thresholds. Currently, you can specify only one column, and its data type must be string, varchar, or char.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
identityColumns
The identity column, such as
user_id, whose distinct values Clean Rooms counts to enforce minimum aggregation thresholds. Currently, you can specify only one column, and its data type must be string, varchar, or char.- Parameters:
identityColumns- The identity column, such asuser_id, whose distinct values Clean Rooms counts to enforce minimum aggregation thresholds. Currently, you can specify only one column, and its data type must be string, varchar, or char.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
minimumIdentityCount
The minimum number of distinct identities that each query output group must represent. This threshold applies to all output columns in the table. To override this threshold for a specific column, use
outputColumnThresholds.- Parameters:
minimumIdentityCount- The minimum number of distinct identities that each query output group must represent. This threshold applies to all output columns in the table. To override this threshold for a specific column, useoutputColumnThresholds.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
type
The type of aggregation that the threshold enforces. Currently, the only supported value is
COUNT_DISTINCT, which counts the distinct values in the identity column.- Parameters:
type- The type of aggregation that the threshold enforces. Currently, the only supported value isCOUNT_DISTINCT, which counts the distinct values in the identity column.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
type
The type of aggregation that the threshold enforces. Currently, the only supported value is
COUNT_DISTINCT, which counts the distinct values in the identity column.- Parameters:
type- The type of aggregation that the threshold enforces. Currently, the only supported value isCOUNT_DISTINCT, which counts the distinct values in the identity column.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
outputColumnThresholds
AggregationThreshold.Builder outputColumnThresholds(Collection<OutputColumnThreshold> outputColumnThresholds) The per-column overrides of
minimumIdentityCount. An output column without an override usesminimumIdentityCount.- Parameters:
outputColumnThresholds- The per-column overrides ofminimumIdentityCount. An output column without an override usesminimumIdentityCount.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
outputColumnThresholds
AggregationThreshold.Builder outputColumnThresholds(OutputColumnThreshold... outputColumnThresholds) The per-column overrides of
minimumIdentityCount. An output column without an override usesminimumIdentityCount.- Parameters:
outputColumnThresholds- The per-column overrides ofminimumIdentityCount. An output column without an override usesminimumIdentityCount.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
outputColumnThresholds
AggregationThreshold.Builder outputColumnThresholds(Consumer<OutputColumnThreshold.Builder>... outputColumnThresholds) The per-column overrides of
This is a convenience method that creates an instance of theminimumIdentityCount. An output column without an override usesminimumIdentityCount.OutputColumnThreshold.Builderavoiding the need to create one manually viaOutputColumnThreshold.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tooutputColumnThresholds(List<OutputColumnThreshold>).- Parameters:
outputColumnThresholds- a consumer that will call methods onOutputColumnThreshold.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
allowedAggregateExpressionType
Specifies whether a query can aggregate a transformed column. This applies to the arguments of both aggregate and window functions. Valid values are:
COLUMNS_ONLY– A query can aggregate only a direct column reference, such asSUM(amount), or a constant. Clean Rooms rejects a query that transforms a column and then aggregates it, such asSUM(amount * 2)orSUM(ROUND(amount)).ANY_EXPRESSION– A query can aggregate any expression. This includes arithmetic, such asSUM(price * quantity); a cast, such asSUM(CAST(amount AS DECIMAL)); a nested function call, such asSUM(COALESCE(amount, 0)); and a conditional, such asSUM(CASE WHEN region = 'EU' THEN amount ELSE 0 END).- Parameters:
allowedAggregateExpressionType- Specifies whether a query can aggregate a transformed column. This applies to the arguments of both aggregate and window functions. Valid values are:COLUMNS_ONLY– A query can aggregate only a direct column reference, such asSUM(amount), or a constant. Clean Rooms rejects a query that transforms a column and then aggregates it, such asSUM(amount * 2)orSUM(ROUND(amount)).ANY_EXPRESSION– A query can aggregate any expression. This includes arithmetic, such asSUM(price * quantity); a cast, such asSUM(CAST(amount AS DECIMAL)); a nested function call, such asSUM(COALESCE(amount, 0)); and a conditional, such asSUM(CASE WHEN region = 'EU' THEN amount ELSE 0 END).- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
allowedAggregateExpressionType
AggregationThreshold.Builder allowedAggregateExpressionType(AllowedAggregateExpressionType allowedAggregateExpressionType) Specifies whether a query can aggregate a transformed column. This applies to the arguments of both aggregate and window functions. Valid values are:
COLUMNS_ONLY– A query can aggregate only a direct column reference, such asSUM(amount), or a constant. Clean Rooms rejects a query that transforms a column and then aggregates it, such asSUM(amount * 2)orSUM(ROUND(amount)).ANY_EXPRESSION– A query can aggregate any expression. This includes arithmetic, such asSUM(price * quantity); a cast, such asSUM(CAST(amount AS DECIMAL)); a nested function call, such asSUM(COALESCE(amount, 0)); and a conditional, such asSUM(CASE WHEN region = 'EU' THEN amount ELSE 0 END).- Parameters:
allowedAggregateExpressionType- Specifies whether a query can aggregate a transformed column. This applies to the arguments of both aggregate and window functions. Valid values are:COLUMNS_ONLY– A query can aggregate only a direct column reference, such asSUM(amount), or a constant. Clean Rooms rejects a query that transforms a column and then aggregates it, such asSUM(amount * 2)orSUM(ROUND(amount)).ANY_EXPRESSION– A query can aggregate any expression. This includes arithmetic, such asSUM(price * quantity); a cast, such asSUM(CAST(amount AS DECIMAL)); a nested function call, such asSUM(COALESCE(amount, 0)); and a conditional, such asSUM(CASE WHEN region = 'EU' THEN amount ELSE 0 END).- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-