ee.Join.saveAll
Mit Sammlungen den Überblick behalten
Sie können Inhalte basierend auf Ihren Einstellungen speichern und kategorisieren.
Gibt einen Join zurück, bei dem jedes Element aus der ersten Sammlung mit einer Gruppe übereinstimmender Elemente aus der zweiten Sammlung kombiniert wird. Die Liste der Übereinstimmungen wird jedem Ergebnis als zusätzliche Eigenschaft hinzugefügt. Wenn „measureKey“ angegeben ist, hat jede Übereinstimmung den Wert des zugehörigen Join-Messwerts. Join-Messwerte werden erstellt, wenn „withinDistance“- oder „maxDifference“-Filter als Join-Bedingung verwendet werden.
Nutzung | Ausgabe |
---|
ee.Join.saveAll(matchesKey, ordering, ascending, measureKey, outer) | Beitreten |
Argument | Typ | Details |
---|
matchesKey | String | Der Attributname, der zum Speichern der Liste der Übereinstimmungen verwendet wird. |
ordering | String, Standard: null | Das Attribut, nach dem die Liste der Übereinstimmungen sortiert werden soll. |
ascending | Boolescher Wert, Standard: „true“ | Gibt an, ob die Sortierung aufsteigend ist. |
measureKey | String, Standard: null | Ein optionaler Attributname, der verwendet wird, um das Maß der Join-Bedingung für jede Übereinstimmung zu speichern. |
outer | Boolescher Wert, Standard: „false“ | Bei „true“ werden primäre Zeilen ohne Übereinstimmungen in das Ergebnis einbezogen. |
Sofern nicht anders angegeben, sind die Inhalte dieser Seite unter der Creative Commons Attribution 4.0 License und Codebeispiele unter der Apache 2.0 License lizenziert. Weitere Informationen finden Sie in den Websiterichtlinien von Google Developers. Java ist eine eingetragene Marke von Oracle und/oder seinen Partnern.
Zuletzt aktualisiert: 2025-07-27 (UTC).
[null,null,["Zuletzt aktualisiert: 2025-07-27 (UTC)."],[[["\u003cp\u003ePairs elements from the first collection with matching elements from the second, adding the matches as a new property.\u003c/p\u003e\n"],["\u003cp\u003eOptionally sorts the list of matches based on a specified property and order.\u003c/p\u003e\n"],["\u003cp\u003eAllows for saving the measure of the join condition (e.g., distance or difference) on each match if specified.\u003c/p\u003e\n"],["\u003cp\u003eCan include primary elements without matches in the results by setting the \u003ccode\u003eouter\u003c/code\u003e parameter to true.\u003c/p\u003e\n"]]],["The `ee.Join.saveAll` function creates a join between two collections, pairing each element from the first with matching elements from the second. Matched elements are stored as a list under a specified `matchesKey`. Optionally, this list can be sorted by a given property (`ordering`) in ascending or descending order. If a join condition with distance or difference measures is used, the measurement values are attached using the `measureKey`. If `outer` is set to true elements from first collection without matches will be included in the result.\n"],null,["# ee.Join.saveAll\n\nReturns a join that pairs each element from the first collection with a group of matching elements from the second collection. The list of matches is added to each result as an additional property. If measureKey is specified, each match has the value of its join measure attached. Join measures are produced when withinDistance or maxDifference filters are used as the join condition.\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|------------------------------------------------------------------------------------------|---------|\n| `ee.Join.saveAll(matchesKey, `*ordering* `, `*ascending* `, `*measureKey* `, `*outer*`)` | Join |\n\n| Argument | Type | Details |\n|--------------|-------------------------|-----------------------------------------------------------------------------------------|\n| `matchesKey` | String | The property name used to save the matches list. |\n| `ordering` | String, default: null | The property on which to sort the matches list. |\n| `ascending` | Boolean, default: true | Whether the ordering is ascending. |\n| `measureKey` | String, default: null | An optional property name used to save the measure of the join condition on each match. |\n| `outer` | Boolean, default: false | If true, primary rows without matches will be included in the result. |"]]