ee.Reducer.forEach
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
สร้าง Reducer โดยการรวมสำเนาของ Reducer ที่ระบุสำหรับชื่อเอาต์พุตแต่ละชื่อในรายการที่ระบุ หากตัวลดมีเอาต์พุตเดียว ระบบจะใช้ชื่อเอาต์พุตตามเดิม มิฉะนั้นระบบจะนำหน้าชื่อเอาต์พุตเดิม
การใช้งาน | การคืนสินค้า |
---|
Reducer.forEach(outputNames) | ตัวลดตำแหน่ง |
อาร์กิวเมนต์ | ประเภท | รายละเอียด |
---|
ดังนี้ reducer | ตัวลดตำแหน่ง | |
outputNames | รายการ | |
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-07-26 UTC
[null,null,["อัปเดตล่าสุด 2025-07-26 UTC"],[[["\u003cp\u003eGenerates a new Reducer by replicating the input reducer for each specified output name.\u003c/p\u003e\n"],["\u003cp\u003eIf the original reducer has a single output, the output names are directly applied; for multiple outputs, the names are prefixed to the original output names.\u003c/p\u003e\n"],["\u003cp\u003eEmploys a list of output names to determine the replication and naming scheme for the new reducer.\u003c/p\u003e\n"],["\u003cp\u003eUtilizes the \u003ccode\u003eReducer.forEach\u003c/code\u003e method for creating this multi-output reducer from a single input.\u003c/p\u003e\n"]]],[],null,["# ee.Reducer.forEach\n\nCreates a Reducer by combining a copy of the given reducer for each output name in the given list. If the reducer has a single output, the output names are used as-is; otherwise they are prefixed to the original output names.\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|--------------------------------|---------|\n| Reducer.forEach`(outputNames)` | Reducer |\n\n| Argument | Type | Details |\n|-----------------|---------|---------|\n| this: `reducer` | Reducer | |\n| `outputNames` | List | |"]]