GoodData.UI API reference
  • GoodData.UI
  • Docs & APIs
  • Developers
  • GoodData.CN
  • GoodData.UI
  • Docs & APIs
  • Get GoodData.CN Community Edition
  • 10.26.0
  • Code samples
  • Gallery
  • GitHub

forBuckets()

Home > @gooddata/sdk-backend-spi > IExecutionFactory > forBuckets

IExecutionFactory.forBuckets() method

Prepares a new execution for a list of buckets.

Signature:

forBuckets(buckets: IBucket[], filters?: INullableFilter[], options?: IPreparedExecutionOptions): IPreparedExecution;

Parameters

ParameterTypeDescription
bucketsIBucket[]list of buckets with attributes and measures, must be non empty, must have at least one attr or measure
filtersINullableFilter[](Optional) optional, may not be provided, may contain null or undefined values which must be ignored
optionsIPreparedExecutionOptions(Optional) additional options for the prepared execution

Returns:

IPreparedExecution

Remarks

Attributes and measures WILL be transferred to the execution in natural order:

  • Order of items within a bucket is retained in the execution - Items from first bucket appear before items from second bucket

Or more specifically, given two buckets with items as [A1, A2, M1] and [A3, M2, M3], the resulting prepared execution WILL have definition with attributes = [A1, A2, A3] and measures = [M1, M2, M3]

The contract is that prepared executions created by this method MUST be executable and MUST come with pre-filled dimensions created using the defaultDimensionsGenerator().

  • IExecutionFactory.forBuckets() method
  • Parameters
  • Remarks
GoodData resources:
  • Documentation
Follow the community:
  • Community
Copyright © 2007–2025 GoodData Corporation. All Rights Reserved. Code licensed under a dual license - CC BY‑NC 4.0 for trial experience and GoodData.UI EULA for commercial use