ee.Reducer.forEach
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
Creates a Reducer by combining a copy of the given reducer for each output name in the given list. אם לפונקציית ה-reducer יש פלט יחיד, שמות הפלט משמשים כמו שהם. אחרת, הם מתווספים כשם קידומת לשמות הפלט המקוריים.
שימוש | החזרות |
---|
Reducer.forEach(outputNames) | הפחתה |
ארגומנט | סוג | פרטים |
---|
זה: reducer | הפחתה | |
outputNames | רשימה | |
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 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 | |"]]