إشعار: يجب
إثبات أهلية جميع المشاريع غير التجارية المسجّلة لاستخدام Earth Engine قبل
15 أبريل 2025 من أجل الحفاظ على إمكانية الوصول إلى Earth Engine.
ee.Reducer.combine
تنظيم صفحاتك في مجموعات
يمكنك حفظ المحتوى وتصنيفه حسب إعداداتك المفضّلة.
تنشئ هذه السمة أداة تقليل تشغّل أداتَي تقليل بالتوازي. ستكون نواتج أداة الاختزال المدمجة هي نواتج أداة الاختزال 1 متبوعة بنواتج أداة الاختزال 2، حيث يتم إضافة البادئة المحدّدة إلى أسماء نواتج أداة الاختزال 2.
إذا كانت قيمة sharedInputs هي "صحيح"، يجب أن تتضمّن دوال الاختزال عددًا متساويًا من المدخلات، ويجب أن تتطابق المدخلات الخاصة بدالة الاختزال المدمَجة معها. أما إذا كانت القيمة "خطأ"، فستكون مدخلات دالة الاختزال المدمَجة هي مدخلات reducer1 متبوعة بمدخلات reducer2.
الاستخدام | المرتجعات |
---|
Reducer.combine(reducer2, outputPrefix, sharedInputs) | Reducer |
الوسيطة | النوع | التفاصيل |
---|
هذا: reducer1 | Reducer | أداة تقليل البيانات الأولى |
reducer2 | Reducer | المخفّض الثاني. |
outputPrefix | سلسلة، القيمة التلقائية: "" | بادئة لأسماء الإخراج الخاصة بـ reducer2 |
sharedInputs | قيمة منطقية، القيمة التلقائية: false | تحديد ما إذا كانت عمليات الاختزال تشارك المدخلات. |
إنّ محتوى هذه الصفحة مرخّص بموجب ترخيص Creative Commons Attribution 4.0 ما لم يُنصّ على خلاف ذلك، ونماذج الرموز مرخّصة بموجب ترخيص Apache 2.0. للاطّلاع على التفاصيل، يُرجى مراجعة سياسات موقع Google Developers. إنّ Java هي علامة تجارية مسجَّلة لشركة Oracle و/أو شركائها التابعين.
تاريخ التعديل الأخير: 2025-07-26 (حسب التوقيت العالمي المتفَّق عليه)
[null,null,["تاريخ التعديل الأخير: 2025-07-26 (حسب التوقيت العالمي المتفَّق عليه)"],[[["\u003cp\u003eCreates a combined Reducer by running two reducers (reducer1 and reducer2) concurrently, with the outputs of reducer1 preceding those of reducer2.\u003c/p\u003e\n"],["\u003cp\u003eOutputs of reducer2 are prefixed with a specified string to differentiate them from reducer1's outputs.\u003c/p\u003e\n"],["\u003cp\u003eInput handling for the combined reducer is configurable: if \u003ccode\u003esharedInputs\u003c/code\u003e is true, both reducers utilize the same inputs; otherwise, the combined reducer's inputs are those of reducer1 followed by those of reducer2.\u003c/p\u003e\n"],["\u003cp\u003eIt can be invoked using \u003ccode\u003eReducer.combine()\u003c/code\u003e method, accepting reducer2, output prefix, and shared input preference as arguments.\u003c/p\u003e\n"]]],[],null,["# ee.Reducer.combine\n\nCreates a Reducer that runs two reducers in parallel. The combined reducer's outputs will be those of reducer1 followed by those of reducer2, where the output names of reducer2 are prefixed with the given string.\n\n\u003cbr /\u003e\n\nIf sharedInputs is true, the reducers must have the same number of inputs, and the combined reducer's will match them; if it is false, the inputs of the combined reducer will be those of reducer1 followed by those of reducer2.\n\n| Usage | Returns |\n|------------------------------------------------------------------|---------|\n| Reducer.combine`(reducer2, `*outputPrefix* `, `*sharedInputs*`)` | Reducer |\n\n| Argument | Type | Details |\n|------------------|-------------------------|-------------------------------------|\n| this: `reducer1` | Reducer | The first reducer. |\n| `reducer2` | Reducer | The second reducer. |\n| `outputPrefix` | String, default: \"\" | Prefix for reducer2's output names. |\n| `sharedInputs` | Boolean, default: false | Whether the reducers share inputs. |"]]