ee.Reducer.forEach
Creates a Reducer by combining a copy of the given reducer for each output name in the given list. If the reducer has a single output, the output names are used as-is; otherwise they are prefixed to the original output names.
Usage | Returns |
---|
Reducer.forEach(outputNames) | Reducer |
Argument | Type | Details |
---|
this: reducer | Reducer | |
outputNames | List | |
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-07-13 UTC.
[null,null,["Last updated 2024-07-13 UTC."],[[["Generates a new Reducer by replicating the input reducer for each specified output name."],["If the original reducer has a single output, the output names are directly applied; for multiple outputs, the names are prefixed to the original output names."],["Employs a list of output names to determine the replication and naming scheme for the new reducer."],["Utilizes the `Reducer.forEach` method for creating this multi-output reducer from a single input."]]],[]]