ee.Join.saveAll
Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
Trả về một phép kết hợp ghép nối từng phần tử trong tập hợp đầu tiên với một nhóm các phần tử khớp trong tập hợp thứ hai. Danh sách các kết quả trùng khớp được thêm vào mỗi kết quả dưới dạng một thuộc tính bổ sung. Nếu measureKey được chỉ định, mỗi kết quả khớp sẽ có giá trị của chỉ số kết hợp được đính kèm. Các chỉ số kết hợp được tạo ra khi bộ lọc withinDistance hoặc maxDifference được dùng làm điều kiện kết hợp.
Cách sử dụng | Giá trị trả về |
---|
ee.Join.saveAll(matchesKey, ordering, ascending, measureKey, outer) | Tham gia |
Đối số | Loại | Thông tin chi tiết |
---|
matchesKey | Chuỗi | Tên thuộc tính dùng để lưu danh sách kết quả trùng khớp. |
ordering | Chuỗi, mặc định: null | Thuộc tính dùng để sắp xếp danh sách kết quả trùng khớp. |
ascending | Boolean, mặc định: true | Liệu thứ tự có tăng dần hay không. |
measureKey | Chuỗi, mặc định: null | Tên thuộc tính không bắt buộc dùng để lưu chỉ số của điều kiện kết hợp trên mỗi lượt khớp. |
outer | Boolean, mặc định: false | Nếu đúng, các hàng chính không có kết quả trùng khớp sẽ được đưa vào kết quả. |
Trừ phi có lưu ý khác, nội dung của trang này được cấp phép theo Giấy phép ghi nhận tác giả 4.0 của Creative Commons và các mẫu mã lập trình được cấp phép theo Giấy phép Apache 2.0. Để biết thông tin chi tiết, vui lòng tham khảo Chính sách trang web của Google Developers. Java là nhãn hiệu đã đăng ký của Oracle và/hoặc các đơn vị liên kết với Oracle.
Cập nhật lần gần đây nhất: 2025-07-27 UTC.
[null,null,["Cập nhật lần gần đây nhất: 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. |"]]