ee.Join.inner
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 các phần tử từ tập hợp chính với các phần tử phù hợp từ tập hợp phụ. Mỗi kết quả có một thuộc tính "primary" (chính) chứa phần tử trong tập hợp chính và một thuộc tính "secondary" (phụ) chứa phần tử trùng khớp trong tập hợp phụ. Nếu measureKey được chỉ định, thì chỉ số kết hợp cũng được đính kèm vào đối tượng dưới dạng một thuộc tính.
Cách sử dụng | Giá trị trả về |
---|
ee.Join.inner(primaryKey, secondaryKey, measureKey) | Tham gia |
Đối số | Loại | Thông tin chi tiết |
---|
primaryKey | Chuỗi, mặc định: "primary" | Tên thuộc tính dùng để lưu kết quả khớp chính. |
secondaryKey | Chuỗi, mặc định: "secondary" | Tên thuộc tính dùng để lưu kết quả khớp thứ cấp. |
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ừ 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-26 UTC.
[null,null,["Cập nhật lần gần đây nhất: 2025-07-26 UTC."],[[["\u003cp\u003ePerforms an inner join between two collections based on matching keys.\u003c/p\u003e\n"],["\u003cp\u003eReturns a new collection where each element includes the matched primary and secondary elements as properties.\u003c/p\u003e\n"],["\u003cp\u003eOptionally calculates and includes a join measure as a property if a measureKey is specified.\u003c/p\u003e\n"]]],["The `ee.Join.inner` function creates a join between two collections, pairing elements based on matching criteria. Results contain a 'primary' element and a 'secondary' element. Custom names for these properties can be specified using `primaryKey` and `secondaryKey`. An optional `measureKey` allows for storing a measure associated with the join condition in the resulting object. It returns a `Join` object.\n"],null,["# ee.Join.inner\n\nReturns a join that pairs elements from the primary collection with matching elements from the secondary collection. Each result has a 'primary' property that contains the element from the primary collection, and a 'secondary' property containing the matching element from the secondary collection. If measureKey is specified, the join measure is also attached to the object as a property.\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|---------------------------------------------------------------------|---------|\n| `ee.Join.inner(`*primaryKey* `, `*secondaryKey* `, `*measureKey*`)` | Join |\n\n| Argument | Type | Details |\n|----------------|------------------------------|---------------------------------------------------------------------------|\n| `primaryKey` | String, default: \"primary\" | The property name used to save the primary match. |\n| `secondaryKey` | String, default: \"secondary\" | The property name used to save the secondary match. |\n| `measureKey` | String, default: null | An optional property name used to save the measure of the join condition. |"]]