Interface AggregationResult.Builder

  • Method Details

    • groupByWithStrings

      AggregationResult.Builder groupByWithStrings(Collection<String> groupBy)

      The field that the customer accounts are grouped by.

      Parameters:
      groupBy - The field that the customer accounts are grouped by.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • groupByWithStrings

      AggregationResult.Builder groupByWithStrings(String... groupBy)

      The field that the customer accounts are grouped by.

      Parameters:
      groupBy - The field that the customer accounts are grouped by.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • groupBy

      The field that the customer accounts are grouped by.

      Parameters:
      groupBy - The field that the customer accounts are grouped by.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • groupBy

      The field that the customer accounts are grouped by.

      Parameters:
      groupBy - The field that the customer accounts are grouped by.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • buckets

      The groups of customer accounts, one for each value of the field, with the number of accounts in each group.

      Parameters:
      buckets - The groups of customer accounts, one for each value of the field, with the number of accounts in each group.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • buckets

      AggregationResult.Builder buckets(Bucket... buckets)

      The groups of customer accounts, one for each value of the field, with the number of accounts in each group.

      Parameters:
      buckets - The groups of customer accounts, one for each value of the field, with the number of accounts in each group.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • buckets

      The groups of customer accounts, one for each value of the field, with the number of accounts in each group.

      This is a convenience method that creates an instance of the Bucket.Builder avoiding the need to create one manually via Bucket.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to buckets(List<Bucket>).

      Parameters:
      buckets - a consumer that will call methods on Bucket.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • otherCount

      AggregationResult.Builder otherCount(Integer otherCount)

      The number of customer accounts that have a value not included in Buckets.

      Parameters:
      otherCount - The number of customer accounts that have a value not included in Buckets.
      Returns:
      Returns a reference to this object so that method calls can be chained together.