ee.Join.saveBest
با مجموعهها، منظم بمانید
ذخیره و طبقهبندی محتوا براساس اولویتهای شما.
پیوندی را برمیگرداند که هر عنصر از مجموعه اول را با یک عنصر منطبق از مجموعه دوم جفت میکند. مطابقت با بهترین معیار اتصال به هر نتیجه به عنوان یک ویژگی اضافی اضافه می شود. معیارهای اتصال زمانی تولید می شوند که از فیلترهای درون فاصله یا maxDifference به عنوان شرط اتصال استفاده شود.
استفاده | برمی گرداند | ee.Join.saveBest(matchKey, measureKey, outer ) | بپیوندید |
استدلال | تایپ کنید | جزئیات | matchKey | رشته | کلیدی که برای ذخیره بازی استفاده می شود. |
measureKey | رشته | کلید مورد استفاده برای ذخیره معیار شرط اتصال در مسابقه. |
outer | بولی، پیش فرض: نادرست | اگر درست باشد، ردیفهای اصلی بدون منطبق در نتیجه گنجانده میشود. |
،پیوندی را برمیگرداند که هر عنصر از مجموعه اول را با یک عنصر منطبق از مجموعه دوم جفت میکند. مطابقت با بهترین معیار اتصال به هر نتیجه به عنوان یک ویژگی اضافی اضافه می شود. معیارهای اتصال زمانی تولید می شوند که از فیلترهای درون فاصله یا maxDifference به عنوان شرط اتصال استفاده شود.
استفاده | برمی گرداند | ee.Join.saveBest(matchKey, measureKey, outer ) | بپیوندید |
استدلال | تایپ کنید | جزئیات | matchKey | رشته | کلیدی که برای ذخیره بازی استفاده می شود. |
measureKey | رشته | کلید مورد استفاده برای ذخیره معیار شرط اتصال در مسابقه. |
outer | بولی، پیش فرض: نادرست | اگر درست باشد، ردیفهای اصلی بدون منطبق در نتیجه گنجانده میشود. |
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2025-07-24 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2025-07-24 بهوقت ساعت هماهنگ جهانی."],[[["\u003cp\u003eThe \u003ccode\u003esaveBest\u003c/code\u003e join pairs elements from two collections based on the best match according to a specified measure.\u003c/p\u003e\n"],["\u003cp\u003eA join measure, like distance or difference, is calculated when using \u003ccode\u003ewithinDistance\u003c/code\u003e or \u003ccode\u003emaxDifference\u003c/code\u003e filters in the join condition.\u003c/p\u003e\n"],["\u003cp\u003eThe best match and its corresponding measure are added as properties to the result using specified keys (\u003ccode\u003ematchKey\u003c/code\u003e, \u003ccode\u003emeasureKey\u003c/code\u003e).\u003c/p\u003e\n"],["\u003cp\u003eOptionally, unmatched primary elements can be included in the output by setting the \u003ccode\u003eouter\u003c/code\u003e parameter to \u003ccode\u003etrue\u003c/code\u003e.\u003c/p\u003e\n"]]],["This describes a join operation that pairs elements from two collections. It identifies the best match between elements based on filters like `withinDistance` or `maxDifference`, storing this match in a specified `matchKey`. The quality of the match is stored under `measureKey`. The `outer` argument determines if unmatched elements from the first collection are included in the output. The function, `ee.Join.saveBest`, returns a join object.\n"],null,["# ee.Join.saveBest\n\nReturns a join that pairs each element from the first collection with a matching element from the second collection. The match with the best join measure is added to each result as an additional property. Join measures are produced when withinDistance or maxDifference filters are used as the join condition.\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|-----------------------------------------------------|---------|\n| `ee.Join.saveBest(matchKey, measureKey, `*outer*`)` | Join |\n\n| Argument | Type | Details |\n|--------------|-------------------------|-----------------------------------------------------------------------|\n| `matchKey` | String | The key used to save the match. |\n| `measureKey` | String | The key used to save the measure of the join condition on the match. |\n| `outer` | Boolean, default: false | If true, primary rows without matches will be included in the result. |"]]