ee.Reducer.repeat
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
สร้าง Reducer โดยรวมสำเนาของ Reducer ที่ระบุจำนวนตามที่กำหนด ชื่อเอาต์พุตจะเหมือนกับตัวลดที่ระบุ แต่แต่ละชื่อจะเป็นรายการของเอาต์พุตที่สอดคล้องกันจากตัวลดแต่ละตัว
การใช้งาน | การคืนสินค้า |
---|
Reducer.repeat(count) | ตัวลดตำแหน่ง |
อาร์กิวเมนต์ | ประเภท | รายละเอียด |
---|
ดังนี้ reducer | ตัวลดตำแหน่ง | |
count | จำนวนเต็ม | จำนวนสำเนาของตัวลดที่จะรวม |
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-07-26 UTC
[null,null,["อัปเดตล่าสุด 2025-07-26 UTC"],[[["\u003cp\u003eCreates a new Reducer by repeating a given Reducer multiple times.\u003c/p\u003e\n"],["\u003cp\u003eOutput names remain the same but the values are transformed into lists, reflecting outputs from each repetition of the original Reducer.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003ecount\u003c/code\u003e argument determines the number of repetitions, effectively controlling the length of the output lists.\u003c/p\u003e\n"],["\u003cp\u003ePrimarily used for combining multiple instances of a reducer into a single, unified Reducer.\u003c/p\u003e\n"]]],["Combines multiple copies of a specified reducer into a single Reducer. The `Reducer.repeat(count)` method takes an integer `count` representing the number of reducer copies to merge. It returns a new Reducer. The output names from the combined reducer are identical to the original, but each output is now a list containing the respective output from each of the individual reducers.\n"],null,["# ee.Reducer.repeat\n\nCreates a Reducer by combining the specified number of copies of the given reducer. Output names are the same as the given reducer, but each is a list of the corresponding output from each of the reducers.\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|-------------------------|---------|\n| Reducer.repeat`(count)` | Reducer |\n\n| Argument | Type | Details |\n|-----------------|---------|-------------------------------------------------|\n| this: `reducer` | Reducer | |\n| `count` | Integer | The number of copies of the reducer to combine. |"]]