ee.Reducer.toList
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
यह एक ऐसा रिड्यूसर बनाता है जो अपने इनपुट को एक सूची में इकट्ठा करता है. इसमें यह विकल्प होता है कि इनपुट को टपल में ग्रुप किया जाए.
इस्तेमाल | रिटर्न |
---|
ee.Reducer.toList(tupleSize, numOptional) | रेड्यूसर |
आर्ग्यूमेंट | टाइप | विवरण |
---|
tupleSize | पूर्णांक, डिफ़ॉल्ट: null | हर आउटपुट टपल का साइज़ या ग्रुपिंग न होने पर शून्य. यह इनपुट की संख्या भी तय करता है (null tupleSize में 1 इनपुट होता है). |
numOptional | पूर्णांक, डिफ़ॉल्ट: 0 | आखिरी numOptional इनपुट को वैकल्पिक माना जाएगा. अन्य इनपुट, शून्य नहीं होने चाहिए. ऐसा न होने पर, इनपुट टपल को हटा दिया जाएगा. |
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2025-07-26 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 2025-07-26 (UTC) को अपडेट किया गया."],[[["\u003cp\u003eCreates a reducer that accumulates its inputs into a list, optionally grouping them into tuples of a specified size.\u003c/p\u003e\n"],["\u003cp\u003eThe reducer can handle a single input or multiple inputs based on the \u003ccode\u003etupleSize\u003c/code\u003e parameter, with \u003ccode\u003enull\u003c/code\u003e indicating a single input and any integer representing the tuple size.\u003c/p\u003e\n"],["\u003cp\u003eInputs can be designated as optional using the \u003ccode\u003enumOptional\u003c/code\u003e parameter, allowing the reducer to process tuples even if some optional inputs are missing.\u003c/p\u003e\n"]]],[],null,["# ee.Reducer.toList\n\nCreates a reducer that collects its inputs into a list, optionally grouped into tuples.\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|------------------------------------------------------|---------|\n| `ee.Reducer.toList(`*tupleSize* `, `*numOptional*`)` | Reducer |\n\n| Argument | Type | Details |\n|---------------|------------------------|--------------------------------------------------------------------------------------------------------------------------------|\n| `tupleSize` | Integer, default: null | The size of each output tuple, or null for no grouping. Also determines the number of inputs (null tupleSize has 1 input). |\n| `numOptional` | Integer, default: 0 | The last numOptional inputs will be considered optional; the other inputs must be non-null or the input tuple will be dropped. |"]]