ee.Reducer.setOutputs
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
แสดงผล Reducer ที่มีอินพุตเหมือนกับ Reducer ที่ระบุ แต่มีการเปลี่ยนชื่อและ/หรือนำเอาต์พุตออก
การใช้งาน | การคืนสินค้า |
---|
Reducer.setOutputs(outputs) | ตัวลดตำแหน่ง |
อาร์กิวเมนต์ | ประเภท | รายละเอียด |
---|
ดังนี้ reducer | ตัวลดตำแหน่ง | |
outputs | รายการ | ชื่อเอาต์พุตใหม่ ระบบจะทิ้งเอาต์พุตที่มีชื่อเป็น Null หรือว่างเปล่า |
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-07-26 UTC
[null,null,["อัปเดตล่าสุด 2025-07-26 UTC"],[[["\u003cp\u003eAllows modification of a Reducer's outputs by renaming or removing them.\u003c/p\u003e\n"],["\u003cp\u003eEmploys the \u003ccode\u003esetOutputs\u003c/code\u003e method, accepting a list of new output names.\u003c/p\u003e\n"],["\u003cp\u003eOutputs with null or empty names specified in the list are removed from the Reducer.\u003c/p\u003e\n"],["\u003cp\u003eReturns a new Reducer instance with the adjusted outputs, leaving the original Reducer unchanged.\u003c/p\u003e\n"]]],[],null,["# ee.Reducer.setOutputs\n\nReturns a Reducer with the same inputs as the given Reducer, but with outputs renamed and/or removed.\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|-------------------------------|---------|\n| Reducer.setOutputs`(outputs)` | Reducer |\n\n| Argument | Type | Details |\n|-----------------|---------|-------------------------------------------------------------------------------|\n| this: `reducer` | Reducer | |\n| `outputs` | List | The new output names; any output whose name is null or empty will be dropped. |"]]