ee.Join.saveFirst
Returns a join that pairs each element from the first collection with a matching element from the second collection. The first match is added to the result as an additional property.
Usage | Returns | ee.Join.saveFirst(matchKey, ordering, ascending, measureKey, outer) | Join |
Argument | Type | Details | matchKey | String | The property name used to save the match. |
ordering | String, default: null | The property on which to sort the matches before selecting the first. |
ascending | Boolean, default: true | Whether the ordering is ascending. |
measureKey | String, default: null | An optional property name used to save the measure of the join condition on the match. |
outer | Boolean, default: false | If true, primary rows without matches will be included in the result. |
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 2023-10-06 UTC.
[null,null,["Last updated 2023-10-06 UTC."],[[["This function joins two collections by pairing elements based on matching property values."],["It prioritizes the first match encountered and appends it as an additional property to the primary collection."],["Users can specify sorting criteria for the matches using `ordering` and `ascending` parameters."],["Optionally, it allows saving the measure of the join condition and includes primary rows without matches if `outer` is true."]]],[]]