ee.Reducer.disaggregate
Separates aggregate inputs (Arrays, Lists, or Dictionaries) into individual items that are then each passed to the specified reducer. When used on dictionaries, the dictionary keys are ignored. Non-aggregated inputs (e.g., Numbers or Strings) are passed to the underlying reducer directly.
Usage | Returns | Reducer.disaggregate(axis) | Reducer |
Argument | Type | Details | this: reducer | Reducer | The reducer for which to disaggregate inputs. |
axis | Integer, default: null | If specified, indicates an array axis along which to disaggregate. If not specified, arrays are completely disaggregated. Ignored for non-array types. |
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-09-19 UTC.
[null,null,["Last updated 2024-09-19 UTC."],[[["Disaggregates aggregate data structures like arrays, lists, and dictionaries into individual elements for processing by the specified reducer, ignoring dictionary keys."],["Non-aggregated inputs such as numbers and strings bypass disaggregation and are directly processed by the reducer."],["Offers an optional `axis` parameter to specify the dimension along which to disaggregate arrays, enabling partial disaggregation."],["Returns a new Reducer instance incorporating the disaggregation behavior."]]],[]]