ee.Join.inner
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
แสดงผลการรวมที่จับคู่องค์ประกอบจากคอลเล็กชันหลักกับองค์ประกอบที่ตรงกันจากคอลเล็กชันรอง ผลลัพธ์แต่ละรายการมีพร็อพเพอร์ตี้ "primary" ที่มีองค์ประกอบจากคอลเล็กชันหลัก และพร็อพเพอร์ตี้ "secondary" ที่มีองค์ประกอบที่ตรงกันจากคอลเล็กชันรอง หากระบุ measureKey ระบบจะแนบการวัดผลการรวมกับออบเจ็กต์เป็นพร็อพเพอร์ตี้ด้วย
การใช้งาน | การคืนสินค้า |
---|
ee.Join.inner(primaryKey, secondaryKey, measureKey) | เข้าร่วม |
อาร์กิวเมนต์ | ประเภท | รายละเอียด |
---|
primaryKey | สตริง ค่าเริ่มต้น: "primary" | ชื่อที่พักที่ใช้บันทึกการจับคู่หลัก |
secondaryKey | สตริง ค่าเริ่มต้น: "secondary" | ชื่อพร็อพเพอร์ตี้ที่ใช้บันทึกการจับคู่รอง |
measureKey | สตริง ค่าเริ่มต้น: null | ชื่อพร็อพเพอร์ตี้ที่ไม่บังคับซึ่งใช้เพื่อบันทึกการวัดเงื่อนไขการรวม |
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-07-26 UTC
[null,null,["อัปเดตล่าสุด 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. |"]]