Các mối nối được dùng để kết hợp các phần tử từ nhiều bộ sưu tập (ví dụ: ImageCollection
hoặc FeatureCollection
) dựa trên một điều kiện do ee.Filter
chỉ định. Bộ lọc được tạo bằng các đối số cho các thuộc tính trong mỗi tập hợp có liên quan với nhau. Cụ thể, leftField
chỉ định thuộc tính trong bộ sưu tập chính có liên quan đến rightField
trong bộ sưu tập phụ. Loại bộ lọc (ví dụ: equals
, greaterThanOrEquals
, lessThan
, v.v.)
cho biết mối quan hệ giữa các trường. Loại mối quan hệ liên kết cho biết mối quan hệ một với nhiều hoặc một với một giữa các phần tử trong tập hợp và số lượng kết quả trùng khớp cần giữ lại. Kết quả của một phép nối do join.apply()
tạo ra và sẽ khác nhau tuỳ theo loại phép nối.
Tổng quan về tính năng Tham gia
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-25 UTC.
[null,null,["Cập nhật lần gần đây nhất: 2025-07-25 UTC."],[[["\u003cp\u003eJoins combine elements from different collections like \u003ccode\u003eImageCollection\u003c/code\u003e and \u003ccode\u003eFeatureCollection\u003c/code\u003e based on a specified condition using an \u003ccode\u003eee.Filter\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eee.Filter\u003c/code\u003e defines the relationship between properties in the collections using \u003ccode\u003eleftField\u003c/code\u003e and \u003ccode\u003erightField\u003c/code\u003e along with a filter type like \u003ccode\u003eequals\u003c/code\u003e or \u003ccode\u003elessThan\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eDifferent join types handle one-to-one or one-to-many relationships and control the number of matches retained, impacting the output produced by \u003ccode\u003ejoin.apply()\u003c/code\u003e.\u003c/p\u003e\n"]]],["Joins combine elements from different collections using an `ee.Filter` based on a specified condition. `leftField` and `rightField` define related properties within the primary and secondary collections, respectively. The filter type determines the relationship between these fields (e.g., equals, greaterThan). Join type specifies one-to-many or one-to-one relationships and the number of matches. The `join.apply()` method produces the output, which varies based on the chosen join type.\n"],null,["# Join Overview\n\nJoins are used to combine elements from different collections (e.g.\n`ImageCollection` or `FeatureCollection`) based on a condition\nspecified by an `ee.Filter`. The filter is constructed with arguments for\nthe properties in each collection that are related to each other. Specifically,\n`leftField` specifies the property in the primary collection that is related\nto the `rightField` in the secondary collection. The type of filter (e.g.\n`equals`, `greaterThanOrEquals`, `lessThan`, etc.)\nindicates the relationship between the fields. The type of join indicates one-to-many\nor one-to-one relationships between the elements in the collections and how many matches\nto retain. The output of a join is produced by `join.apply()` and will vary\naccording to the type of join."]]