ee.ImageCollection.limit
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
किसी कलेक्शन को तय किए गए एलिमेंट की संख्या तक सीमित करें. इसके अलावा, उन्हें किसी तय की गई प्रॉपर्टी के हिसाब से क्रम में लगाएं.
यह फ़ंक्शन, सीमित कलेक्शन दिखाता है.
इस्तेमाल | रिटर्न |
---|
ImageCollection.limit(max, property, ascending) | संग्रह |
आर्ग्यूमेंट | टाइप | विवरण |
---|
यह: collection | संग्रह | कलेक्शन इंस्टेंस. |
max | नंबर | संग्रह में शामिल किए जाने वाले आइटम की संख्या. |
property | स्ट्रिंग, ज़रूरी नहीं | अगर क्रम से लगाना है, तो क्रम से लगाने के लिए प्रॉपर्टी. |
ascending | बूलियन, ज़रूरी नहीं | बढ़ते या घटते क्रम में लगाने का विकल्प. डिफ़ॉल्ट रूप से, यह 'सही' (बढ़ते क्रम में) पर सेट होती है. |
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2025-07-26 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 2025-07-26 (UTC) को अपडेट किया गया."],[],["The `limit` method restricts a collection to a specified number of elements (`max`). It optionally sorts the collection beforehand by a given `property`. Sorting can be in ascending (default) or descending order, controlled by the `ascending` argument. The method operates on a `Collection` instance and returns the modified, limited `Collection`. The method requires a number for max and accepts an optional String for the property to sort by and an optional boolean for the sort direction.\n"],null,[]]